Custom waves is an TD game
Hello,
I'm working on a TD and have some questions regarding wave-spawning, more specifically I would like a system that lets me easily customize what mobs spawn.
My current idea goes something like this:
One script "WaveManager" for each path on the level. When a new wave start the WaveManager go through a array that contains the name of a prefab, and a float that tells me how long to wait before proceeding to the next item in the list.
so, something like this:
exampleWave = [["mob1", 1.0], ["mob2", 0.5], ["mob1", 1.0]];
I don't want to use the same waves all the time so I need to randomize between a few set templates, but how should I store the different waves? In a text file? have all of them all in a script? some other way? The game will be for mobile so that is why I'm concerned with doing this as good as possible.
If you see anything else with the implementation in general that is bad or could be changed feel free to tell me! This is just what I came up with as a first thought so feedback is appreciated.
Thanks!
No one have any input? Would really appreciate some help / feedback