Game Development Reference
In-Depth Information
Figure 10-5. The entire level 1
Figure 10-5 was compiled from more than one image to show how we fit the tiles together to
make level 1. You can attempt to mimic this level exactly or create one of your own.
Note that the Drive She Said engine can be used to make loopable tracks that require the player
to do multiple laps before the yellow finish line tiles register the level as complete.
Applying basic car physics to our game
We want to make the car in our game behaves at least close to how the general game player
feels a car should move. We don't have to attempt to mimic all of the real-world physics involved
in car movement, just enough to give our game a sense of realism. We explored these concepts
somewhat in Chapter 6 and 7 when we moved the tank forward though the maze. We didn't
discuss them in detail then, so we will cover that topic a little more closely in here.
Moving forward and backward
Our car will begin stopped, and its velocity will be 0. When the up arrow key is pressed, we will
add acceleration to the velocity value. The velocity will have a maximum (such as 8 pixels per
Search WWH ::




Custom Search