fix: lvl 2 progression

This commit is contained in:
2025-06-29 13:34:11 +02:00
parent 00ef11d3fb
commit 6440cb26a9
5 changed files with 232 additions and 30 deletions

View File

@ -7,13 +7,14 @@ extends Control
@export var credits_packed_scene : PackedScene
@onready var background_music_player: AudioStreamPlayer = $BackgroundMusicPlayer
@onready var audio_stream_player: AudioStreamPlayer = $AudioStreamPlayer
var options_scene
var credits_scene
var sub_menu
func load_game_scene() -> void:
background_music_player.stop()
audio_stream_player.stop()
SceneLoader.load_scene(game_scene_path)
func new_game() -> void:
@ -76,6 +77,7 @@ func _ready() -> void:
_add_or_hide_options()
_add_or_hide_credits()
_hide_new_game_if_unset()
audio_stream_player.play()
func _on_new_game_button_pressed() -> void:
new_game()