feat: add floor time pressure and gated stairs

This commit is contained in:
goose
2026-10-03 00:25:24 -04:00
parent 4b9776ce20
commit 4b6521d308
22 changed files with 388 additions and 11 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ class_name GridMapState
extends RefCounted
const TILE_SIZE := Vector2i(32, 32)
enum CellKind { FLOOR, WALL, CLOSED_DOOR, CHEST, STAIRS }
enum CellKind { FLOOR, WALL, CLOSED_DOOR, CHEST, STAIRS, BED }
var size: Vector2i
var _cells: Dictionary[Vector2i, CellKind] = {}
@@ -37,7 +37,7 @@ func is_inside(cell: Vector2i) -> bool:
func is_walkable(cell: Vector2i) -> bool:
var kind := get_cell(cell)
return kind == CellKind.FLOOR or kind == CellKind.STAIRS
return kind == CellKind.FLOOR or kind == CellKind.STAIRS or kind == CellKind.BED
func is_opaque(cell: Vector2i) -> bool:
var kind := get_cell(cell)