HTML and CSS Reference
In-Depth Information
bullets whenever a player presses the X key. Figure 9.9 shows the white, triangular player
and a single red bullet.
Figure 9.9. Displays the player's ship firing a bullet. Notice that both shapes are 2D but drawn in a 3D
Step 3: Create the 2D player entity
Append the next listing after your Hud object to create all of the data required to initialize
your player. Most of the initializing information will be stored in variables at the top, so
you can easily tweak the player's data in the future.
Search WWH ::

Custom Search