Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
Get Started Fast with XNA Game Studio 4.0–and Build Great Games for Both Windows® Phone 7 and Xbox 360®
This is the industry’s best reference and tutorial for all aspects of XNA Game Studio 4.0 programming on all supported platforms, from Xbox 360 to Windows Phone 7 and Windows PCs. The only game development book authored by Microsoft XNA development team members, it offers deep insider insights you won’t get anywhere else–including thorough coverage of new Windows Phone APIs for mobile game development.
You’ll quickly build simple games and get comfortable with Microsoft’s powerful XNA Game Studio 4.0 toolset. Next, you’ll drill down into every area of XNA, including graphics, input, audio, video, storage, GamerServices, and networking. Miller and Johnson present especially thorough coverage of 3D graphics, from Reach and HiDef to textures, effects, and avatars. Throughout, they introduce new concepts with downloadable code examples designed to help you jumpstart your own projects. Coverage includes
From Windows Phone 7 mobile gaming to Xbox 360, XNA Game Studio 4.0 creates huge new opportunities for experienced Microsoft developers. This book helps you build on skills you already have, to create the compelling games millions of users are searching for.
Introduction 1
So You Want to be a Game Developer? 1
A Brief History of XNA Game Studio 1
What Is Available in Game Studio 4.0? 3
Why This Book? 4
1 Getting Started 5
Installing XNA Game Studio 4.0 5
Downloading the Tools 6
App Hub Membership 6
XNA Game Studio Connect 9
Writing Your First Game 11
Your First XNA Game Studio Windows Game 11
Your First XNA Game Studio XNA Xbox 360 Game 11
Your First XNA Game Studio Windows Phone 7
Game 12
Download Samples 12
Summary 12
2 Sprites and 2D Graphics 13
What Does 2D Mean? 13
Show Me Something on Screen 14
Spritebatch 16
Drawing 16
Moving Things Around 19
Animation 20
Controlling State 21
Rendering Text 25
Summary 27
3 The Game Object and the Default Game Loop 29
What Is in a New Project? 29
The Game Class 32
Virtual Methods 32
Methods 33
Properties 34
GameTime 34
Game Loop 36
Update and Draw 36
Components 38
GameComponents 38
Summary 40
4 Introduction to 3D Graphics 41
3D Graphics in XNA Game Studio 41
What Are 3D Graphics? 42
Makeup of a 3D Image 42
3D Math Basics 43
Coordinate Systems 44
Vectors in 3D Graphics 46
Matrix 53
Graphics Pipeline 61
Graphics Card 62
Vertex Shader 62
Backface Culling 63
Viewport Clipping 63
Rasterization 64
Pixel Shader 64
Pixel Tests 64
