Developing Game-Themed Applications with XNA Game Studio
Day 1 - Section I: Introduction and Overview
e. Running on the XBOX 360 Console
back to Day-1 main page
References:
- Pre-requisite: this is the
example (Section 1d. Interactive Control) we are building off from.
- You can start with this template source file (resulting source code from the above example), and
here is the source code we will generate at the end of this tutorial.
Goals:
- To experience with XBOX 360 and the Zune projects in XNA GS.
Notice:
- We can create XBOX 360 and Zune projects based on the Windows project.
- The Windows project, XBOX 360, and the Zune projects can all co-exist in the
same solution file.
- The source code referred to by all projects are identical, the
only difference is each has their separate .vcproj project file (included in
the same .sln file).
Creating the XBOX 360 (or Zune) project: open the above
template project (from Section 1d) in GSE
- Right mouse button click over the SimpleXNA project and you will
see:
Select the Create Copy of Project for XBOX 360 (or Zune)...
- Click OK: notice the newly create project with name: "Xbox 360 Copy
of SimpleXNA" (or "Zune Copy of SimpleXNA")
- Right-mouse-button click over the new project and rename the project
with a more reasonable name, e.g., SimpleXNA_XBOX.
Now go to the file system, with explorer,
- Navigate to SimpleXNA/SimpleXNA folder, and
- Notice the new project file: SimpleXNA_XBOX.csproj. This
is the new project file for building the project for the XBOX 360 console.
- Notice that, this is the only additional file in the entire
solution.
- The Windows and XBOX 360 project shares the exact same source code
files!
Compile and run on the XBOX 360 System:
- Please refer to
this guide
for the details of how to connect to XBOX 360 console.
- Assuming you have followed the above instruction, you can now
- right-mouse-click over the XBOX project and
- Debug->Start new instance
to begin a debugging session on the XBOX 360 console.
Or the equivalent of a Zune project.
This document and the related materials are developed with support from
Microsoft Research Computer Gaming Initiative under the Computer Gaming
Curriculum in Computer Science RFP, Award Number 15871, and 16531.