feat(nav): add GameState.set_current_room and AudioManager.DEFAULT_MUSIC_VOLUME
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
extends Node
|
||||
|
||||
const CROSSFADE_DURATION: float = 0.8
|
||||
const DEFAULT_MUSIC_VOLUME: float = 0.6
|
||||
|
||||
const _MUSIC_MAP: Dictionary = {
|
||||
0: "res://assets/audio/music/floor_0.ogg",
|
||||
|
||||
@@ -73,6 +73,11 @@ func clear_chest_state(chest_id: String) -> void:
|
||||
state_changed.emit()
|
||||
|
||||
|
||||
func set_current_room(room: String) -> void:
|
||||
current_room = room
|
||||
state_changed.emit()
|
||||
|
||||
|
||||
func get_save_data() -> Dictionary:
|
||||
var positions: Dictionary = {}
|
||||
for key: String in _character_positions:
|
||||
|
||||
Reference in New Issue
Block a user