Szczegóły ebooka

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

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

Brecht Kets, Thomas Goussaert

Ebook
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!
  • Building your First Mobile Game using XNA 4.0
    • Table of Contents
    • Building your First Mobile Game using XNA 4.0
    • Credits
    • About the Authors
    • Acknowledgement
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
        • Instant Updates on New Packt Books
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
      • Downloading the color images of this book
        • Errata
        • Piracy
        • Questions
    • 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
    • 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
    • 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
    • 4. Input
      • Using keyboard
      • Using the accelerometer
      • Using touch
      • Gestures
        • Enabling gestures
        • Reading gestures
      • Summary
    • 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
    • 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
    • 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
    • 8. Releasing our game
      • Testing
      • Creating a trial version
      • Application certification requirements
      • Application submission process
      • Summary
    • Index
  • Tytuł: 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
  • Autor: Brecht Kets, Thomas Goussaert
  • Tytuł oryginału: 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
  • ISBN: 9781849687751, 9781849687751
  • Data wydania: 2013-01-25
  • Format: Ebook
  • Identyfikator pozycji: e_3d0k
  • Wydawca: Packt Publishing