Ready to work on actual logic for battles.
This commit is contained in:
@@ -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.")
|
||||
|
||||
@@ -31,4 +31,3 @@ visible = false
|
||||
[node name="CurrentScene" type="Node" parent="."]
|
||||
|
||||
[node name="RootUI" parent="." instance=ExtResource("6_ajii0")]
|
||||
visible = false
|
||||
|
||||
Reference in New Issue
Block a user