3D Game Programming

(C. Jardin) #1

CHAPTER 19


Project: Multilevel Game


Once you get the hang of playing the cave-puzzle game we coded in Chapter
18, Project: Cave Puzzle, on page 165, it’s pretty easy to win. As a game player,
it quickly grows boring and you want to move on to more exciting things. As
game designers, it’s our job to build games that make players want to keep
playing. Games should start off easy and keep getting harder (but never
impossible—it’s not fun to play impossible games). With that in mind, let’s
revisit the sketch of our game from the last chapter.

We never got around to adding those immovable obstacles last time, did we?
Let’s do that now—but only after the player has reached the goal for the first
time.

20.1 Getting Started


Before starting this game, you need to work through the game in the previous
chapter. If you’ve already finished the entire program, let’s make a copy of it by
clicking the three-line menu button and selecting Make a Copy from the menu:

When you’re done with this chapter, you will


  • Have a strategy for building multilevel
    games

  • Understand how to reset countdown timers

  • See an example of coding progressively
    harder games


Prepared exclusively for Michael Powell report erratum • discuss

Free download pdf