Thursday, December 25, 2008

Day 3: More Fun With XLM Levels

Project: Space Game (Untitled)
Code Budget: 120 Hours, 16 Spent
Media Budget: 200 Hours, 4 Spent
Day Breakdown: 4 Hours of Code

Wow, the Content Pipeline is Anal. I spent most of the day working on getting the large background objects to load up from my XML Level File (See XML Level File). The Content Pipeline does a fantastic job of checking your classes and making sure that everything you declare as a public variable is included in the XML data, it even has to be in the same order as it is declared in your code. I spent the better part of the day figuring out why it was throwing an error saying that XML Element "Model" not defined. Turns out it was part of the parent class, so I ended up trimming out a lot of unneeded public information from my basic game object class.

All told I'm happy with how things turned out today. I have a sky box in place and a very extensible background object system that will let me add planets, space stations, even a tunneling or ground level. Here are a couple of screen shots and you can see the game is starting to look like a game! The object field that was present in the screen shots from Day 2 gets lost in the still images with the sky box, however when the game is running they still do a fantastic job of giving the player the feeling of flying through space. In the screen shots you'll note that the planet is rotating and moving slowly towards the player.

Calling things a bit early today with it being Christmas Day and all.

Goals for Tomorrow: Load ship and AI data, hopefully getting some enemy ships to show up!



No comments:

Post a Comment