This commit is contained in:
Andriy Yednarovych
2026-02-22 19:26:26 +01:00
parent fd1ff19c4c
commit e877c5f058
211 changed files with 9385 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends Area2D
func _ready() -> void:
body_entered.connect(on_body_entered)
body_exited.connect(on_body_exited)
func on_body_entered(body: Node2D) -> void:
if body is PushableStatute:
body.push_direction = PlayerManager.player.direction
func on_body_exited(body: Node2D) -> void:
if body is PushableStatute:
body.push_direction = Vector2.ZERO