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

Chapter 11Project: Fruit Hunt

We have an avatar. We have trees. Surely there’s fun for the avatar to have in those trees. So let’s make a game of it!

We’ve spent 10 chapters talking about building an avatar and a game area. By now you have a pretty good idea what it takes to code these things. Now, this is not going to be The Greatest Game Ever. Our game will be somewhat simple, but enough to give you ideas for what you might want to add next.

Our game will challenge the avatar to get stuff out of those trees. The trees are hiding yummy fruit that the avatar wants. And if the avatar can get to ...

Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.