Here's a map with all the code visible.
I forget that the exporting thing blanks out scripts for all but the originating computer.
There's a couple simple commands to see how it works
type -sp1 or -sp2 to spawn a wave for that player and -nxt1 and -nxt2 to step to the next wave
and forgive me throwing anth in front of everything... when i began I didn't have a label. I'll probably go through and clean out all the 'anth's when I get bored some day.
add wave for one player adds a wave to a single player, add wave for all players adds a wave to all active players. the All players, is just a shortcut so people don't need to loop through them. This way if all players have the same waves, you can add it to all, and if each player has different waves (say based on difficulty or otherwise) you can add them individually to each player.
Right now you can only add a wave to the end of the list, there is no insertion, but that's comming.
Like I said, this isn't even remotely complete, but I will definately comment each actioin, thanks Saki.
I will be adding a LOT of functions to let the user track the status of a wave (units left to spawn, killed units, alive units, next wave's unit, etc) as well as additional manipulation of the waves.
Hey all, I've been working on a library for the past couple weeks and have hit a road block attempting to register a new event with the event manager... so while I decide on how to deal with that, i figured I'd post the library here for some preliminary feedback.
I haven't cleaned up the library at all and obviously haven't made the documentation yet, so forgive the mess...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Know what... this will be easier...
Here's a map with all the code visible. I forget that the exporting thing blanks out scripts for all but the originating computer.
There's a couple simple commands to see how it works
type -sp1 or -sp2 to spawn a wave for that player and -nxt1 and -nxt2 to step to the next wave
and forgive me throwing anth in front of everything... when i began I didn't have a label. I'll probably go through and clean out all the 'anth's when I get bored some day.
@SakiSakurai: Go
add wave for one player adds a wave to a single player, add wave for all players adds a wave to all active players. the All players, is just a shortcut so people don't need to loop through them. This way if all players have the same waves, you can add it to all, and if each player has different waves (say based on difficulty or otherwise) you can add them individually to each player.
Right now you can only add a wave to the end of the list, there is no insertion, but that's comming.
Like I said, this isn't even remotely complete, but I will definately comment each actioin, thanks Saki.
I will be adding a LOT of functions to let the user track the status of a wave (units left to spawn, killed units, alive units, next wave's unit, etc) as well as additional manipulation of the waves.
Ha! yeah, sry, I never been this far down the threads page, didn't realize there was a Libraries section. My bad, thanks Programmer.
This library is meant for creating and managing waves of units for games like Hero defense and tower defenses.
In it's current state (despite what documentation says) It can currently handle up to 4 players.
*NOTE: I added a link to a map with some samples a few posts down so you can see it since things are so rough right now!
Hey all, I've been working on a library for the past couple weeks and have hit a road block attempting to register a new event with the event manager... so while I decide on how to deal with that, i figured I'd post the library here for some preliminary feedback.
I haven't cleaned up the library at all and obviously haven't made the documentation yet, so forgive the mess...