Unity Timeline as enemy waves controller

[Unity, C#] Proof of concept using Unity Timeline as level design tool for orchestrating enemy waves spawns.

I wanted to check if Unity’s Timeline could be used for something more than cinematic sequences. Inspired by Vampire Survivors and Survivor.io I decided to make a simple setup, where timeline clips could determine the sequence of enemy waves. I created a simple test scene - player moves with WSAD keys and shoots projectiles at nearest enemy automatically. There is an EnemyController that actually spawns the enemies and tries to keep the enemy count at levels defined in custom timeline clips.

Timeline features could be leveraged to make balancing the waves easy without the need to replay the whole level. Sample project can be found here.

Written on 23/04/2023