feat: guest stories, accessibility and cozy events
v0.9.0-alpha local build. Adds per-guest story vignettes, a scrollable Guest Book story section, live text scaling, Android haptics, a difficulty picker with descriptions, six repeating cosmetic hotel events, and isolated free play using verified symmetry variants. Save format v7 with automatic migration. QA is 9/9 including the free-play uniqueness suite.
This commit is contained in:
1 parent
e0fd33c25e
commit
9e2776f7c4
27 files changed
+1559
-99
No files matched your search
@@ -49,6 +49,7 @@ func _ready() -> void:
|
||||
_setup_music()
|
||||
_refresh_background()
|
||||
SaveGame.settings_changed.connect(_refresh_background)
|
||||
SaveGame.settings_changed.connect(_apply_ui_scale)
|
||||
SaveGame.progress_changed.connect(_refresh_background)
|
||||
|
||||
home = HomeScene.instantiate()
|
||||
@@ -58,6 +59,7 @@ func _ready() -> void:
|
||||
home.settings_pressed.connect(func() -> void: open_settings("home"))
|
||||
home.rules_pressed.connect(func() -> void: show_screen("rules"))
|
||||
home.daily_pressed.connect(_on_daily)
|
||||
home.freeplay_pressed.connect(_on_freeplay)
|
||||
home.profile_pressed.connect(func() -> void: show_screen("profile"))
|
||||
home.streak_pressed.connect(func() -> void: show_screen("streak"))
|
||||
|
||||
@@ -120,6 +122,10 @@ func _refresh_background() -> void:
|
||||
_refresh_background_texture(background_rect)
|
||||
|
||||
|
||||
func _apply_ui_scale() -> void:
|
||||
UI.apply_scale(self)
|
||||
|
||||
|
||||
func _setup_music() -> void:
|
||||
music_player = AudioStreamPlayer.new()
|
||||
var stream = load("res://assets/audio/lounge_main.mp3")
|
||||
@@ -229,6 +235,15 @@ func _on_daily() -> void:
|
||||
game.start_daily(index, key)
|
||||
|
||||
|
||||
func _on_freeplay() -> void:
|
||||
show_screen("game")
|
||||
var seed := int(Time.get_unix_time_from_system()) % 1000000
|
||||
var saved := SaveGame.load_board("free")
|
||||
if not saved.is_empty() and bool(saved.get("free_mode", false)) and game.restore(saved):
|
||||
return
|
||||
game.start_free(seed)
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
if music_player != null:
|
||||
music_player.stop()
|
||||
|
||||
Reference in new issue
Block a user