CHAPTER 11
Project: Fruit Hunt
We have an avatar. We have trees. Let’s make a game in which our avatar
has to get stuff out of those trees. The trees are hiding yummy fruit that the
avatar wants. And if the avatar can get to the fruit in time, points will be
added to the scoreboard.
It will end up looking something like this:
Congratulations to fellow game programmer Sophie H. for coming up with the
winning game concept used in this chapter!
12.1 Getting Started
To make this game, we need the avatar, the trees, and the collision-detection
functions that we’ve been working on throughout this book. After Chapter
10, Project: Collisions, on page 93, we have everything that we need to get
started on this project. So let’s make a copy of that project we’ve been
working on.
When you’re done with this chapter, you will
- Be able to add sounds to games
- Be able to add simple scoring to a game
- Have a silly game to play
Prepared exclusively for Michael Powell report erratum • discuss