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

Game states

In this chapter, you will add a few new features into your game. Among them, a countdown at the beginning of each level and additional screens with menus displayed when the player pauses or finishes the game exist. It causes a necessity of indicating a current state of the game. For this reason, you will introduce a mechanism of game states. One of its assumptions is that the game is in only one state at given time. The game can change states in specific order and only if some additional conditions are met. Relations between various game states are presented in the following diagram:

Game states

Concept

The game consists of four states, which show ...

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