...
Studio projects. That release was MSBuild 2.0. Since that release Microsoft has released two
major versions of MSBuild—MSBuild 3.5 and MSBuild 4.0. In MSBuild 3.5 Microsoft released
such goodness ... MSBuild was not shipped with .NET Framework 3.0.) Microsoft
.Build. Commontypes.xsd describes the elements commonly found in Microsoft Visual
Studio-generated project les, and Microsoft. Build. Core.xsd ... the build process. Developers have to understand the build process
so that they can leverage it to meet their needs.
Back in 2005 Microsoft released MSBuild, which is the build engine used to build...
... Xbox 360.
The XNA platform has continued to evolve, and with the release of XNA 3.0,
XNA developers have provided the ability to write games for the Microsoft Zune
MP3 Player. Also, XNA game developers ... should add them to your debugging
procedures.
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
16
FIGURE 2-5
Error message in the Error List
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
xii
7 Animation ... Microsoft
XNA
™
Game Studio
Creator’s Guide
Second Edition
... their displays:
class ReachExplosion
{
8. Add the instance-level variables to hold the display renderer, the particles,
and some animation settings:
ReachExplosionParticleDisplay particleDisplay;
List<ReachExplosionParticle> ... within the HiDef prole 44
Chapter 2: Building 2D and 3D Terrain 57
Introduction 57
Displaying hexagonal maps 58
Displaying 2D isometric maps 62
Importing and displaying 3D isometric maps 64
Generating ... scene here.
// e.g. here's some building and ground objects
// being rendered via their own custom Draw methods
foreach (var building in buildings)
{
building.Draw(camera, reachLensFlare.ShadowCaptureEffect);
}
ground.Draw(camera,...
... and Running with XNA Game Studio on Your PC and Xbox 360
1 Introducing the XNA Framework and XNA Game Studio 7
What Is the XNA Framework?
7
The Foundation of the XNA Framework
8
XNA Today
9
Installing ... FPS
using System;
using System.Collections.Generic;
using Microsoft. Xna. Framework;
namespace XNADemo
{
public sealed partial class FPS
: Microsoft. Xna. Framework.DrawableGameComponent
{
private float ... the XNA Framework and XNA Game Studio
FIGURE 1.7 XNA Game Studio modifies the Windows Firewall so an Xbox 360 and the PC can
talk to each other. It also allows network games created with XNA...
... xmlns="http://schemas .microsoft. com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas .microsoft. com/winfx/2006/xaml"
xmlns:phone="clr-namespace :Microsoft. Phone.Controls;assembly =Microsoft. Phone"
... architecture. Although XNA is mostly associated with writing games for the Xbox
360 console, developers can also use XNA to target the PC itself, as well as Microsoft s classy
audio player, the Zune ... e-mail Microsoft Press Book Support at mspinput @microsoft. com.
(Please note that product support for Microsoft software is not offered through this address.)
We Want to Hear from You
At Microsoft...
... (http://msdn .microsoft. com/academic/default.aspx),
Microsoft Faculty Connection (
http://www. microsoft. com/education/FacultyConnection),
Microsoft DreamSpark (http://www.dreamspark.com), and the Dream- Build- Play ... and XNA.
3. XNA is a programming language.
4. XNA Game Studio is an IDE.
5. The C# compiler produces an XNA output le.
6. C# is a framework.
7. You need an App Hub membership to run your XNA ... microsoft. com/education/FacultyConnection),
Microsoft DreamSpark (http://www.dreamspark.com), and the Dream- Build- Play contest
(
http://www. dreambuildplay.com). If you are a student on a course of study, ask at your
institution...
... and Running with XNA on Your PC and Xbox 360
1 Introducing XNA and XNA Game Studio Express 7
2 XNA and the Xbox 360
19
3 Performance Considerations
35
Part II Understanding XNA Basics
4 Creating ... free:
Microsoft Visual C# 2005 Express Edition
Microsoft XNA Game Studio Express
DirectX 9.0c
Instructions on installing the software can be found in Chapter 1, “Introducing the XNA
Framework and XNA ... Windows-specific functionality:
CHAPTER 2 XNA and the Xbox 360
30
www.it-ebooks.info
8
CHAPTER 1 Introducing the XNA Framework and XNA Game Studio Express
The Foundation of the XNA Framework
Let’s take a journey...
... 501
Microsoft XNA Unleashed
x
CAN’T FIND THE XNA CREATORS CLUB GAME ENTRY?
If you do not see the XNA Creators Club entry it is most likely because of the parental
controls that are set up. XNA ... on Your PC and Xbox 360
1 Introducing XNA and XNA Game Studio Express 7
2 XNA and the Xbox 360
19
3 Performance Considerations
35
Part II Understanding XNA Basics
4 Creating 3D Objects 59
5 ... 2.3.
Buying the XNA Creators Club Subscription
21
2
FIGURE 2.3 Demos and More not only allows us to play demos, but it also lets us navigate
to the XNA Game Launcher.
8. Select the XNA Game Launcher...
... 437
27 Adding Audio to Your Game 459
28 Multiplayer Gaming 491
29 Networking 505
Index 527
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
viii
Microsoft
XNA
™
Game Studio
Creator’s Guide
Second Edition
Stephen ... 526
Index 527
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
xviii
3
Install the Software
Before you can develop any games with XNA, you will need to download some free
software from Microsoft. com. ... and that you have downloaded
the XNA Game Studio Connect application.
CHAPTER 1
Set Up an XNA Development Environment
This page intentionally left blank
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
xiv
15...
... select Programs and choose MicrosoftXNA Game
Studio. Depending on your environment, you could also choose to open
Microsoft Visual Studio, Microsoft Visual C#, or Microsoft Visual C#
Express ... return
to the XNA Game Studio Connect page.
On the XNA Game Studio Connect page, select the Connect to Computer option
and press the A controller button to make the connection.
MICROSOFT XNA GAME ... More), launching XNA Game Studio Connect will
display the XNA Game Studio Connect main page (see Figure 2-4).
The Connect to Computer option is disabled the first time you run XNA Game
Studio...
... per-vertex basis.
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
90
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
80
class so they can be used in your project. These declarations must be added to your
“Building ... data types are very simi-
lar in syntax to XNA data types. Table 6-1 compares the XNA data types with the
HLSL data types used in this book.
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
74
2. In the ... any C-style language.
Referencing the Shader in Your XNA Project
To use shaders, your XNA application needs to load and reference them. The XNA
platform makes this task easy by providing an Effect...
... textureImage; // store texture
// filter (like a brush) for showing texture
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
124
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
98
The vertices for the earth and moon ... tint. Do this by multiplying
// output by the input color vector.
OUT.color *= IN.color;
}
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
110
If you want, you can easily swap these primitive objects ... ani-
mation will run at the same rate regardless of the system. For this example, the out-
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
114
Vertex Types for Textures
Previous examples used a
VertexPositionColor
variable...
... from v.s. – p.s. interpolates between verts
OUT.color *= IN.color;
}
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
128
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
150
If you try the program now, you ... transparency.
5. Create a building and apply textures to the sides. Add a billboarded tree,
cactus, or flower that you create with transparency.
CHAPTER 9
Texturing Your Game World
MICROSOFT XNA GAME STUDIO ... =
Blend.InverseSourceAlpha;
DrawSurfaces(TREE);
graphics.GraphicsDevice.RenderState.AlphaBlendEnable = false;
MICROSOFT XNA GAME STUDIO CREATOR’S GUIDE
138
T
EXTURE COLORING
It is possible to color your image textures...