Free Sample
+ Collection

Building your First Mobile Game using XNA 4.0

Starting
Brecht Kets, Thomas Goussaert

A fast-paced, hands-on guide to building a 3D game for the Windows Phone 7 platform using XNA 4.0
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$16.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 139781849687744
Paperback158 pages

About This Book

  • Building a 3D game for the Windows Phone 7 platform
  • Drawing 2D and 3D graphics on Windows Phone.
  • Using the rich capabilities of the Windows Phone platform.
  • Creating a custom framework step by step that will act as a base for building (future) games.
  • An engaging and hands on beginner’s guide to Windows Phone 7 3D game development using XNA 4.0.

Who This Book Is For

This book will cover the building of a 3D game for Windows Phone using XNA. We won’t explain the C# programming language itself, nor object-oriented programming.

We will however explain the aspects of game development thoroughly, so don’t worry if you have never written a 3D game. We will cover all the basics, included the much dreaded math. This is the right book for anyone, regardless of age and gender, if:

  • You are interested in game development
  • You want to start building games for Windows Phone
  • You have some programming knowledge

In this book, we will first go over the technical topics, and end up building a 3D game for Windows Phone 7 together!

Table of Contents

Chapter 1: Getting Started
Developing for Windows Phone
Getting started with your first application
The Game class
Summary
Chapter 2: 2D Graphics
2D coordinate system
Adding content
Drawing sprites
Refactoring our code
Adding movement to the hero
Adding animation to our hero
Summary
Chapter 3: 3D Graphics
3D coordinate system
Using matrices
Drawing models
Mixing 2D and 3D
Refactoring our code
Adding movement to the hero
Adding animation to our hero
Exercise: adding enemies
Summary
Chapter 4: Input
Using keyboard
Using the accelerometer
Using touch
Gestures
Summary
Chapter 5: Sound
Before we start
Playing sound
Playing 3D sound
Playing a song
Summary
Chapter 6: Building a Basic Framework
Scene graph
Scene manager
Collision
Menus
Summary
Chapter 7: Building a Game
Game concept
Menu scene
Level Scene
Summary
Chapter 8: Releasing our game
Testing
Creating a trial version
Application certification requirements
Application submission process
Summary

What You Will Learn

  • Installing the Windows Phone SDK and the XNA framework
  • Drawing 2D and 3D graphics
  • Mixing 2D and 3D graphics
  • Drawing 2D and 3D animations
  • Playing 2D and 3D sound
  • Playing songs
  • Handling touch input and gestures (tap, swipe, zoom, ...)
  • Building a scene graph and level system
  • Handling collision
  • Creating menus
  • How to build a 3D game!

In Detail

With the dawn of the Windows Phone 7 platform, Microsoft has offered us an easy way to create 3D mobile games. In this book, we will build a 3D game for Windows Phone 7 together, taking full advantage of the graphics and touch capabilities, along with the sensors of the platform.

"Building your First Mobile Game using XNA 4.0" is the book for starting game development on the Windows Phone 7 platform. This book will go over the technical aspects of building games along with designing your own framework. Finally we’ll build an actual game together from the ground up! This book will set future mobile game developers in the right direction.

The XNA framework empowers us to build 2D and 3D games for PC, Xbox 360 and Windows Phone 7. We will use those capabilities to create stunning 3D games for the Windows Phone 7 platform. We will start by covering the basics like drawing graphics, followed by building a custom framework and end with building a game together!

In this book, we will cover drawing 2D and 3D graphics, both static and animations. We will also cover the various ways of handling user input and help set the mood of our game playing both 2D and 3D sound, and accessing the user’s media library. The only thing left before building a game is covering several techniques created for making our life easier while building the game, whilst building a framework to do just that. Finally, we’ll build a 3D game together that will run on the Windows Phone 7 platform.

"Building your First Mobile Game using XNA 4.0" is the book you need to get started with mobile game development for Windows Phone 7. Its hands on approach will set you on your way in no time. Let’s build some games!

Authors

Read More