Chapter 18Project: Cave Puzzle

When you’re done with this chapter, you will

  • Know how to move things with a mouse

  • Have another full-featured game to share

In this chapter we’ll build an action-based puzzle game. In the game, the avatar can only move left or right, but to win, the avatar needs to reach the top of the screen. The person playing the game can move and rotate ramps to help the avatar reach the top of the screen and win. To make it even more challenging, the game board includes some objects that can’t be moved.

A sketch of the game might look something like this:

images/cave_puzzle/sketch.png

We’ll be putting all our newly acquired object-oriented programming skills ...

Get 3D Game Programming for Kids 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.