Example damage label

This commit is contained in:
2026-01-11 20:08:44 -06:00
parent 561ab5a983
commit 7defac68c4
11 changed files with 109 additions and 25 deletions

View File

@@ -55,5 +55,11 @@ func startBattle(params) -> void:
if !battleCutscene.running:
battleCutscene.start()
# Wait 3 seconds then simulate damage for testing
var fighter = fighterMap[BattlePosition.RIGHT_TOP_FRONT]
while true:
await get_tree().create_timer(0.3).timeout
fighter.damage(10, false)
func getFighterAtPosition(battlePos:BattlePosition) -> BattleFighter:
return fighterMap.get(battlePos, null)