first commit

This commit is contained in:
2025-07-20 10:34:21 +02:00
commit a5634c4619
812 changed files with 61126 additions and 0 deletions

15
demo/props/gong.gd Normal file
View File

@@ -0,0 +1,15 @@
extends StaticBody2D
signal gong_struck
var enabled: bool = true
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_health_damaged(_amount: float, _knockback: Vector2) -> void:
if not enabled:
return
animation_player.play(&"struck")
gong_struck.emit()
enabled = false