« Posts tagged accelerometer

Porting Sparkles from Zune HD to Windows Phone 7

InputToy (also known as “Sparkles”) started as an application designed to demonstrate programming touch and accelerometer input on the Zune HD with XNA Game Studio 3.1. However, when the XNA Game Studio 4 Community Technical Preview (CTP) was released with support for the upcoming Windows Phone 7, including a built-in emulator, I felt that porting the application to Windows Phone was the next logical step.

This tutorial will provide step-by-step instructions on porting an application from the Zune HD to Windows Phone, using the existing Zune HD Sparkles application (InputToyZuneHD) as an example.  The full source code for that version can be downloaded here.

»Read More

Making the Zune HD Sparkle with XNA Game Studio 3.1 – Part 1

Introduction

This article explores using XNA Game Studio to access the two primary forms of user input on the Zune HD: the multitouch screen, and the accelerometer. We’ll do this by building a small demo that allows the user to create sparkles by touching the screen, and to move them around by tilting the device.

Over the course of this tutorial, the following subjects will be covered:

  • Multitouch input
  • Accelerometer input
  • Animating blended sprites
  • A simple UI  (in part two)

I won’t be going over how to create a new XNA game project, nor will I describe how to add textures using the Content Pipeline. I assume that the reader has read enough about Game Studio to know how to do these things already. If you haven’t, I suggest downloading XNA Game Studio (a link is provided below) and going through the first tutorial provided in the Game Studio documentation.

»Read More