1
0
This commit is contained in:
FoxSpellCaster
2025-01-12 15:36:42 -05:00
parent e1150105e7
commit 7afbac49d9
4 changed files with 63 additions and 11 deletions

View File

@@ -8,3 +8,7 @@ func _physics_process(_delta: float) -> void:
linear_velocity.x = -move_speed
if Input.is_key_pressed(KEY_RIGHT):
linear_velocity.x = move_speed
func _on_body_entered(body: Node) -> void:
if body.is_in_group("Tree"):
get_tree().reload_current_scene()