Load save on game start
This commit is contained in:
parent
e0508b2edc
commit
ae885259ec
|
|
@ -19,6 +19,8 @@ const SCREEN_FADE_DURATION := 0.6
|
||||||
var is_transitioning : bool = false
|
var is_transitioning : bool = false
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
GameData.load_data()
|
||||||
|
|
||||||
update_background()
|
update_background()
|
||||||
setup_version_label()
|
setup_version_label()
|
||||||
play_menu_music()
|
play_menu_music()
|
||||||
|
|
@ -52,7 +54,6 @@ func fade_in_game_infos() -> void:
|
||||||
tween.tween_property(game_infos, "modulate:a", 1.0, 1.0)
|
tween.tween_property(game_infos, "modulate:a", 1.0, 1.0)
|
||||||
|
|
||||||
func _on_start_pressed() -> void:
|
func _on_start_pressed() -> void:
|
||||||
GameData.load_data()
|
|
||||||
if is_transitioning: return
|
if is_transitioning: return
|
||||||
is_transitioning = true
|
is_transitioning = true
|
||||||
play_click_sound()
|
play_click_sound()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue