From 54569c7adcd4c70fa2914f1bcafd26ff4eb373dc Mon Sep 17 00:00:00 2001 From: Tiger Jove Date: Thu, 22 Jan 2026 18:46:28 +0100 Subject: [PATCH] fix: game never set state PLAY --- src/singletons/main/main.gd | 6 +++--- src/tests/input_order_tests.tscn | 35 -------------------------------- 2 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 src/tests/input_order_tests.tscn diff --git a/src/singletons/main/main.gd b/src/singletons/main/main.gd index 71c885f..cfa6736 100644 --- a/src/singletons/main/main.gd +++ b/src/singletons/main/main.gd @@ -36,9 +36,7 @@ var state: AppState = AppState.BOOT: pause_menu.hide() await main_menu.execute() AppState.PLAY: - credits_roll.hide() - main_menu.hide() - pause_menu.hide() + pass AppState.PAUSE: credits_roll.hide() main_menu.hide() @@ -71,6 +69,8 @@ func start_game(save: SaveGame) -> void: print("main.gd: play_game()") var room_path := room_paths.get(save.current_room, youth_room_path) as String + state = AppState.PLAY + while room_path: await _load_room(room_path) room_path = await State.room.play() diff --git a/src/tests/input_order_tests.tscn b/src/tests/input_order_tests.tscn deleted file mode 100644 index 058e696..0000000 --- a/src/tests/input_order_tests.tscn +++ /dev/null @@ -1,35 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://d7sqqr8pkydk"] - -[sub_resource type="GDScript" id="GDScript_m0plu"] -script/source = "extends Node3D - -func _input(event : InputEvent): - prints(name, event) -" - -[node name="InputOrderTests" type="Node"] - -[node name="Item1" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item2" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item3" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item4" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item5" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item6" type="Node3D" parent="."] -process_priority = -10 -script = SubResource("GDScript_m0plu") - -[node name="Item7" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu") - -[node name="Item8" type="Node3D" parent="."] -script = SubResource("GDScript_m0plu")