Commit 5847ade2 authored by Ethan Huneke's avatar Ethan Huneke
Browse files

Update Player.gd

parent 1b221393
......@@ -38,6 +38,12 @@ func move(dir: String):
else:
print("-Collision")
func teleport(x: float, y: float):
print(String(x))
print(String(y))
position += Vector2.RIGHT * x * tile_size
position += Vector2.UP * y * tile_size
func harm(damage: float):
health -= damage
print(">" + self.name + " took " + String(damage) + " damage.")
......@@ -57,6 +63,8 @@ func _input(ev):
dashRange = 2
else:
dashRange = 1
if Input.is_key_pressed(KEY_T):
teleport(3,3)
func _draw():
var label = Label.new()
......
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