Skip to Content

Category Archives: CSharp

Acid Boots

Written on July 8, 2009 at 2:59 pm, by

Mike messaged me late last week with a challenge: make a game in under 10 hours and in less than a week. This is the result, from the bit of free time I’ve had after work: You can download the game here: Download the game You’ll need XNA installed to run it.

Wisp Source

Written on August 10, 2008 at 2:59 am, by

Because Mykre couldn’t wait to see it, here’s the source code for the wisp demo I recently made. I cleaned up the code a bit and added pretty liberal comments so you can really tell what’s going on. Let me know what you think! Download the Source Code

Time Control

Written on August 1, 2007 at 12:20 pm, by

A quick note about time control, with code. XNA makes time relatively simple – a GameTime object is managed automatically and given to you every frame. This makes calculations involving time relatively simple. However, what happens when you want to slow down time? You could just use a variable to set the time speed, and  Continue Reading »

Eliminating Magic Numbers

Written on July 5, 2007 at 3:21 pm, by

With the Dream Build Play competition nearing a close, I’m sure everyone is busy with tweaking their game to make it as fun as possible. Of course, this can be quite the monumental task if you’ve got a large code base with “magic numbers” all over the place. What’s a magic number, you ask? A  Continue Reading »

WSUXNA Engine Code

Written on June 9, 2007 at 2:49 am, by

It’s about time I release the engine I created last fall in XNA. This engine is purely academic, and should be treated as such (i.e. don’t go trying to make your own games with it unless you want to retouch most of the engine). However, it’s fully commented, and I believe the code is both  Continue Reading »

QuadTree (Source Included)

Written on May 6, 2007 at 9:45 am, by

Enjoy this tutorial on Quadtrees, explaining how they work and why they’re useful for collision detection. Includes pictures and source code. Comments are highly appreciated. A Quadtree’s Purpose Your collision detection solution should operate at successively more accurate levels to be effective. Since each successive level is more accurate, deeper levels require more processing time.  Continue Reading »

WSUXNA Part 1 – A Common Design

Written on April 23, 2007 at 2:42 pm, by

Last Fall I took a game design class at my University. Far from design, the class mainly consisted of game programming, with some lectures on design. As part of the class, we were required to program several games, the last game being a large group project. The professor supplied us with two separate engines to  Continue Reading »

Commenting is Easy!

Written on March 18, 2007 at 8:29 pm, by

I admit, I used to hate commenting code. It took so much time, and I was constantly changing the code anyway. Every time I’d code something, I said “I’ll comment it once it’s done.” Every time I finished something, I’d immediately start working on the next piece. After all, it took a lot of time  Continue Reading »

Code Snippets in XNA

Written on March 5, 2007 at 11:16 am, by

Do you find yourself typing the same thing over and over again? Maybe it’s the code to draw an effect (begin, end and the pass loop) or maybe you keep having to resolving a render target to a texture. Wouldn’t it be nice if you didn’t have to type all that code every time? Enter  Continue Reading »

High-Performance Code on the Xbox 360

Written on February 26, 2007 at 3:20 pm, by

C# is a really nice language – it takes care of a lot of the little things for you, letting you focus on the bigger issues in your program. However, it can’t do everything – and even things it will do, it won’t necessarily do well, or when you need them. Garbage collection is the  Continue Reading »