New Open Source Project Time

December 7th, 2008 | 0 comments

Today I’m releasing a library of my extension methods to the public. The project is called XNExtensions and is available under MS-Pl from CodePlex. The library features various extension methods for XNA and .NET classes which should help developers making games. The library comes complete with a solution containing library projects for all three platforms (Windows, Xbox 360, and Zune).

Some of the nicer (in my opinion) methods that are currently implemented:

  • GraphicsDevice.SetViewport(ViewportLocation)
    Sets the current device’s viewport using an enumeration containing the nine common viewports (fullscreen, vertical halves, horizontal halves, and four corners)
  • All the PlayerIndex extensions. There are a ton of methods in there that make retrieving information about a player much simpler, including retrieving permissions and the users preferences.
  • Generic extension methods for adding or getting services from the Game.Services collection.
  • Methods for retrieving game pad thumbstick data using enumerations for the sticks and, optionally, the axis desired.

And a bunch more. The entire source is freely available under MS-Pl so feel free to have a look (there’s a browse feature in the source so you can take a look without even downloading it). And as always it’s not required, but I do appreciate it you leave a comment here or on the project page if you are using it. It’s always nice to see who’s using my code.


Possibly Related Posts

(Automatically Generated)
Editing The Default XNA Game Studio Project Templates
Further extending C# arrays
I made a Flash game!
Spice up your PC input with extension methods
Sprite Sheet Packer Tool Released!

No comments yet.
You must be logged in to post a comment.