feat: add 30x20 demo map and chest interaction

This commit is contained in:
goose
2026-10-01 22:28:23 -04:00
parent b5eaf0ef4f
commit 67efd9dc67
27 changed files with 307 additions and 90 deletions
+4
View File
@@ -28,6 +28,8 @@ func after_each() -> void:
func test_real_game_resolves_combat_with_empty_audio_home() -> void:
var audio = game.get_node("AudioLibrary")
var state := game.get_game_state()
state.enemies[&"goblin"].cell = state.player.cell + Vector2i(2, 0)
game.submit_test_action(Vector2i.RIGHT)
var first_melee := game.submit_test_action(Vector2i.RIGHT)
var lethal_melee := game.submit_test_action(Vector2i.RIGHT)
@@ -58,6 +60,8 @@ func test_external_nominal_and_invalid_wavs_do_not_affect_combat() -> void:
invalid_file.store_string("truncated WAV")
invalid_file.close()
var state := game.get_game_state()
state.enemies[&"goblin"].cell = state.player.cell + Vector2i(2, 0)
game.submit_test_action(Vector2i.RIGHT)
var first_melee := game.submit_test_action(Vector2i.RIGHT)
var lethal_melee := game.submit_test_action(Vector2i.RIGHT)