Hack and slash

Some time ago I wanted to experiment with a wave system. I mean wave in terms of enemies incomming in a succession of waves, kind of like rounds. These waves would compound a level.

So, in short, I wanted every level to be a succession of waves. Every wave would have a list of enemies and the amount to spawn of that type, so, every fixed amount of time, a new random enemy would be spawn. Once that wave has no enemies left to spawn, the next wave would commence. FInally, I also wanted every type of enemy to spawn in a specific location.

Here is a screenshot of the Level component:

Note: A custom editor would be helpful, I know, sorry for the hard to read content.

Every enemy will only spawn in one of those locations, randomly.

Sin título

Every wave or “Round” has a specific amount of each enemy to spawn.

Finally, in order to test it, I made a little hask and slash game with hit and run mechanics. You can download the .apk here (To start the waves, you have to push -attack- that button on the upper right part of the level). The game asks for read phone state and internet connectivity permissions. It’s a known Unity 5 bug, so sorry about that.