Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

XNA and GameComponents

Sign in to follow this  
Rob Loach


After a bit of fooling around in XNA a bit, I (almost) made an XNA renderer for CeGuiSharp. There's still a bunch wrong with it and I'm not quite sure that I'll continue to hack at it. CeGuiSharp is such a mess and it's almost worth a complete rewrite from scratch with a new design. But you can see what came out from CeGuiSharp through XNA on the right (click to enlarge).

Another thing I've discovered is the use of GameComponents with XNA technology. You have the ability to drag these components onto the designer and then the components will automatically start-up, update and draw for you without you haven't to code anything. It's pretty neat and making them is rather fun. I had a try at it with making a couple of them:
  • BitmapFont
    Once you give the BitmapFont the data file and image file generated from LMNOpc Bitmap Font Builder, you have the ability to easily draw text on the screen.
  • Framerate
    Using a BitmapFont for rendering, the Framerate component will tell you how fast your application is running
  • Input
    A bad thing about the XNA input framework is that it doesn't provide events to any of the input methods so you're left to instantiating KeyboardState, MouseState, GamePadState, etc. The Input component fixes this by providing a number of user input events (KeyDown, KeyUp, MouseMove, GamePadButtonDown, etc).
I'll get around to making a game using these components and publish the source. Maybe a Snake clone because I haven't done one of those yet.....

Random Interest

Dubbed Power Rangers, Bitch
Sign in to follow this  

1 Comment

Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!