C++ 2D Shooter project (Htbaa's Worklog)
Levels!
This week I've been thinking about levels and level format. I wanted it to be flexible and easy to edit. So instead of having to build myself an editor that will store my level data in a nice file I decided to use XML.
Every XML file is going to represent a level. The current format allows me to time every wave of enemies and power-ups, and more importantly, their positions and attack patterns.
Using XML makes editing a whole lot easier because there is no need to create a editor that will store all the values. Creating such kind of editor would only consume more time and that's something I simply don't have.
The downside on using XML for the levels is that anyone is able to open it up and screw around :-). But, when the game is going to be final I'll create a converter tool that'll convert the XML files to a binary format. Or something else, I'm note sure yet :-).
I'll be able to go create a game now. There is still a lot of work to to do: More enemies, power-ups, interface, sound, music, menu, online leaderboards.
The online leaderboard part won't be that hard by the way. Using the curl library makes stuff a whole lot easier!
Every XML file is going to represent a level. The current format allows me to time every wave of enemies and power-ups, and more importantly, their positions and attack patterns.
Using XML makes editing a whole lot easier because there is no need to create a editor that will store all the values. Creating such kind of editor would only consume more time and that's something I simply don't have.
The downside on using XML for the levels is that anyone is able to open it up and screw around :-). But, when the game is going to be final I'll create a converter tool that'll convert the XML files to a binary format. Or something else, I'm note sure yet :-).
I'll be able to go create a game now. There is still a lot of work to to do: More enemies, power-ups, interface, sound, music, menu, online leaderboards.
The online leaderboard part won't be that hard by the way. Using the curl library makes stuff a whole lot easier!
(Posted on January, 12th 2008, 21:13)
Comments
Rincewind said:
Well, I found creating a save file with Serialization of data classes is really easy. It just saves a bunch of connected classes and loads them back again.
(Posted on November, 26th 2020, 16:59)