Book Image

Creative Greenfoot: RAW

By : Michael Haungs
Book Image

Creative Greenfoot: RAW

By: Michael Haungs

Overview of this book

Table of Contents (17 chapters)
Creative Greenfoot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding a UI to MazeWorld


Now that we have some experience in creating various UI elements, we are going to enhance the MazeWorld scenario from the previous chapter. This will give us the opportunity to practice what we have learned in a more realistic context.

Specifically, we will add:

  • A start screen with a button to start the game and a menu the player can use to indicate the difficulty mode of the game

  • A game over screen with a button the player can use to restart the game

  • A HUD the player can use to temporarily stun the enemies, slow them, or make the snake enemies say, "sssssssss"

Start with the code for MazeWorld you ended with in the previous chapter, or download it from http://www.packtpub.com/support.