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
+3 -3
View File
@@ -11,7 +11,7 @@ func before_each() -> void:
func test_context_prompt_describes_an_adjacent_closed_door_without_mutating_the_map() -> void:
var hud := game.get_node("HUD") as GameHud
var state := game.get_game_state()
var door_cell := Vector2i(2, 1)
var door_cell := Vector2i(4, 11)
assert_eq(hud.get_context_prompt(), "Espace — Ouvrir la porte")
assert_eq(state.map.get_cell(door_cell), GridMapState.CellKind.CLOSED_DOOR)
@@ -20,8 +20,8 @@ func test_context_prompt_describes_stairs_under_player_and_nothing_else() -> voi
var hud := game.get_node("HUD") as GameHud
var state := game.get_game_state()
state.map.set_cell(Vector2i(2, 1), GridMapState.CellKind.FLOOR)
state.player.cell = Vector2i(9, 7)
state.map.set_cell(Vector2i(4, 11), GridMapState.CellKind.FLOOR)
state.player.cell = Vector2i(18, 4)
hud.refresh(state)
assert_eq(hud.get_context_prompt(), "Espace — Descendre l’escalier")