Pac-Man Diary #07

I would like to get the Power Pills working tonight. They have have a different code from standard pills in the array so I know when one has been eaten. Changing the ghost sprites to the blue edible ones is a little tricky, but not too bad. I change the collision routines so that you don’t die when you come into contact with an edible ghost and add a timer.

I also want them to start flashing between the blue and the white ghosts sprites for the last few seconds which acts as a warning to the player that they are about to become deadly again. I spend quite a lot of time fine tuning this so it performs like the original arcade. Still not sure if it’s quite right, but it’ll do for now.

Don’t seem to have achieved too much tonight, never mind. Maybe tomorrow will be better.

The latest code is available for download.