I use a program called Tiled Map Editor to create levels. Currently there is no art for the game -- just some stuff I stole from Google -- but you can see the basic premise of the level's design.
I slap down some graphics, tell Tiled which parts should be solid and non-solid, and which places should spawn enemies. The enemy spawners are completely customizable -- I can have enemies spawn in a pulse every few seconds (or milliseconds!), in different directions (or random ones!), at different (or random) speeds, and so on.
Once it's all done, I just call a function, LoadLevel(), which reads in the map's XML data, finds the graphics it needs, and turns it into the level you play in the game.
Right now I've got the basics implemented, and there's a surprising amount of complexity with the few spawn types I have. I'm pretty excited to start adding more!
Editing some stuff...you can see that some platforms have names, and there's a player spawn point in the middle:
Just playing around with some level designs...this one was interesting:
I decided to use this level as a stress test, so I added a 'fountain' spawner and cranked up the volume...a little bit...
In the next post...I don't know what I'll be talking about...but it'll be cool!
No comments:
Post a Comment
Enter your comments here!