Saturday, March 27, 2010

XNA pong demo

This morning I held a tutorial for teaching a game programming class. The tutorial was part of the CCSC-MS conference that was held on the Harding campus, and approximately 20 faculty and a few college students were in attendance.

In the second half of the tutorial, I walked participants through building a simple pong game using XNA, Microsoft's game programming framework for Windows and the Xbox. In honor of March Madness, I wrote a basketball-themed pong demo that introduces displaying sprites, animation, keyboard input, sound effects, and collision detection.

Pong screen shot

If you are lazy and just want the demo code, look for links at the bottom of the demo.