XNA Creators Club Online

Zune® Game Development



If you have a Zune HD, you can skip ahead to the section specifically for the Zune HD media device by clicking here.


Are you ready to start programming games for your Zune? All you need is XNA Game Studio 3.1 and a Zune media device. Follow these steps to get started with your first Zune game. Once you've done that, try our first Zune Mini-Game, Alien Game!

1. Update Your Zune Software and Firmware

Zune devices running firmware version 3.0 or later support XNA Game Studio. If your device does not already have firmware version 3.0 or later, you'll need to update your Zune.

If you are a new Zune customer, visit http://www.zune.net/setup, and install the Zune software for your computer.

If you already have the Zune software installed on your computer, check for updates. From the Zune software menu, click Settings | GENERAL | CHECK FOR UPDATES.
Use the Zune sync cable to connect the Zune device to your computer. Connect the sync cable to a USB port on the computer. Do not connect to a USB hub.

Note
If the Zune device battery is critically low, charge your Zune device before you continue. For information about how to charge your Zune device, see this Microsoft Knowledge Base article: How to charge the battery in your Zune device.

Open the Zune software on your desktop computer while the Zune device is still connected to it. The Zune software searches the Internet for the latest version of the firmware. If there is a more recent version of the Zune device firmware available, you will get a message to update your device.

Note
Do not move or disconnect the Zune device until you complete the update. The update may take several minutes. During this time, the Zune device may restart several times. Please be patient.

2. Add Your Zune to the XNA Game Studio Device Center
Once you add your Zune to the XNA Game Studio Device Center, XNA Game Studio can connect to your Zune. After that, you can deploy and debug games.

Use the Zune sync cable to connect the Zune device to your computer.
Start the device center by clicking Start | Programs | Microsoft XNA Game Studio 3.0 | XNA Game Studio Device Center.

Click Add Device, and then click Zune.
1. The device center displays a list of connected Zune devices.
2. In the list of connected Zunes, click the one that you want to add, and then click Next.
3. The Zune you selected is added to the list of devices in the device center.
4. You can now close the XNA Game Studio Device Center.
Note
If you are having trouble connecting to your Zune device, or the device is not showing up in the device center, close the Zune client desktop software (if it is running).

You can also configure the Zune desktop software to not launch automatically when a Zune device is connected. You will find this setting under Settings | Device | SYNC OPTIONS.

3. Create and Deploy a Zune Project
Now try out your Zune development by deploying a simple, blank XNA Game Studio game.
To deploy a simple, blank XNA Game Studio game:
1. On your Windows-based computer, at the main Visual Studio screen, click File | New Project (or File | New | Project, depending on your Visual Studio configuration).
2. From Project types, expand Visual C#, and select XNA Game Studio 3.1.
3. In Visual Studio installed templates, select Zune Game (3.1), and then click OK.
4. On your Windows-based computer, with your new project open, press the F5 key.

The project will build. It launches XNA Game Studio Connect on the Zune device, deploys the project and other necessary files to the Zune, and then launches the game.

At this point, you should see a simple display on your Zune: a light blue screen. If you see this screen, you have successfully deployed a game to your Zune. You can now deploy and play any game you dream and build!

To stop the game and return to the main screen of XNA Game Studio Connect:
Press the BACK button on your Zune
- or -
Stop debugging by pressing SHIFT+F5 on your computer.
Note
When an XNA Framework game exits on the Zune that was run as a standalone, the Zune device reboots. This behavior is by design. Also, note that the Zune will reboot when you exit XNA Game Studio Connect. You can do this by pressing the center button on the Zune while you are at the XNA Game Studio Connect screen.
Note
Holding down the Back button for 2 seconds will force the currently-executing game to exit, regardless of the game's normal exit semantics.

Congratulations! You're off to a great start developing games for Zune.


Zune HD
XNA Game Studio 3.1 Zune Extensions, to support Zune HD, adds the following functionality to the product:

  • The ability to target and develop for the Zune HD media player.
  • The addition of new Touch APIs to the XNA Framework for use on the Zune HD.
  • The addition of new Accelerometer APIs to the XNA Framework for use on the Zune HD.
You'll also find new documentation and examples integrated into Visual Studio help that will show you how to leverage the new APIs, as well as a tutorial on how to update the Platformer Game Starter Kit to use the new Touch API's.

Barring the new input models available, your game should port over relatively easily.

Beyond the changes outlined here, all of the other XNA Game Studio functionality with the Zune HD remains the same as it did with earlier versions of the device.

You'll find the download for the XNA Game Studio 3.1 Zune Extensions by following this link. If you have questions or need help getting started using XNA Game Studio 3.1 Zune Extensions, please visit this thread on the XNA Creators Club forums!

Enjoy your Zune HD!


Ready to dive in deep?

Check out our first Mini Game for Zune, Alien Game. In Alien Game, you control a tank with the sole purpose of defending the earth from an alien invasion! It's a simple yet addictive game that is both fun and educational.
Alien Game has several features that you can learn about and integrate into your game. Some of the features are:
- Media Integration, which enables you to start songs directly from the game!
- Support for both Zune input types (Zune Pad and Dpad)
- Menu and state management system

Note
Alien Game was created using XNA Game Studio 3.0. To convert your 3.0 project to 3.1, please read this article.

Download Alien Game for XNA Game Studio 3.0 now!

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG