Code Samples

 Recently I have been experiment with XNA.  Because XNA simplifies working with the graphics device it allows for focus on other areas.  Below are some quick samples that I have put together using XNA.  In order to view these samples you must have Visual C# and XNA.

 

XML-Based 2D Particle

This source is just a simple 2D particle engine using sprites to represent each particle.  An editable XML file changes the properties of the particle system dramatically through simple changes to the XML file. 

Source Code:

2DParticle (XNA 2.0)

 

XML-Based Fireworks

This sample further demonstrates the power of XML.  Each type of firework is defined in it's own XML file.  The number pad will control the type of firework while the color is randomized.

Source Code:

Fireworks (XNA 2.0)