O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

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

Harnessing the XNA Game Loop Via the GameTimer Class

In XNA, responding to user input, updating your app’s state, and drawing content all happen periodically within the game loop. The game loop is the heart of every XNA game, and understanding it is fundamental to XNA development.

Unlike pure XNA games, which use the Game class for the game loop, hybrid apps rely on the Microsoft.Xna.Framework.GameTimer, which is unique to the phone.

In a pure XNA game, a Game class is used instead of an Application class. XNA games rely on overloading Game class methods that are specific to the game loop, such as Update and Draw, whereas hybrid apps (Windows Phone 7.1 apps that combine XNA and Silverlight) and apps that rely on XNA APIs, such as the sound effect ...

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