13 levels have been implemented and the game moves to the next level once all pellets have been eaten.
Sunday, November 15, 2009
Pellets
Saturday, November 14, 2009
Improving Maneuverability
I realized that making pacman change direction into a new tunnel was very hard since the key had to be pressed at the exact pixel to avoid collision. This would have led to frustrating gameplay. The solution was to keep track of the arrow key that was pressed last - the game knows where the player would like to go and checks at each step if the move can be made. Making turns is now much easier.
Resize Screen/Apply Background
Legal Ghosts
Continuous Motion
After adding the ghosts, I worked on implementing continuous motion - not step by step. The ghosts and pacman all move smoothly now, but only pacman checks for collisions - the ghosts can still go through walls and through each other.
Added Ghosts
Added ghosts today. At the moment they do not move - I am yet to implement continuous motion.
Subscribe to:
Posts (Atom)