Building your First Mobile Game using XNA 4.0


Building your First Mobile Game using XNA 4.0
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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.

Book Details

Language : English
Paperback : 158 pages [ 235mm x 191mm ]
Release Date : January 2013
ISBN : 1849687749
ISBN 13 : 9781849687744
Author(s) : Brecht Kets, Thomas Goussaert
Topics and Technologies : All Books, Game Development, Enterprise, Games, Microsoft

Table of Contents

Preface
Chapter 1: Getting Started
Chapter 2: 2D Graphics
Chapter 3: 3D Graphics
Chapter 4: Input
Chapter 5: Sound
Chapter 6: Building a Basic Framework
Chapter 7: Building a Game
Chapter 8: Releasing our game
Index
  • Chapter 1: Getting Started
    • Developing for Windows Phone
      • Installing the Windows Phone SDK
      • Registering your Windows Phone
    • Getting started with your first application
    • The Game class
      • Fields
      • Constructor
      • Initialize
      • LoadContent
      • UnloadContent
      • Update
      • Draw
    • Summary
    • Chapter 2: 2D Graphics
      • 2D coordinate system
      • Adding content
      • Drawing sprites
        • Adding fields
        • Loading textures
        • Drawing textures
      • Refactoring our code
        • Render context
        • The base class
          • Properties
          • Constructor
          • Methods
        • Building the GameSprite class
          • Fields
          • Properties
          • Constructor
          • Methods
        • Updating MainGame
          • Fields
          • Initialize
          • LoadContent
          • Update
          • Draw
        • Result
      • Adding movement to the hero
        • The Hero2D class
          • Fields
          • Initialize
          • LoadContent
          • Update
          • Draw
        • Updating the game class
        • Result
      • Adding animation to our hero
        • Sprite sheets
        • The GameAnimatedSprite class
          • Fields
          • Properties
          • Constructors
          • Play, pause, and stop
          • Update
        • Updating Hero2D
          • Fields
          • Initialize
          • Update
        • Result
      • Summary
      • Chapter 3: 3D Graphics
        • 3D coordinate system
        • Using matrices
        • Drawing models
          • Adding fields
          • Initialize
          • Loading models
          • Drawing models
          • Result
        • Mixing 2D and 3D
        • Refactoring our code
          • The base class
            • Properties
            • Constructor
            • Methods
          • The camera
          • Updating RenderContext
          • The GameModel
            • Fields
            • Constructor
            • Methods
          • Updating MainGame
            • Fields
            • Initialize
            • LoadContent, Update, and Draw
          • Result
        • Adding movement to the hero
          • The Hero3D class
            • Fields
            • Initialize
            • LoadContent and Draw
            • Update
          • Updating the Game class
          • Result
        • Adding animation to our hero
          • The GameAnimatedModel class
            • Fields
            • LoadContent
            • Update
            • Controlling animations
            • Draw
          • Updating Hero3D
          • Result
        • Exercise: adding enemies
        • Summary
        • Chapter 4: Input
          • Using keyboard
          • Using the accelerometer
          • Using touch
          • Gestures
            • Enabling gestures
            • Reading gestures
          • Summary
          • Chapter 5: Sound
            • Before we start
            • Playing sound
              • SoundEffect
              • Setting volume, pitch, and pan
              • SoundEffectInstance
                • Fields
                • LoadContent
            • Playing 3D sound
              • Fields
              • LoadContent
              • Update
              • Result
          • Playing a song
          • Summary
            • Chapter 6: Building a Basic Framework
              • Scene graph
                • Implementation
                  • Fields
                  • Constructor
                  • Methods
                • Using the code
              • Scene manager
                • The GameScene
                  • Properties
                  • Constructor
                  • Methods
                • The SceneManager
                  • Properties
                  • Constructor
                  • Managing the scenes
                  • Initialize and LoadContent
                  • Update and Draw
                • Creating scenes
                • Updating the main game
                  • Initialize
                  • LoadContent
                  • Update and Draw
                • Result
              • Collision
                • The extension method
                • Updating GameObject2D
                • Updating Hero2D
                • Testing for collisions
                • Result
              • Menus
                • The button
                  • Fields and events
                  • Constructor
                  • LoadContent
                  • Update
                • The menu scene
                • Result
              • Summary
              • Chapter 7: Building a Game
                • Game concept
                • Menu scene
                  • Fields
                    • Constructor
                    • Initialize
                    • LoadContent
                • Level Scene
                  • Prerequisites
                  • Level Scene
                  • Background
                    • Fields
                    • Initialize
                    • Update
                    • Scene Implementation
                  • Path
                    • Fields
                    • Initialize
                    • Update
                    • Scene implementation
                    • Scene Camera
                  • Buttons Controller
                    • Fields and properties
                    • Initialize
                    • RandomizeButtons method
                    • Update
                    • ForceButtonRelease method
                    • Scene implementation
                  • Hero
                    • Fields and properties
                    • Initialize
                    • SetHeroAction method
                    • Update
                    • Scene implementation
                  • Swing Ball
                    • Prerequisites
                    • Fields
                    • Initialize
                    • LoadContent
                    • Update
                    • Scene implementation
                  • Spikes
                    • Fields
                    • Initialize
                    • Scene implementation
                  • Enemy
                    • Fields and properties
                    • Constructor
                    • Initialize
                    • EnemyAnimationComplete method
                    • LoadContent
                    • Update
                    • Draw
                    • Scene implementation
                  • Perspective Camera
                    • Constructor
                    • Bringing it all together
                    • Extra fields
                    • AddObstacle method
                    • ResetLevel method
                    • Deactivate
                    • SetObstacle method
                    • Initialize extension
                    • Update extension
                • Summary

                  Brecht Kets

                  Brecht Kets is a Senior Lecturer at Howest University in Belgium, where he teaches game development in one of the leading international game development study programs, Digital Arts and Entertainment (www.digitalartsandentertainment.com). He's been actively involved in game development for several years, and has been writing about XNA since the launch in December 2006. He hosts the website www.3dgameprogramming.net and has received the Microsoft Most Valuable Professional award in the category DirectX/XNA five times in a row for his contributions in the community. Brecht has also co-authored the video series XNA 3D Game Development By Example, Packt Publishing.

                  Thomas Goussaert

                  Thomas Goussaert graduated in Digital Arts And Entertainment (DAE), from Howest University. With a wide range of skills acquired by his studies, he explored the world of programming and game development. Thomas is always curious and eager to learn new things; always feeding his passion for programming. Now he's a lecturer at Howest University, where he teaches game development in one of the leading international game development study programs, Digital Arts and Entertainment (www.digitalartsandentertainment.com). It's nice to have a passion for programming, but it's even better to share it with the world! Thomas has also co-authored the video series XNA 3D Game Development By Example, Packt Publishing
                  Sorry, we don't have any reviews for this title yet.

                  Code Downloads

                  Download the code and support files for this book.


                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                  Sorry, there are currently no downloads available for this title.

                  Frequently bought together

                  Building your First Mobile Game using XNA 4.0 +    Microsoft XNA 4.0 Game Development Cookbook =
                  50% Off
                  the second eBook
                  Price for both: €29.90

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • 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!

                  Approach

                  This book is a step-by-step tutorial with a lot of screenshots that help to explain the concept better.

                  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!

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Resources
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software