Commit 96a20804 authored by dsxfbz's avatar dsxfbz
Browse files

mid-meeting

parent c8dfbb17
......@@ -52,6 +52,14 @@ func kill(actor: String):
get_node("../TurnManager/OrderManager").remove_actor(actor)
remove_child(get_node(actor))
func knockback(target: String, strength: float, dir: String):
for actor in get_children():
if(actor.name == target):
# Move actor in given direction (dir) stength tiles
# Detect collision; deal damage equal to strength remaining if collides with wall?
break
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
......@@ -30,6 +30,7 @@ func move(dir: String):
action_taken = true
else:
print("-Actor Collision: "+get_node("..").get_actor_id_dir(name, dir))
# knockback(target)
else:
print("-Collision")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment