Free Sample
+ Collection

Windows Phone 8 Game Development

Marcin Jamro

A practical guide to creating games for the Windows Phone 8 platform
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849696807
Paperback394 pages

About This Book

  • Create a 3D game for the Windows Phone 8 platform
  • Combine native and managed development approaches
  • Discover how to use a range of inputs, including sensors
  • Learn how to implement geolocation and augmented reality features
  • Allow communication between players via web services
  • Prepare and publish your game in the Windows Phone Store

Who This Book Is For

The book is dedicated to the beginners in a field of game development and the Windows Phone 8 platform who want to create their first game! No prior experience regarding 2D and 3D games development, the mobile platform, as well as XAML and Direct3D technologies, is necessary. However, some basic knowledge of object-oriented programming (especially in case of C++ and C# languages) is required to understand parts of code described in the book.

Table of Contents

Chapter 1: Getting Started
Windows Phone platform
Managed, native, and hybrid development
First steps
Concept of the game
Chapter 2: Game User Interface
New project
Project structure
Manifest file
Application lifecycle
First screen
Resources shared among all screens
Data binding
Chapter 3: MVVM Design Pattern
Menu screen
Map screen
Ranks screen
Settings screen
World, Web, and Help screens
Game screen
Chapter 4: 3D Graphics Basics
Introduction to 3D graphics
Direct3D-related part
Necessary modifications
Native part debugging
Chapter 5: 3D Game World
Planet model
Adding asteroids to the game world
Flying towards the planet
Chapter 6: Steering, Sensors, and Collision Detection
Rocket steering
Game levels
Collision detection
Improving performance
Other sensors in the native part
Interactive Help screen
Other sensors in the managed part
Chapter 7: 2D User Interface in 3D Game
DirectX Tool Kit
Game states
Rocket display
Localized strings
Level countdown
Chapter 8: Maps, Geolocation, and Augmented Reality
Maps and geolocation
Augmented reality
Navigation to GPS coordinates
Chapter 9: Exchanging Data via Web Services
Creating a web service
Web service deployment
Web service usage
Chapter 10: Social Networks, Feeds, Settings, and Local Rank
Publishing posts with Facebook API
Tweeting by Twitter API
Obtaining data from RSS feeds
Game settings
Local rank
Chapter 11: Improving Game Experience
Saving and loading the game state
Audio support
Video support
Speech recognition and synthesis
Disabling the lock screen
Chapter 12: Game Publishing
Manifest file
Rating by the users
Release version
Store Test Kit
Simulation Dashboard
Windows Phone Application Analysis
Frame rate counters
Certification requirements
Publishing in the store
Updating submission

What You Will Learn

  • Combine native and managed development approaches
  • Run and debug Windows Phone 8 applications
  • Use XAML language to create the user interface
  • Create 3D graphics with Direct3D
  • Draw 2D graphics with DirectXTK
  • Create game logic and detect collisions
  • Steer the game with sensors
  • Use maps, geolocation, and augmented reality features
  • Share data via social networks
  • Add audio and video support
  • Recognize and synthesize speech

In Detail

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!

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.


Read More