Generic Tower Defense
A simple tower defense game
Introduction to the Project
Generic Tower Defense is a project that I made for a school assignment to create a tower defense game. GenericTD focuses on having a clean and simple art style while still being fun and enjoyable to play. I learned a lot during the development of this project, not only about how to write better code but also how to use Git more efficiently.
Gameplay
The gameplay consists of stopping ever-increasing waves of enemies from reaching your "Base." You can defend against the incoming enemies by buying and placing turrets along the path to your base.
Buying Turrets
You can buy turrets with a currency you earn from killing enemies, which is called "Metal".
There are currently 2 different turrets you can buy.
Turret Placing
When you buy a turret, you enter placing mode, where a placement icon follows your mouse location along a grid. When you click, you place the turret on the grid at the location where you clicked.
Set the variable "mousePosition" as the position of the mouse.
Move the placement indicator along the grid smoothly with the help of the DotTween extension.
Place the turret when you click the left mouse button.
Outcome
While developing this project, I learned a lot of new skills both inside and outside of Unity, and I am very pleased with the end result.