Hi everyone! I’m working on a tower defense game, I started from the brackeys tutorial and moved on implementing some features I found intresting. Now I’m trying to generate the waves randomly, and it’s more difficult than what I thought, expecially to have some balanced and challenging stuff. My first approach was to simpy have an enemy pool, and to create each wave picking random enemies from this pool, limiting the maximum index I could use to pick from the pool based on the current wave index.
after some tests, I found this method too “random” since the waves didn’t have a “shape”, they were just a bunch of random enemies, and also as the game goes on, small enemies will still spawn and they won’t be challenging at all..
So my next approach, was to have some kind of “semantic” groups of enemies, and create waves made by some of these groups. Like a burstGroup with same kind of enemies but small spawn rate, followed by a longGroup of same enemies but slow rate and so on…
But I don’t have the right “formula” for this… I’m trying to figure it out, but I’m posting here just to see if anyone could have some suggestions!