mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Merge pull request #268 from KirbyKid256/pulls/fixed-title-bgm-looping
Fixed Title and Boo Race BGM Looping
This commit is contained in:
@@ -304,7 +304,9 @@ func load_image_from_path(path := "") -> ImageTexture:
|
||||
|
||||
func load_audio_from_path(path := "") -> AudioStream:
|
||||
var stream = null
|
||||
if path.contains("res://"):
|
||||
if path.contains(".bgm"):
|
||||
stream = AudioManager.generate_interactive_stream(JSON.parse_string(FileAccess.get_file_as_string(path)))
|
||||
elif path.contains("res://"):
|
||||
return load(path)
|
||||
if path.contains(".wav"):
|
||||
stream = AudioStreamWAV.load_from_file(path)
|
||||
|
@@ -56,6 +56,7 @@ func _ready() -> void:
|
||||
Level.can_set_time = true
|
||||
setup_visuals()
|
||||
%LevelLabels.get_child(BooRaceHandler.current_level_id).grab_focus()
|
||||
$Music.play()
|
||||
|
||||
func _exit_tree() -> void:
|
||||
Global.get_node("GameHUD").show()
|
||||
|
Reference in New Issue
Block a user