Added water splash

This commit is contained in:
2026-06-17 21:49:07 +03:00
parent 8812915d3e
commit 3bb2fb9d8a
16 changed files with 106 additions and 16 deletions
+10 -1
View File
@@ -2,10 +2,19 @@ class_name KillingArea
extends Area2D
enum Type {
None,
Water,
}
@export var type := Type.None
func _on_body_entered(body: Node2D) -> void:
if not body is CharacterBody2D: return
if body.has_method("kill"):
body.kill()
body.kill(type)
else:
body.queue_free()