Planes Tower Defence - The Rest
Published on
(This post was written years later, because I found some more early footage)
Enemies π
The following video was recorded right after I added an enemy object, which can follow the paths I described in the previous post.
I then also added a secondary, faster but weaker enemy, which is red.
Waves π
The waves are defined through Unity ScriptableObjects. In the next video, you can see a countdown in the Console in the bottom left, and the ScriptableObjects in the Asset Browser in the bottom right.
UI & Enemy sprites π
Enemies now are not just white/red squares anymore, but actual sprites. I chose the tanks for them.
They now also have health and a health bar.
I added UI in the top left corner that displays the current wave, and the countdown to the next wave.
In the bottom right is the player's HP, which is not yet implemented in this video:
Towers π
It was finally time to actually add the towers!
I added some pre-defined spots where they can be placed in the level. Players can click on one, and a pop-up menu will appear around there, showing the four available towers types.
The towers point to the nearest enemy, spawn bullets that travel forwards and hit the enemies, doing damage.
Towers only have a limited range and fire rate, which differs per tower type.
In this video, I haven't implemented the currency yet, so I could place towers anywhere and as much as I wanted.
Final Result π
I don't have any more videos, but I implemented everything I set out to implement!
There is one level with a few waves, two enemy types, four tower types, player HP and economy.
(Balancing is probably not very good, but that wasn't the goal of this project anyway.)
The game is freely playable here, right in your browser!
Source code available here