Add a destination property to monsters and towers. For monsters, this property is an x, y position which the monster should move toward until it reaches it, at which point the monster should enter an idle state until it has another destination. For towers, this property is an angle which the tower should keep rotating its turret towards until it reach it, at which point it should stop rotating until it has a different destination point.
Add a
destination
property to monsters and towers. For monsters, this property is an x, y position which the monster should move toward until it reaches it, at which point the monster should enter an idle state until it has another destination. For towers, this property is an angle which the tower should keep rotating its turret towards until it reach it, at which point it should stop rotating until it has a different destination point.