feat: add 30x20 demo map and chest interaction
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user