Game Development Reference
In-Depth Information
///////////////////////// HUD
// Update HUD
UpdateHUD();
m_HUD.UpdateHUD(m_Camera);
// Render HUD
m_HUD.RenderHUD(m_Camera, m_PointLight);
}
Now, run the application. You should see something like Figure 7-3 .
Figure 7-3. Initial screen
Touch the screen to fire your weapon. Try to knock the cube in front of the pyramid into the pyramid.
When the ammunition hits the cube, the score should be increased. When the cube hits the pyramid,
the player's health should be decreased, an explosion graphic animation displayed, and a sound
effect played. (See Figure 7-4 .)
 
Search WWH ::




Custom Search