Ready to work on actual logic for battles.

This commit is contained in:
2026-01-15 22:17:50 -06:00
parent 274cbef780
commit 346e3f0607
9 changed files with 75 additions and 22 deletions

View File

@@ -7,23 +7,8 @@ class_name RootScene extends Node3D
@export var currentScene:Node = null
func _enter_tree() -> void:
# SCENE.sceneChanged.connect(onSceneChange)
# SCENE.setScene(SceneSingleton.SceneType.INITIAL)
SCENE.setScene(SceneSingleton.SceneType.BATTLE)
# Wait a frame
await get_tree().process_frame
var testEnemy = BattleFighter.new({
'controller': BattleFighter.FighterController.AI
})
BATTLE.startBattle({
'fighters': {
# Test fighters
BATTLE.BattlePosition.RIGHT_MIDDLE_FRONT: PartySingleton.PARTY_JOHN,
BATTLE.BattlePosition.LEFT_MIDDLE_FRONT: testEnemy
}
})
SCENE.sceneChanged.connect(onSceneChange)
SCENE.setScene(SceneSingleton.SceneType.INITIAL)
func _exit_tree() -> void:
push_error("RootScene should not be removed from the scene tree. This is a bug.")