Jump to content
  • Advertisement
Sign in to follow this  
Trillian

Designing a space-shooter level format

This topic is 4544 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I'm currently doing a Space shooter game which is also a side-scroller. I would like this game to ressemble Jets 'N' Guns ( a very cool game btw ). Now, I'm faced with designing a file-frmat for the levels in this game. I'd like to have ideas from any of you that have already done such a thing. For the moment I'm thinking on some "time/event" based file. What I mean by this is that elements are added and removed of the level based on time in seconds. For example :
0.0 LoadEnemyDef("fooenemy","foo.ed") // id, file
0.0 AddBackground("BG","Mybackgroundfile.bg",3) // id, file, z-depth
0.0 SetBackgroundScroll("BG", 5) // id, pixels per second
4.0 SpawnEnemy("fooenemy") // enemyid
8.0 DisplayMessage("Hello world!", 0xFFFFFFFF, 5) // text, color, time
15.0 DisplayMessage("Boss Approching", 0xFFFFFFFF, 5) // text, color, time
20.0 SpawnFuckingHugeBoss()

Please note that this is more some kind of textual representation, it could also be a binary file. Could that be a good way to handle level? Do you have any other suggestions?

Share this post


Link to post
Share on other sites
Advertisement
Yeah, that would be a ok way to store the events in the level.
I did it the same way, I used xml to store it tought.


What you would want to make is a little editor for this. It would make it much
easier. It dont have to be fancy but you need to have a clear view of the timeline. (at least that was the problem for me until I wrote a little editor in wxPython)


Anyway good luck..

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!