First godot-ci commit

This commit is contained in:
2025-05-13 13:29:35 +02:00
commit d3e99bc70e
47 changed files with 3158 additions and 0 deletions

22
scripts/Base.gd Executable file
View File

@@ -0,0 +1,22 @@
extends "res://scripts/ColoredEntity.gd"
const FULL_HEALTH: int = 3
var health: int = self.FULL_HEALTH
func _ready():
self.highlight()
func hit() -> void:
if health > 1:
self.health -= 1
else:
self.dead()
func dead() -> void:
pass
# --- Signals ---
func _on_Body_body_entered(body: Node):
body.queue_free()
self.hit()