Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pac-Man Template with Original Ghost AI (Help)

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

like image 710
安杰帅 Avatar asked Dec 08 '10 21:12

安杰帅


People also ask

How does ghost AI work in Pac-Man?

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.

What is the pattern of the ghosts in Pac-Man?

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 ...

How do you do the ghost glitch in Pac-Man?

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.

Which ghost is the fastest in Pac-Man?

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.


2 Answers

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.

like image 183
GWW Avatar answered Sep 18 '22 23:09

GWW


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!

like image 26
Aaron Simmons Avatar answered Sep 20 '22 23:09

Aaron Simmons