A bit more blasting

Bloody hell, another update so soon… blame it on the snow.

The new spawning system I mentioned in the previous post has been implemented and the entire engine has just become a truly joyful thing to work with! Previously the system could only deal with one nasty at a time (either a single instance or a repeated stream of one kind of attacker) so having eight nasties appear from the top of the screen and fly down one after the other was easily handled with just one set of commands in the control script (which looks a little like XML but isn’t…). But if I wanted two waves simultaneously appearing from opposite sides of the screen I’d have to position an object at the left and another at the right, wait for twenty frames, add a second object at the left and another at the right and so on… fairly messy.

So one overhaul later and when the script interpreter finds something that needs to be spawned multiple times, the code just makes the first instance before shouting “this object, these X and Y co-ordinates, here’s the movement data, repeat it X times, wait Y frames between repeats and nudge the X, Y and angle values this much between each instance” at a newly-created spawning object and then leaves that to generate the rest of the attack wave automagically. There’s literally nothing to stop eight different waves being generated simultaneously from just eight entries in the script, so despite currently looking identical on screen to how it did before again what can actually be done with the thing has been vastly improved and it’s just not showing that because the script doesn’t use those newly crafted features yet!

The next thing I’m going to do (and hopefully that’ll be tomorrow… or more accurately later today) is construct some actual attack waves to properly test the system and then slap a test titles page in so that the game can be “persuaded” to actually run more than once – right now it just drops back to the BlitzMax IDE when it runs out of wave data or the player’s lives are all gone so I have no idea what state it’s leaving things in on exit!

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter

Tags: , , , , , , , ,

Leave a Reply