Game Development Reference
In-Depth Information
Game design
The game design is very simple. Like any other racing game we start at the starting
line and dodge the obstacles on the way to reach the final destination. In Astrorace,
the obstacles are asteroids. When an asteroid collides with the spaceship, the ship's
speed is cut down to a minimum. There are also other kinds of items on the way that
will increase the maximum speed of the ship or drop it.
The game client
We will first see the various objects that make up the game and leave the multiplayer
specifics until we understand what data is needed to synchronize among the players.
The classes are organized into the following folders:
game
gsrc
rsrc
ui
The game folder contains all the classes that are required by the game during a race,
such as the ship, asteroids, the map, radar, mini-map, etc. The familiar gsrc is where
all the generated source files from the schema are located. The rsrc folder has all the
graphic assets needed. The ui contains the screen classes that are subclassed from the
PulseUI framework.
A screenshot of the game client with three players in action is as follows:
 
Search WWH ::




Custom Search