Chapter 16: Deploying to the Xbox 360
Quiz Answers
What piece of information does a PC use to identify a specific Xbox 360 machine?
XNA uses a connection key to identify an Xbox 360 machine on a PC.
Fact or fiction: to debug a project that has been deployed on an Xbox 360, you have to load the code in the Xbox 360 code editor and place a breakpoint within the code on the Xbox 360 machine.
Fiction. To debug projects that are deployed on an Xbox 360, place a breakpoint in the code on the PC used to deploy the project. If you then start the project in debug mode, it will run on the Xbox 360 and allow you to debug on the connected PC.
Fact or fiction: if you've created a Windows game project and you want to deploy that project to your Xbox 360, you need to create a new project in order to do so.
Fact. Creating a Windows project allows you to run your game on Windows only, while creating an Xbox 360 project allows you to run your game on an Xbox 360 only. To facilitate multiplatform development, you can create a project for one platform and then create a copy of it for another platform and share files between the two.
What is a preprocessor directive?
Preprocessor directives give developers a way to write code intended for the preprocessor rather than the compiler. Developers can perform logic that affects what code is compiled and how it is compiled using these directives.
What does the following code do in a Windows project?
#if (XBOX360) int A = 5; int B = 4; int C = A − B; #endifBecause the ...