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
About the Author
About the Reviewers

Avoider Game

In the first couple of chapters in this book, we worked on Avoider Game, then switched to a zombie invasion simulation, and then a platform game. We will go back to Avoider Game and use it to demonstrate the concepts discussed earlier in this chapter. You can either start with your version of Avoider Game or download this version:

Avoider Game recap

Our version of Avoider Game which we created in Chapter 1, Let's Dive Right in… and Chapter 2, Animation is fairly functional. It has an introduction screen, a game-over screen, a moving star field, interesting actor animations, a score, power-ups, and power-downs. Figure 4 shows a screenshot from the game.

Figure 4: This is a snapshot of our version of Avoider Game

In the next several sections, we will augment this version of Avoider Game. Our changes will be based on the game design principles we just finished studying.

High-score list

The first change we are going to make is to add a simple mechanism...