Wednesday, January 13, 2010

Time-Based Animation

The game now uses time-based animation, making it independent of the speed of the processor. Frame-based animation is highly dependent on processor speed so the game would not have been playable on very fast or very slow computers.

Tuesday, January 12, 2010

Invincibility Mode

Finished implementing the invincibility mode. The ghosts turn to the same pale color and pacman is able to eat them for 50 points. Eaten ghosts will reemerge at their spawning position.

Monday, January 11, 2010

Intelligent Ghosts

Finished implementing ghost algorithm. Ghosts proceed in the direction that brings them closer to pacman in an absolute sense, with a few random decisions thrown in. Higher levels have a lower degree of randomness. Decisions are made at intersections or dead-ends.

Sunday, January 10, 2010

Fruit

Fruits have been added - they pop up at random positions at random times during the game and last for 5 seconds. Eating them gives the player 10 points. Also added sound effects for them.

Score

The game now keeps track of the score. It seems the Pygame requires conversion of text to an image, which can then be 'pasted' on to the screen.

Enhanced Animation

Pacman now faces the direction of motion and 'chews' as he goes along:

Down:


Up:


Left:


Right:

Sound

Added sounds! At the moment, there are two distinct sounds that play alternately when pellets are eaten.