Game 4: Pac Man Tutorial
New events/actions to learn: Animated sprites Change instances – allows you to change objects into other objects. Change sprites – allows you to change the sprite image of an object to some other image. Alarms – allows you to set timing for actions to happen.
What are the rules of Pac Man? Once you know how the game works, it’s easier to think and know how to program it.
Images and Sounds You can use the ones I have provided in the Pacman_resources folder. Or you can use your own!
Animating Sprites
Object: Pacman – Collision -> Monster
Object: Pacman – Event: Collision -> Dot
Object: Pacman – Event: Collision -> Wall
Object: Pacman – Event: Keyboard -> No key
Object: Pacman – Event: Keyboard -> Left key
Object: Pacman – Event: Outside Room
Object: Monster – Event: Create
Object: Monster– Event: Collision-> Wall
Object: Monster– Event: Outside Room
Object: Dot– Event: No Events!
Object: Wall – Event: No Events!
Object: Special– Event: Collision -> Pacman
Object: Setup– Event: Create
Object: Setup– Event: Step
Object: Monsterscared– Event: Create
Object: Monsterscared– Event: Alarm 0
Object: Monsterscared– Event: Alarm 1
Object: Monsterscared– Event: Collision -> Pacman
Object: Monsterscared– Event: Collision -> Wall
Object: Monsterscared– Event: Outside Room
Object: Startup – Event: Create
Object: Startup– Event: Key press-> Space
Object: End– Event: Keyboard-> Any Key
Room Layout