Example damage label
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user