Ok, this branch is finally beginning to shape up.
I put a lot of thought and effort into my kxLevel class, as it is becoming a central component of the game. The main game class stores a pointer to an instance of this class called activeLevel. I've moved most of the initialization of this class into the LoadLevel function, which creates all components of the level from a kyuplex level file. I've created my own level file format, in XML. It stores only the most basic, relevant info for each thing to be included in the level.
This is the first step towards abstracting level design and connecting it to an external level editor, or to be used with kyuplex's own in-game editor. Perhaps even scripting in the future.
Obviously it is still in it's infancy, and will grow in complexity with time, as kyuplex continues to develop. But laying the initial foundation is the hardest part.

No comments:
Post a Comment