I expect you already played pac-man so you know the controls but if you don't here they are anyway if you're unfamiliar with pac-man arrow keys to move
I know the collision isn't the best,(neither is the coding) all the coding was made by me but based on pac-man. I still need some help fixing the bugs in the code. Pac-man and all related characters (c) 1980 - 2016 bandai-namco If there are any glitches or if you like it, please let me know in the comments. Remix if you like. UPDATE 1 (12/02/14): reduced pac-man's size and changed the movement coding to when green flag clicked coding. It's smoother! UPDATE 2 (13/07/14): added like in the original game teleporting parts (red and green) and added an apple for every 5 dots you get. UPDATE 3 (22/07/14): added ghosts! (NOTE: may be buggy) and changed the title from pac-man demo to pac-man remake. UPDATE 3.5 (22/07/14): like pac-man, I've changed the ghosts' costumes to the actual costumes from the arcade game UPDATE 4 (27/12/14): like the original, the maze flashes white at the end. and changed the colo(u)r of the (c) bandai-namco from green to orange. there was a teleporting glitch. reduced pac-man's speed. when all dots are collected, the sound stops UPDATE 5 (bug fix) (04/01/15): fixing some bugs. like sorting out the sound stopping automatically and starting for a split second at the end, and slightly altered the collision code. it's still glitchy though. UPDATE 6 (29/03/15): When you touch a ghost now, you lose a life and go back to the start. I altered the speed of pac-man by 2.5 steps slower. UPDATE 6.5 (04/04/15): I changed the sound that starts after the get ready jingle ends. the ghosts have glitched now, so they are stuck in an infinite loop. I'm sorry, I just wanted to fix the diagonal ghosts.bear with me though, because I will fix it. I just need some assistance with it. UPDATE 7 (11/06/15): altered the collision. and fixed the spazzy ghost a.i. UPDATE 8 (27/07/15): added a message saying ''sorry you lost'' when you have 0 lives, sped up pac-man's animation and speed, fixed inky's collision detection, made Inky (blue ghost) come 5 seconds later than Blinky (red ghost) and made the ghosts hide when you get all dots. UPDATE 8.5 (26/09/15): minor bug fix, fixed the ghosts not showing after completing once. Update 9 (05/05/16): slowed pac-man down a little bit, made the ghost's eyes move in whatever direction they're going. more to come in the future