generated from krampus/template-godot4
Preload level & world from the title screen
This commit is contained in:
parent
ae95dee619
commit
bd13fb991a
@ -23,6 +23,10 @@ func _ready() -> void:
|
|||||||
if FileAccess.file_exists(save_path):
|
if FileAccess.file_exists(save_path):
|
||||||
continue_button.disabled = false
|
continue_button.disabled = false
|
||||||
|
|
||||||
|
# Start preloading world and level in background
|
||||||
|
ResourceLoader.load_threaded_request(world_scene)
|
||||||
|
ResourceLoader.load_threaded_request(level_scene)
|
||||||
|
|
||||||
|
|
||||||
func stop_sounds() -> void:
|
func stop_sounds() -> void:
|
||||||
title_sfx.stop()
|
title_sfx.stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user