Posted September 30, 2024 by quinn_hartman
Continuing with ZeveonHD's YouTube tutorial, I implemented a tower placement function that allows players to manually position towers on the map. As players hover over the tiles, the tower follows the cursor and snaps to the nearest tile. When the player left-click, the tower is placed in that location, remaining in place and then performing its other functionality, tracking and damaging enemies.