Monday, 15 February 2010

Level & Content management [Part 2]

Another succesful coding day... :)

Loading object data (position, rotation, scale) with XML is now (finally) complete...

What does this mean?

Every level has his own .xml file containing position, rotation and scale data for each object of that particular level. When loading a level, the appropriate xml file is loaded, assigning any stored data to the correct objects in the current level regardless of the Vector positions inside your C# code. This allows for persistence when building your levels. You no longer have to tweak Vector positions inside your code files, you can easily re-position your game objects while playing...Saving and later reloading when you're ready to play.


Watch video in Fullscreen! Or check out Youtube.

No comments:

Post a Comment