Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

A better menu system


In this section we will look at the changes that need to be made to move from basic text support to a slightly more advanced user interface system that we will need for the game, as well as the basic setup so we can focus on networking later on. If you want to jump to the networking part of this chapter, feel free to skip this section. Here we'll look at one kind of implementation that you could use.

Right now we just have a way to display text using some TextBlock objects that we can add to the renderer; however, even just switching between the score display and the game over message requires a bit of coding work to remove and add the text blocks one-by-one, as well as store their state individually. To get around this we're going to create a menu object that can store the state of the menu and allow us to easily construct and change menus. For the purposes of the sample we only need text functionality; however, this can also let you display textures for the different...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime