For tower defense game I wanna make a module script with waves and mobs inside them.
But Idk how to save order and put same mobs in one wave but they should spawn one in the beginning and the second ones in the end of the wave? (Like Dog in e.g.)
E.g.:
Waves = {
[1] = {
Car = 3
},
[2] = {
Dog = 2,
Car = 3,
Dog = 1
},
}
I know that I can do like so, but table becomes so mess:
Waves = {
[1] = {
[1] = {Car = 2},
},
[2] = {
[1] = {Dog = 2},
[2] = {Car = 3},
[3] = {Dog = 1}
},
}
Mb there’s a better solution?