Microsoft's XNA Framework provides C# developers with a robust and efficient method of
utilizing the DirectX and Direct3D Application Programming Interfaces (APIs) in order to
build 3D games for the Windows, Xbox 360, and Windows Phone platforms.
This book will present a series of video games, utilizing the XNA Framework to create
3D environments and objects. The games we build in this book will be targeted to the
Windows platform, though they can be compiled to run on both the Xbox 360 and
Windows Phone with minor changes to accommodate input methods on those devices.
Each of the games presented will build on the 3D concepts of the previous games, and finally
wrapping up with a game built around the Game State Management system sample code
available from the Microsoft XNA website.
Create action-packed 3D games with the Microsoft XNA Framework
Overview
-
Learn the structure of a 3D world and how to implement a variety of 3D techniques including terrain generation and 3D model rendering.
-
Build three different types of 3D games step-by-step, including a first-person maze game, a battlefield tank game, and a 3D sidescrolling action game on the surface of Mars.
-
Learn to utilize High Level Shader Language (HLSL) to add lighting and multi-texturing effects to your 3D scenes.
In Detail
Move beyond the world of flat 2D-based game development and discover how to create your own exciting 3D games with Microsoft XNA 4.0. Create a 3D maze, fire shells at enemy tanks, and drive a rover on the surface of Mars while being attacked by alien saucers.
"XNA 4 3D Game Development by Example: Beginner's Guide" takes you step-by-step through the creation of three different 3D video games with Microsoft XNA 4.0. Learn by doing as you explore the worlds of 3D graphics and game design.
This book takes a step-by-step approach to building 3D games with Microsoft XNA, describing each section of code in depth and explaining the topics and concepts covered in detail.
From the basics of a 3D camera system to an introduction to writing DirectX shader code, the games in this book cover a wide variety of both 3D graphics and game design topics. Generate random mazes, load and animate 3D models, create particle-based explosions, and combine 2D and 3D techniques to build a user interface.
"XNA 4 3D Game Development by Example: Beginner's Guide" will give you the knowledge to bring your own 3D game creations to life.
What you will learn from this book
-
The core concepts of 3D graphics and how XNA describes the 3D world
-
Build a 3D maze that the player can explore in search of the mysterious spinning cube
-
Create 3D terrain based on a 2D height map image, adding texturing and lighting to the terrain's surface
-
Load, display and animate 3D models
-
Build a button-based user interface overlay for your 3D game
-
Create a billboard particle system to produce dynamic explosions
-
Build a skybox to give your worlds full 3D backgrounds
-
Detect collisions between 3D objects and have your game react accordingly
Approach
This book is a step-by-step tutorial that includes complete source code for all of the games covered. It adopts an engaging style to teach all the game development concepts. Each block of code is explained, and game development concepts are diagrammed and covered in detail. Each game begins with a concept description and concludes with suggestions for expanding on the finished game.
Who this book is written for
This book is intended for readers who want to create 3D games using the XNA Framework. Basic knowledge of the C# programming language and 2D XNA concepts are helpful, but not required.