LD56 is over. This is the game.

This commit is contained in:
Douwe Ravers
2024-10-07 02:28:14 +02:00
parent 4c0c57d5ba
commit af7a46cd23
183 changed files with 20357 additions and 442 deletions

View File

@@ -0,0 +1,18 @@
extends Node3D
func _process(delta: float) -> void:
var health:int
var max_health:int
if get_parent() is Ant:
var ant := get_parent() as Ant
health = ant.health
max_health = ant.max_health
elif get_parent() is Building:
var building := get_parent() as Building
health = building.health
max_health = building.max_health
var bar := $Sprite3D/SubViewport/HSlider as HSlider
bar.max_value = max_health
bar.value = health