Pacman!

Saturday, August 25, 2007

Ah yes, it's not very useful software. But it's cool anyway. A classical remake of Pacman. I'm not an artist so the graphics won't be amazing, but someone could easily change the graphics. This FlatRedBall version of pacman implements A* algorithm for following and a slightly modified version of A* for prediction.

There isn't much to say if you've played / heard of Pacman before, but for those who haven't heard of it: Pacman is a classical arcade-styled game where you control a yellow creature, Pacman. Your goal is to roam the map eating food, which is represented as little dots, as well as Energizers, which are larger dots. Meanwhile, four computer-controlled ghosts roam around the map trying to collide into you, causing you to loose the game. Likewise, you want to avoid them while still completing your mission.

This is where Energizers are your lifesavers, once you eat one of them you temporarily gain the ability to consume the ghosts. These ghosts aren't dead permanently (they are ghosts after all), but instead go back to their starting point and respawn as regular chase-you-down ghosts. As the levels increase, your time period to eat ghosts after consuming an Energizer gradually decreases until they only reverse their direction.

Oh and by the way, you get one-time extra life at 10,000 points.

Source code and Program can be downloaded here. Have fun! :)

Posted by Jeff at Saturday, August 25, 2007  

0 comments:

Post a Comment