Clean up path and names
This commit is contained in:
parent
92ccf7279d
commit
1aff1c2e38
46 changed files with 203 additions and 117 deletions
|
@ -1,9 +1,9 @@
|
|||
class_name GetRandomTopCellAction
|
||||
class_name GetRandomDestinationAction
|
||||
extends ActionLeaf
|
||||
|
||||
func tick(actor: Node, blackboard: Blackboard):
|
||||
var rand_cell: Vector2i = actor.tile_map.get_random_top_cell()
|
||||
actor.tile_map.set_cell(0, Vector2i(rand_cell.x, rand_cell.y), 1, Vector2i(0, 0), 0) # debug purpose
|
||||
actor.tile_map.set_cell(0, Vector2i(rand_cell.x, rand_cell.y), 2, Vector2i(0, 0), 0) # debug purpose
|
||||
|
||||
var destination = actor.tile_map.map_to_local(rand_cell)
|
||||
destination.y += actor.Y_SPAWN_OFFSET
|
|
@ -1,4 +1,4 @@
|
|||
class_name MoveToTargetAction
|
||||
class_name MoveToDestinationAction
|
||||
extends ActionLeaf
|
||||
|
||||
func before_run(actor, blackboard):
|
Loading…
Add table
Add a link
Reference in a new issue