top of page
Search

Designing a Tower Defence Game: Implementing the Tower Addition Feature

  • Writer: Oliver Smith
    Oliver Smith
  • Jan 10
  • 1 min read

A major part of any tower defence game is the towers, without them the game will never work, So i wanted to make sure that this was a great feature that didnt have any problems.


First design

First version of this design i made it so the player could click a tower option in a ui screen and then click onto the grid and be able to place it, The problems i ran into on this was i had not defined the path and obstacles differently to the empty locations on the grid to stop the player being able to place a tower where they shouldn't. To fix this issue i created a new script that would be enabled on any non path/ or node that wasn't filled with an obstacle, Then the placement script ( shown below) went to place it would double check to make sure that object had the node script.

Below is a video displaying how the placing works as well as that how the towers track the enemy objects and fire at them, Currently only 1 tower is within the game just for testing but the script has been made to allow multiple different types of towers to be added with relative ease.

Next steps

My next steps for this feature is to make the tower tracking changeable to allow the player to choose for each tower if it shoots the furthest along the path enemy or the closest to the tower as well as options such as aiming for the highest hp enemy.

 
 
 

Comentarios


Post: Blog2_Post

©2021 by Oliver Smith. Proudly created with Wix.com

bottom of page