Jump to content
  • Advertisement
Sign in to follow this  
rasher_b2

Levels and spawning in a space shooter

This topic is 4506 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

I have been trying to figure out how to do this in my 2d space shooter(1942 syle). So far, this is what I do: I record the total distance covered by the player and spawn new enemies basied on the distance covered. When they are spawned is defined in the level file. For example, a file containing "800" and "1100" will spawn enemies when the player has covered a distance of 800 and 1100. Now, I was wondering what would be the standard way to do things in these games. Would a tile engine be used?

Share this post


Link to post
Share on other sites
Advertisement
I've never done that before but my guess would be they do it either the way you're doing it (which is, essentially, time based) - or set it up so each wave spawns a certain amount of time after the first has been cleared. I don't think tiles would have much to do with it, unless it was a tile-based shooter of course!

Share this post


Link to post
Share on other sites
heres an entry from mine
<EVENT type="addvehicle" time="1.85">
<ALIEN type="orange" pos="130 0 130" dir="0 1 0 0" vel="0 0 0" fp="arrive1"/>
</EVENT>

each loop check to see if a certain critera is met (int the above is if the level time > 1.85secs then it spawns)

Share this post


Link to post
Share on other sites
Shooters are interesting. They can be very simple, or complicated depending on what you want to do. Enemy attack patterns, following curves, etc. It would be great to see more information on developing these styles of games.

Also, you may want to check out http://www.shmup-dev.com. It's a forum devoted to developing shooters.

Share this post


Link to post
Share on other sites
I used a camera/tile system to spawn enemies.

http://rel.betterwebber.com/index.php?action=contents&item=Space+Impakto

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!