Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building your First Mobile Game using XNA 4.0

You're reading from   Building your First Mobile Game using XNA 4.0 A fast-paced, hands-on guide to building a 3D game for the Windows Phone 7 platform using XNA 4.0

Arrow left icon
Product type Paperback
Published in Jan 2013
Publisher Packt
ISBN-13 9781849687744
Length 158 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Thomas Goussaert Thomas Goussaert
Author Profile Icon Thomas Goussaert
Thomas Goussaert
Brecht Kets Brecht Kets
Author Profile Icon Brecht Kets
Brecht Kets
Arrow right icon
View More author details
Toc

Index

A

  • accelerometer
    • used, for user input / Using the accelerometer
  • Accelerometer class / Using the accelerometer
  • AddObstacle method
    • about / AddObstacle method
  • animation
    • adding / Adding animation to our hero
    • sprite sheets / Sprite sheets
    • adding, to 3D objects / Adding animation to our hero
  • animations
    • controlling / Controlling animations
  • application certification requisites
    • about / Application certification requirements
  • application submission process
    • about / Application submission process
    • reference link / Application submission process

B

  • background, level scene
    • about / Background
    • layers / Fields
    • initialize method / Initialize
    • Update method / Update
    • implementing / Scene Implementation
  • base class
    • about / The base class
  • base class, 3D objects
    • about / The base class
  • basic framework
    • scene graph / Scene graph
    • scene manager / Scene manager
    • collision / Collision
    • menus / Menus
  • BeginShowKeyboardInput method / Using keyboard
  • ButtonsController, level scene
    • about / Buttons Controller
    • fields / Fields and properties
    • properties / Fields and properties
    • initialize method / Initialize
    • RandomizeButtons method / RandomizeButtons method
    • update method / Update
    • ForceButtonRelease method / ForceButtonRelease method
    • implementing / Scene Implementation

C

  • Chapter2DemoContent project
    • creating / Adding content
  • Chapter2Demo project
    • creating / Adding content
  • code, refactoring
    • about / Refactoring our code
    • RenderContext class / Render context
    • base class / The base class
    • GameSprite class, building / Building the GameSprite class
    • MainGame, updating / Updating MainGame
  • code refactoring, 3D graphics
    • about / Refactoring our code
    • base class / The base class
    • camera / The camera
    • RenderContext, updating / Updating RenderContext
    • GameModel / The GameModel
    • MainGame, updating / Updating MainGame, Initialize
  • collision
    • implementing / Collision
    • extension method / The extension method
    • GameObject2D, updating / Updating GameObject2D
    • Hero2D, updating / Updating Hero2D
    • testing / Testing for collisions
  • composition
    • about / The Hero2D class
  • constructor, Game class
    • about / Constructor
  • content
    • adding / Adding content
  • CurrentValueChanged event handler / Using the accelerometer

D

  • 2D and 3D
    • mixing / Mixing 2D and 3D
  • 2D coordinate system
    • about / 2D coordinate system
  • 3D animated models
    • drawing / Draw
  • 3D coordinate system
    • about / 3D coordinate system
  • 3D Graphics
    • 3D coordinate system / 3D coordinate system
    • matrices, using / Using matrices
    • models, drawing / Drawing models
    • 2D and 3D, mixing / Mixing 2D and 3D
    • code, refactoring / Refactoring our code
    • movement, adding to hero / Adding movement to the hero
    • animation, adding to hero / Adding animation to our hero
  • 3D models
    • drawing / Drawing models, Drawing models
    • fields, adding / Adding fields
    • Initialize method / Initialize
    • loading / Loading models
  • 3D sound
    • playing / Playing 3D sound
    • fields / Fields
    • LoadContent method / LoadContent
    • Update method / Update
  • Dev Center Dashboard / Application submission process
  • Doppler effect
    • about / Playing 3D sound
  • DrawBoundingBox property
    • about / Update extension
  • Draw method, Game class
    • about / Draw
  • Draw method, GameObject2D
    • about / Methods

E

  • EnabledGestures
    • list / Enabling gestures
  • EndShowKeyboardInput method / Using keyboard
  • enemies
    • adding / Exercise: adding enemies
  • enemy, level scene
    • fields / Fields and properties
    • constructor / Constructor
    • initialize method / Initialize
    • EnemyAnimationComplete method / EnemyAnimationComplete method
    • LoadContent method / LoadContent
    • update method / Update
    • draw method / Draw
    • implementing / Scene implementation
  • EnemyAnimationComplete method
    • about / EnemyAnimationComplete method
  • extension method / The extension method

F

  • fields, background class
    • about / Fields
  • fields, Buttons Controller class
    • about / Fields and properties
  • fields, enemy class
    • about / Fields and properties
  • fields, Game class
    • GraphicsDeviceManager / Fields
    • SpriteBatch / Fields
  • fields, hero class
    • about / Fields and properties
  • fields, path class
    • _pathParts / Fields
    • _tailPartIndex / Fields
    • _prevSwitchPosition / Fields
    • GROUND_POS / Fields
  • fields, Perspective Camera
    • about / Extra Fields
  • fields, spikes class
    • about / Fields
  • fields, swing ball class
    • about / Fields
  • ForceButtonRelease method
    • about / ForceButtonRelease method

G

  • game
    • menu scene / Menu scene
    • level scene / Level Scene
    • testing / Testing
    • trial version, creating / Creating a trial version
    • application certification requisites / Application certification requirements
    • application submission process / Application submission process
  • GameAnimatedModel class
    • about / The GameAnimatedModel class
    • fields / Fields
    • LoadContent / LoadContent
    • update / Update
    • animations, controlling / Controlling animations
    • Draw method / Draw
  • GameAnimatedSprite class
    • about / The GameAnimatedSprite class
    • fields / Fields
    • properties / Properties
    • constructors / Constructors
    • play method / Play, pause, and stop
    • pause method / Play, pause, and stop
    • stop method / Play, pause, and stop
    • Update method / Update
  • GameAnimatedSprite constructor
    • about / Initialize
  • GameButton class
    • creating / The button
    • fields / Fields and events
    • events / Fields and events
    • constructor / Constructor
    • LoadContent method / LoadContent
    • update method / Update
  • Game class
    • about / The Game class
    • fields / Fields
    • constructor / Constructor
    • Initialize method / Initialize
    • LoadContent method / LoadContent
    • UnloadConten methodt / UnloadContent
    • Update method / Update
    • Draw method / Draw
  • game concept
    • about / Game concept
  • GameModel, 3D objects
    • about / The GameModel
    • fields / Fields
    • constructor / Constructor
    • methods / Methods
  • GameObject2D
    • about / The base class
    • Initialize method / The base class
    • Draw method / The base class
    • LoadContent method / The base class
    • Update method / The base class
    • properties / Properties
    • constructor / Constructor
    • methods / Methods
    • updating / Updating GameObject2D
  • GameObject3D
    • about / The base class
    • properties / Properties
    • constructor / Constructor
    • methods / Methods
  • GameScene class
    • about / The GameScene
    • properties / Properties
    • constructor / Constructor
    • methods / Methods
  • GameSprite class
    • building / Building the GameSprite class
    • fields / Fields
    • properties / Properties
    • constructor / Constructor
    • methods / Methods
  • GameTime property / Render context
  • gestures
    • used, for user input / Gestures
    • list / Gestures
    • enabling / Enabling gestures
    • reading / Reading gestures
  • GetCapabilities method / Using touch
  • GetState method / Using touch
  • GraphicsDeviceManager field / Fields
  • GraphicsDevice property / Render context
  • Guide class / Using keyboard

H

  • hero, level scene
    • about / Hero
    • fields / Fields and properties
    • properties / Fields and properties
    • initialize method / Initialize
    • SetHeroAction method / SetHeroAction method
    • update method / Update
    • implementing / Scene Implementation
  • Hero2D class
    • about / The Hero2D class
    • movement, adding / The Hero2D class
    • fields / Fields, Fields
    • Initialize method / Initialize, Initialize
    • LoadContent method / LoadContent
    • Update method / Update
    • Draw method / Draw
    • game class, updating / Updating the game class
    • updating / Updating Hero2D, Updating Hero2D
    • update method / Update
  • Hero3D class
    • about / The Hero3D class
    • fields / Fields
    • Initialize method / Initialize
    • LoadContent method / LoadContent and Draw
    • Draw method / LoadContent and Draw
    • update method / Update
    • Game class, updating / Updating the Game class
    • updating / Updating Hero3D

I

  • inherit
    • about / Building the GameSprite class
    / The Hero2D class
  • Initialize method, Game class
    • about / Initialize
  • Initialize method, GameObject2D
    • about / Methods
  • IsGestureAvailable / Reading gestures

K

  • keyboard
    • used, for user input / Using keyboard

L

  • layers, background class
    • front clouds layer / Fields
    • middle clouds layer / Fields
    • mountains layer / Fields
    • air layer / Fields
    • back clouds layer / Fields
  • level scene, game
    • about / Level Scene
    • prerequisites / Level Scene
    • background / Background
    • path / Path
    • ButtonsController / Buttons Controller
    • hero class / Hero
    • swing ball / Swing Ball
    • spike / Spikes
    • enemy / Enemy
    • Perspective Camera / Perspective Camera
  • LoadContent method / Loading textures
  • LoadContent method, Game class
    • about / LoadContent
  • LoadContent method, GameObject2D
    • about / Methods

M

  • MainGame
    • fields / Fields
    • initialize method / Initialize
    • LoadContent method / LoadContent
    • Update method / Update
    • Draw method / Draw
  • MainGame, 3D objects
    • updating / Updating MainGame
    • fields / Fields
    • Initialize method / Initialize
    • LoadContent method / LoadContent, Update, and Draw
    • Update method / LoadContent, Update, and Draw
    • Draw method / LoadContent, Update, and Draw
  • main game class
    • initialize method / Initialize
    • LoadContent method / LoadContent
    • update method / Update and Draw
    • draw method / Update and Draw
  • matrices
    • using, in 3D graphics / Using matrices
    • world matrix / Using matrices
    • view matrix / Using matrices
    • projection matrix / Using matrices
  • Matrix.CreatePerspectiveFieldOfView static method
    • about / Constructor
  • menus
    • about / Menus
    • button / The button
    • menu scene, creating / The menu scene
  • menu scene
    • creating / The menu scene
  • menu scene, game
    • about / Menu scene
    • fields / Fields
    • constructor / Constructor
    • initialize method / Initialize
    • LoadContent method / LoadContent

N

  • NUnit
    • about / Testing
    • URL / Testing

P

  • path, level scene
    • about / Path
    • fields / Fields
    • initialize method / Initialize
    • update method / Update
    • implementing / Scene Implementation
    • camera, using / Scene Camera
  • pause animation
    • about / Play, pause, and stop
  • Perspective Camera, level scene
    • about / Perspective Camera
    • constructor / Constructor
    • fields / Extra Fields
    • AddObstacle method / AddObstacle method
    • ResetLevel method / ResetLevel method
    • deactivate / Deactivate
    • SetObstacle method / SetObstacle method
    • extension, initializing / Initialize extension
    • extension, updating / Update extension
  • PlayAnimation
    • about / Play, pause, and stop
  • properties, Buttons Controller class
    • about / Fields and properties
  • properties, enemy class
    • about / Fields and properties
  • properties, hero class
    • about / Fields and properties

R

  • RandomizeButtons method
    • about / RandomizeButtons method
  • RenderContext class
    • creating / Render context
    • properties / Render context
    • SpriteBatch property / Render context
    • GraphicsDevice property / Render context
    • GameTime property / Render context
  • RenderContext class, 3D objects
    • updating / Updating RenderContext
  • ResetLevel method
    • about / ResetLevel method

S

  • scene graph
    • about / Scene graph
    • implementing / Implementation
    • fields / Fields
    • constructor / Constructor
    • methods / Methods
    • code, using / Using the code
  • scene manager
    • about / Scene manager
    • GameScene class / The GameScene
    • SceneManager class / The SceneManager
    • scenes, creating / Creating scenes
    • main game, updating / Updating the main game
  • SceneManager class
    • about / The SceneManager
    • properties / Properties
    • constructor / Constructor
    • scenes, managing / Managing the scenes
    • methods / Managing the scenes
    • initialize method / Initialize and LoadContent
    • LoadContent method / Initialize and LoadContent
    • Update method / Update and Draw
    • Draw method / Update and Draw
  • scenes
    • creating / Creating scenes
  • SetHeroAction method
    • about / SetHeroAction method
  • SetObstacle method
    • about / SetObstacle method
  • SkinnedModelData project
    • about / Adding animation to our hero
  • song
    • playing / Playing a song
  • sound
    • playing / Playing sound
    • SoundEffect / SoundEffect
    • volume, setting / Setting volume, pitch, and pan
    • pitch, setting / Setting volume, pitch, and pan
    • pan, setting / Setting volume, pitch, and pan
    • SoundEffectInstance class / SoundEffectInstance
    • song, playing / Playing a song
  • SoundEffect class
    • about / Before we start, SoundEffect
  • SoundEffectInstance class
    • about / Before we start, SoundEffectInstance
    • fields / Fields
    • LoadContent method / LoadContent
  • spike, level scene
    • fields / Fields
    • initialize method / Initialize
    • implementing / Scene Implementation
  • SpriteBatch.Begin() method / Drawing textures
  • SpriteBatch.End() method / Drawing textures
  • spritebatch Draw method / Building the GameSprite class
  • SpriteBatch field / Fields
  • SpriteBatch property / Render context
  • sprites
    • drawing / Drawing sprites
    • fields, adding / Adding fields
    • textures, loading / Loading textures
    • textures, drawing / Drawing textures
  • sprite sheets
    • about / Sprite sheets
  • static ReadGesture method / Reading gestures
  • static TouchPanel class / Using touch
  • swing ball, level scene
    • about / Swing Ball
    • prerequisites / Prerequisites
    • fields / Fields
    • initialize method / Initialize
    • LoadContent method / LoadContent
    • update method / Update
    • implementing / Scene Implementation

T

  • touch
    • used, for user input / Using touch
  • TouchCollection / Using touch

U

  • unit test
    • about / Testing
  • UnloadContent method, Game class
    • about / UnloadContent
  • Update method, Game class
    • about / Update
  • Update method, GameObject2D
    • about / Methods
  • user input, handling
    • keyboard, using / Using keyboard
    • accelerometer, using / Using the accelerometer
    • touch, using / Using touch
    • gestures, using / Gestures

W

  • Windows Phone
    • developing / Developing for Windows Phone
    • registering / Registering your Windows Phone
    • application, creating / Getting started with your first application
    • application, deploying / Getting started with your first application
  • Windows Phone application
    • creating / Getting started with your first application
    • deploying / Getting started with your first application
  • Windows Phone Marketplace
    • game, releasing / Creating a trial version
  • Windows Phone SDK
    • installing / Installing the Windows Phone SDK

X

  • XACT
    • about / Before we start
  • XNA Game Studio
    • about / Getting started with your first application
    • Game class / The Game class
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime