feat: complete playtest parity improvements

This commit is contained in:
goose
2026-10-08 19:06:19 -04:00
parent cce25a1908
commit eca098b4b9
139 changed files with 3001 additions and 982 deletions
+15
View File
@@ -10,6 +10,21 @@ func before_each() -> void:
add_child_autofree(game)
await get_tree().process_frame
func test_bundled_music_switches_from_exploration_to_combat() -> void:
var audio := game.get_node("AudioLibrary") as AudioLibrary
var exploration_stream := audio.get_ambience_stream()
assert_not_null(exploration_stream)
assert_string_contains(exploration_stream.resource_path, "dungeon_exploration.wav")
var state := game.get_game_state()
var enemy: ActorState = state.enemies[&"goblin"]
enemy.cell = state.player.cell + Vector2i.RIGHT
game.submit_test_action(Vector2i.RIGHT)
assert_eq(audio.current_ambience_context, "combat")
assert_string_contains(audio.get_ambience_stream().resource_path, "dungeon_combat.wav")
assert_true(audio.get_ambience_player().playing)
func test_options_control_audio_buses_and_imported_manifest_playback_without_external_files() -> void:
var audio = game.get_node("AudioLibrary") as AudioLibrary
var manifest := AudioImportManifest.new()