2024-05-25 23:51:28 -04:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
@onready var data: Data = $/root/Root/Data
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
|
|
|
data.player.connect("died", combatantDied)
|
|
|
|
data.opponent.connect("died", combatantDied)
|
2024-05-30 15:56:16 -04:00
|
|
|
await data.transitioner.showScreen()
|
|
|
|
data.playing = true
|
2024-05-25 23:51:28 -04:00
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
|
|
|
func combatantDied(victory: bool):
|
|
|
|
data.playing = false
|