I'm currently trying to implement a fully autonomous Pac-Man game, where you just watch. I plan on making the actual yellow guy's AI to play the game flawlessly. I want to make it so that the Ghosts have the personalities like in the original Pac-Man, but I'm more so looking for a template, a Pac-Man game that is already made, and has that feature, so that I can work on the Pac-Man himself.
Does anyone know if that source code is available? I've tried github, but I haven't found anything that resembles the original ghost behavior as described here: http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior
thanks
When he contacts the target Ghost, he powers him up and returns to the home. He can only power up a certain number of Ghosts each maze, with the amount of Ghosts he can power up depending on the world number. Once he's reached his Power up limit, he no longer appears in the maze.
After a few seconds of gameplay (with the exact amount varying depending on the current level), the ghosts will enter what is known as Scatter Mode, where they will all flee to a different corner of the map, with Blinky heading for the top right, Pinky heading for the top left, Inky heading for the bottom right and ...
On the 20 Year Reunion arcade machines, put in a coin, then, on the Player 1 joystick, enter: Up, Up, Up, Down, Down, Down, Left, Right, Left, Right, Left. If the ghost on the Game Select screen turns pink and a sound plays then you did it right.
When Pac-Man is in Pinky's line of sight, she moves towards his direction and will not stop until she hits a wall. True to her real name Speedy, she is the fastest ghost in the game, being able to outspeed Pac-Man. Pinky cannot move at all when Pac-Man has eaten a power pellet.
There's a huge amount of information about how pac-man works here. Some of the information may be useful when you are trying to build the AI for the "perfect" pac-man player.
I think you will have a hard time getting access to the original pac-man source code (Namco usually gets people to remove it). The original pac-man was written in ASM so you may have a hard time reading that even if you do get a hold of it.
Just thinking out loud here, but Google just put out a full html5 version of PacMan for its 30th anniversary (PacMan's that is). It's minified, and I'm not sure if they are holding any copyrights for it, but it might be a place to start.
Cheers!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With