Pacman
written by Mark Overmars

Goal
A traditional game like pacman should of course be present. The goal of this game is to remove all dots by eating them with your pacman. Monsters try to eat you so you should avoid them. The rotating coins will help you. When you eat one of those the monsters temporarily become afraid and can be chased for points. Also sometimes a bonus appears. Get the highest score and don't be eaten.

Playing
You steer your pacman using the arrow keys or the joystick. You can already press the correct key before you reach the corridor (but keep it pressed).

Levels
The game has a few  levels. They become increasingly harder. Try to add some levels yourself (and mail them to me).

Design
Pacman is obviously not a trivial game to make. Still it is not too difficult. Here are a few issues that I had to deal with:
•	There are five different pacman objects because they should look different depending on the direction of movement. This means that a number of things had to be repeated five times. The objects themseles do hardly anything. The only have to react when they move off the screen.
•	There is a special object: the keyboard object. It should be in every room and handles the keyboard and joystick. It is also responsible for showing and hidign the bonus. Upon creation it moves itself off the screen to make it invisible.
•	The most difficult thing is the motion of the monsters. They sometimes have to move into a side-corridor but there is no event that can trigger this. So there is a little piece of code in the step event of the monsters to achieve this. In this version the monster don't try to go towards pacman.