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

Menus

The last feature, which will be implemented in this chapter, involves menus presented on the Pause and Result screens. The first one is shown after pressing the back button, while the other is shown when the player runs out of rockets. In this section, you will learn how to implement a menu composed from buttons and labels, as well as how to handle pressing the back button in the native part of the game.

Concept

A menu contains a set of menu items, which can act as buttons or labels. The single menu item is located in particular location (specified by coordinates), presents a text, and has some identifier. A concept of the menu is presented in the following figure. It consists of three menu items, including two buttons and one label:

Each button ...

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