Book Image

Windows Phone 8 Game Development

By : Marcin Jamro
Book Image

Windows Phone 8 Game Development

By: Marcin Jamro

Overview of this book

<p>Currently almost everyone has a mobile phone that is used not only for calling, texting, and browsing the Internet, but also as an entertainment and social platform. Developers can create advanced 3D games with outstanding functionality that allow the player to enjoy the game directly on the mobile phone and cooperate with other players via the Internet!<br /><br />Windows Phone 8 Game Development is a practical, hands-on guide that will show you how to create a 3D game for the Windows Phone 8 platform. From setting up the environment to publishing your game, you will first learn how to implement 3D and 2D graphics with Direct3D, XAML, C++, and C#. We will then look at the game logic, steering with sensors, detecting collisions, as well as using maps, geolocation, augmented reality, social networks, and web services to share data between players. Featuring many code examples, images, and diagrams you should find the content both engaging and easy to understand.</p>
Table of Contents (22 chapters)
Windows Phone 8 Game Development
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Model-View-ViewModel


The first application page in the managed area of your game consists of two files, .xaml with XAML code regarding the user interface and .xaml.cs (code-behind) with C# code that can be used to interact with the user interface as well as perform any additional operations (for example, getting data from external sources). Thus, in these two files, you can create the user interface and place all logic related to a particular page.

Such a solution can be acceptable for simple projects, but in more complex projects, it can lead to several problems, for example, with maintenance and making further modifications. The situation can be even more complicated, if the project is being created by a team where developers and designers are working together. Let's just think about a scenario when you need to replace the mechanism of getting and updating ranks data, including their source and format. If the whole logic is placed in multiple .xaml.cs files, then you need to modify all...