Blog about using games & gaming technology in all areas of education

Kinect Games v2.5 using Kinect SDK v1.6 including source code

This new release of Kinect Games fixes a couple of bugs from the last release which affected performance, the main thing being that I wasn’t correctly disposing of some unmanaged resources which slowed down the framerate. As well as fixing those bugs I have also used the new Kinect SDK v1.6 in this release which should also improve performance.

I have also added a new game to the installer called Kinect Pong, which is just a simple pong game which can be played 1 player against the computer or in 2 players mode. You simply use your right hand to control the bat; the game senses whether 1 or 2 players are standing in front of Kinect and automatically implements AI for the 2nd bat if only 1 person is playing.

There are a few keyboard controls for Kinect Pong:
F11 toggles full screen mode
UP and DOWN cursor keys move the Kinect camera angle up and down
SPACE BAR toggles the video feed on and off (turning it off will improve framerate on slow computers)
ENTER starts a new game when a game has ended
ESCAPE quits the game

Please click here to download the new all in one installer for Kinect Games, the installer includes Math Mage, Kinect Angles, Kinect Time, Kinect Magic Cursor, Kinect Pong, .net 4.0 framework, XNA4 runtime and Kinect SDK v1.6.

Kinect Pong v1.6

Picture of Kinect Pong in play

Source Code
Click here to download Kinect Angles v2.5 source code
Click here to download Kinect Time v1.6 source code
Click here to download Kinect Pong v1.6 source code
Click here to download Kinect Magic Cursor v1.6 source code

You might notice in the Kinect Pong source code that I haven’t used classes much, that was because I was writing the Pong game for a structured programming unit I teach which doesn’t go into classes but only structures. I simply added the Kinect stuff into the game I wrote for that class, so that is why it doesn’t use classes much. I suppose if you are a beginner to XNA/Kinect programming this may make the code easier to follow, or not as the case may be 🙂

13 responses

  1. May I ask how do you elevate camera angle? I am porting an app from SDK beta to the new SDK and NuiCamera.ElevationAngle has been removed (actually the whole nui has been removed)

    November 14, 2012 at 10:50 pm

    • Never mind 😀 It is simply sensor.ElevationAngleElevationAngle old dumb me did not see that 😛

      November 14, 2012 at 10:53 pm

  2. Juan Carlos

    Hi David!
    Thanks for sharing your knowledge.
    I know I can learn a lot and then share all that can develop in Kinect.

    November 18, 2012 at 4:41 pm

  3. Trying to load the solution for Pong into VS.2010 and project says “Project type is not supported”.

    What version of VS did you use?

    January 18, 2013 at 10:10 pm

    • It is visual studio 2010 but you need to install XNA 4 and Kinect SDK v1.6

      January 19, 2013 at 11:59 am

  4. José

    Can’t download it! Dropbox returns this message:
    Error (509)
    This account’s public links are generating too much traffic and have been temporarily disabled!
    Can you please upload it on another server or send me by e-mail? I am doing some college studies and Kinect Angles would help a lot!!
    Thank you very much!

    March 26, 2013 at 10:33 pm

    • Tried to reply to this already my Dropbox should be back on tomorrow

      March 28, 2013 at 1:08 am

    • I also have it on skydrive

      March 28, 2013 at 1:08 am

  5. galih

    thanks david for sharing your knowledge, i’ve already downloaded those code, and I will use for the studying

    March 31, 2014 at 12:21 am

  6. Moritz von Schweinitz

    Hi – neither the SkyDrive or the Dropbox link work. 😦
    Could you please re-upload it?
    Alternativly, I could host the file on one of my servers, if that helps.


    August 27, 2014 at 6:55 pm

    • Please refer to my latest blog post. I have created a downloads page so I didn’t need to keep updating the links all the time.

      August 27, 2014 at 10:23 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s