1 / 37

Game 4: Pac Man Tutorial

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.

Download Presentation

Game 4: Pac Man Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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_resourcesfolder. • 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. Object: Pacman – Event: Keyboard -> No key

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

  12. Object: Pacman – Event: Keyboard -> Left key

  13. Object: Pacman – Event: Outside Room

  14. Object: Monster – Event: Create

  15. Object: Monster– Event: Collision-> Wall

  16. Object: Monster– Event: Collision-> Wall

  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. Object: Special– Event: Collision -> Pacman

  22. Object: Special– Event: Collision -> Pacman

  23. Object: Special– Event: Collision -> Pacman

  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. Room Layout

  37. Room Layout

More Related