|
@@ -48,8 +48,6 @@ func _ready():
|
|
|
tween = $Tween
|
|
|
tween.connect_into(self)
|
|
|
|
|
|
- pass
|
|
|
-
|
|
|
func _physics_process(delta):
|
|
|
|
|
|
if Input.is_action_pressed("ui_left"):
|
|
@@ -85,19 +83,6 @@ func _physics_process(delta):
|
|
|
|
|
|
func _on_tween_completed(o, k):
|
|
|
is_moving = false
|
|
|
- pass
|
|
|
-
|
|
|
-func _on_area_entered(a):
|
|
|
- if a.get_parent() != $Position2D:
|
|
|
- print(a)
|
|
|
- blocks.append(a)
|
|
|
- is_blocked = true
|
|
|
- pass
|
|
|
-
|
|
|
-func _on_area_exited(a):
|
|
|
- blocks.erase(a)
|
|
|
- is_blocked = blocks.size()
|
|
|
- pass
|
|
|
|
|
|
func turn(dir:int):
|
|
|
dirx = 0
|
|
@@ -114,7 +99,3 @@ func turn(dir:int):
|
|
|
else:
|
|
|
raycast=get_node(rayL)
|
|
|
dirx -= 1
|
|
|
- pass
|
|
|
-
|
|
|
-func update_avatar_dir():
|
|
|
- $Sprite.rotation_degrees = DEG_LIST[dire]
|