Presentation is loading. Please wait.

Presentation is loading. Please wait.

Game 4: Pac Man Tutorial. New events/actions to learn: Animated sprites Change instances – allows you to change objects into other objects. Change sprites.

Similar presentations


Presentation on theme: "Game 4: Pac Man Tutorial. New events/actions to learn: Animated sprites Change instances – allows you to change objects into other objects. Change sprites."— Presentation transcript:

1 Game 4: Pac Man Tutorial

2 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.

3 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.

4 Images and Sounds You can use the ones I have provided in the Pacman_resources folder. Or you can use your own!

5 Animating Sprites

6 Object: Pacman – Collision -> Monster

7 Object: Pacman – Event: Collision -> Dot

8 Object: Pacman – Event: Collision -> Wall

9 Object: Pacman – Event: Keyboard -> No key

10

11 Object: Pacman – Event: Keyboard -> Left key

12

13 Object: Pacman – Event: Outside Room

14 Object: Monster – Event: Create

15 Object: Monster– Event: Collision-> Wall

16

17 Object: Monster– Event: Outside Room

18 Object: Dot– Event: No Events!

19 Object: Wall – Event: No Events!

20 Object: Special– Event: Collision -> Pacman

21

22

23

24 Object: Setup– Event: Create

25 Object: Setup– Event: Step

26 Object: Monsterscared– Event: Create

27 Object: Monsterscared– Event: Alarm 0

28 Object: Monsterscared– Event: Alarm 1

29 Object: Monsterscared– Event: Collision -> Pacman

30 Object: Monsterscared– Event: Collision -> Wall

31 Object: Monsterscared– Event: Outside Room

32 Object: Startup – Event: Create

33 Object: Startup– Event: Key press-> Space

34 Object: End– Event: Keyboard-> Any Key

35 Room Layout

36

37


Download ppt "Game 4: Pac Man Tutorial. New events/actions to learn: Animated sprites Change instances – allows you to change objects into other objects. Change sprites."

Similar presentations


Ads by Google