Game Development Reference
In-Depth Information
Inside Game::Update just add an else clause to the end of the conditional state-
ment that checks if the player is alive, and call ResetGame if the action is triggered.
if (_player->GetIsAlive())
{
// ...
}
else
{
if (_tapAction->IsTriggered())
ResetGame();
}
Now we can play the game, and if we collide with four enemies the game over screen
will appear, displaying the score and allowing us to restart if we tap or click any-
where. We are now ready to add in the Live Tiles and sharing that was promised
earlier.
Search WWH ::




Custom Search