fix: game never set state PLAY

This commit is contained in:
tiger tiger tiger 2026-01-22 18:46:28 +01:00
parent b57aa76e23
commit 54569c7adc
2 changed files with 3 additions and 38 deletions

View File

@ -36,9 +36,7 @@ var state: AppState = AppState.BOOT:
pause_menu.hide() pause_menu.hide()
await main_menu.execute() await main_menu.execute()
AppState.PLAY: AppState.PLAY:
credits_roll.hide() pass
main_menu.hide()
pause_menu.hide()
AppState.PAUSE: AppState.PAUSE:
credits_roll.hide() credits_roll.hide()
main_menu.hide() main_menu.hide()
@ -71,6 +69,8 @@ func start_game(save: SaveGame) -> void:
print("main.gd: play_game()") print("main.gd: play_game()")
var room_path := room_paths.get(save.current_room, youth_room_path) as String var room_path := room_paths.get(save.current_room, youth_room_path) as String
state = AppState.PLAY
while room_path: while room_path:
await _load_room(room_path) await _load_room(room_path)
room_path = await State.room.play() room_path = await State.room.play()

View File

@ -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")