Project-Rekt / rekt

Repo for Game
Apache License 2.0
0 stars 3 forks source link

Obstacle placement #22

Open D13Lee opened 4 years ago

D13Lee commented 4 years ago

need a button to allow player to place down obstacles, in a similar process to towers. Obstacles may be of variable shape, so some framework must be added to handle any shape.

D13Lee commented 4 years ago

Code is now added to allow addition of any object that blocks terrain of variable shape. Tower and walls should inherit from TerrainBlocker, and invoke this.tryAddNewTerrainBlocker instead of this.tryAddNewTower. Still needs a GUI option to allow for placing these walls.

D13Lee commented 4 years ago

We have the buttons made as well, we just need to connect the functions to the UI, add some different blockages, and the feature will be done.

D13Lee commented 4 years ago

buttons have been connected to the functions, and placement now works. just need some images to go along with them.