O'Reilly logo

Windows Phone 8 Game Development by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Level countdown

The next feature that will be added in your game is the countdown at the beginning of each level. It should present numbers, decreased every second, until zero is reached. However, during the countdown period, the player should still be able to steer the rocket, as well as start and stop the additional engine. In this section, you will learn how to implement such a feature and use the translations mechanism.

Concept

The countdown feature should be activated only when the game is in the STARTING state. As soon as the countdown is finished, the state should be changed to PLAYING. During both stages, the rocket is flying towards the planet, as presented in the following diagram:

The countdown presents a text using a specified font. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required