Xblog.org

>> Home


Locations of visitors to this page

20 April 2008

If I planed ahead, I wouldn't get in to this sort of mess.

This week I've been working on the engine that runs the BertWorld and found that I had got myself into a corner again. The upshot of this is I have now written out a few of the components that I use regularly, as proper GameComponents and DrawableGameComponents, in a Game Library that I can re use with little code to add the the main Game object.

This includes a logger service that can be called from any component to write to a log file just give the filename when you create the object then you can call one of three methods write, writeline & flush it inherits from IDisposable so that I just need to call the dispose method in Game.dispose override method to ensure that the file buffer is emptied and closed.

In other news Nick Gravelyn has setup XNA Wiki Nick had this to say about it:-

My goal is for the community to no longer have pastebins, forum posts, and blogs where they have to dig around to find useful code that isn’t in published samples or tutorials. I would love to see the community have a single repository for all this useful data.

I have already added my FPS drawable component in to the mix, and within 7minuets SimReality had changed it and continued to change it, after I got over my initial "YOU BASTARD!" reaction I can see that the changes he made were sensible and I have indeed Incorporated them into my FPS component, I now have to get round to updating the tutorial to reflect this.

Labels: , , ,

posted by Dave Henry at  

0 Comments:

Post a Comment

Links to this post:

Create a Link