Member-only story
Godot 1–01: Spawning 2D Enemy Waves (Godot 4/C#)
So — wanna improve your next tower defense game? :)
Have you ever wondered how all those nice tower defense game create massive waves of enemies for your towers to deal with? Well, today, we’re going to discover how easy it is to code in Godot 4 and C#!
In this tutorial, we’re going to see how to spawn enemies at regular intervals according to some pre-determined list, how to make them walk along a simple top-down path, and how to check if the wave has ended.
So by the end of this article, you should have all you need to setup a basic tower defense game prototype ;)
As usual, since we’ll be coding our logic in C#, make sure that you have a version of Godot with .NET enabled:
And of course, don’t forget that you can get the demo scene and all the assets from this demo on my Github 🚀 with all my other Godot tutorials :)