XNA 2.0 Game Programming Recipes: A Problem-Solution Approach (Paperback)

Riemer Grootjans

  • 出版商: Apress
  • 出版日期: 2008-06-25
  • 定價: $1,398
  • 售價: 1.4$199
  • 語言: 英文
  • 頁數: 648
  • 裝訂: Paperback
  • ISBN: 159059925X
  • ISBN-13: 9781590599259
  • 立即出貨(限量) (庫存=1)



Join the game development revolution today! XNA greatly simplifies the development of your own games, lowering the barrier for programmers to get into game development. In XNA, you can start coding your games from the very start, a true revelation compared to other game programming environments. XNA doesn't sacrifice power for this ease of use - it is built entirely on DirectX technology.

XNA expert Riemer Grootjans brings together a selection of the hottest recipes in XNA programming for the Windows PC and Xbox360 console. Advanced XNA programmers, experienced coders new to games development, and even complete beginners will find XNA 2.0 Game Programming Recipes an invaluable companion when building games for fun or as commercial products.

What you’ll learn

XNA 2.0 Game Programming Recipes covers virtually every feature of the XNA 2.0 framework. It focuses primarily on 2D and 3D graphics programming, but other game programming features such as Audio playback and Networking are also discussed in detail.

These are some of the topics that are being covered in-depth:

  • How to create 2D graphics
  • 3D rendering techniques at various levels of difficulty
  • Loading, rendering and animating 3D Models
  • To read input devices: Keyboard, Mouse, Xbox360 Controller
  • Use Audio to spice up your game
  • Add Networking to your game to challenge your friends
  • Learn about the architectural XNA features, such as GameComponents
  • The Content pipeline: one of the 3 major components in XNA Game Development
  • A whole list of HLSL techniques!
    • Who is this book for?

      This book is for everyone! Whatever your experience, you will find a recipe to suit your need and skill. Great care has been taken to ensure the easier recipes provide a great deal of detail so they can be followed by readers without a great deal of programming experience. Each chapter gradually builds in difficulty so you will be able to progress through it as your XNA coding improves and you want to move on to more sophisticated techniques.

      A brief look at the table of contents

      Chapter 1: Getting Started with XNA 2.0 (24 pages) Installing XNA 2.0 Game Studio and starting a new XNA 2.0 Project. Timing, GameComponents, GameServices and the StorageDevice.

      Chapter 2: Setting Up Different Camera Modes in Your 3D World (120 pages) Setting up a first-person and a Quaternion camera. Smooth camera fly-bys, octree and quadtree culling, setting up a HLSL post-processing framework.

      Chapter 3: Working with 2D Images/Textures in XNA 2.0 (102 pages) How to use the SpriteBatch to render 2D images. 2D-in-3D techniques such as billboarding, explosion particle systems and mirroring.

      Chapter 4: Working with Models (108 pages) Loading, rendering and animating 3D Models. Combining World matrices, multiple kinds of collision detection. Defining your own TypeWriters and TypeReaders.

      Chapter 5: Getting the Most Out of Vertices (144 pages) Rendering lines and triangles, storing them on the graphics card. Bilinear interpolation, pointer-to-terrain picking and bump mapping. 3D ocean and racing track generation.

      Chapter 6: Adding Light to Your Scene in XNA 2.0 (60 pages) Lighting basics, shadowing and deferred rendering for multiple lights.

      Chapter 7: Adding Sounds to Your XNA 2.0 Project (12 pages) Adding sounds to your XNA 2.0 game, both for 2D and 3D games.

      Chapter 8: Networking in XNA 2.0 (28 pages) Adding networking to your XNA 2.0 game.

      Development environment costs

      The software you need to develop your own games in XNA 2.0 is completely free. You'll need both the Visual Studio Express C# edition and XNA 2.0 Game Studio, which you can download for free from Microsoft's website.

      The only cost incurred will be if you want to upload your finished game to your XBox360 console, when an annual subscription is payable to Microsoft. If you're just targeting the PC development environment, you won't have to pay anything.