Refactor doors

This commit is contained in:
2021-09-28 01:48:03 +01:00
parent 743c1c878d
commit 1990558985
13 changed files with 105 additions and 51 deletions
+2
View File
@@ -12,6 +12,7 @@ defaultWall = Wall
, _wlColor = greyN 0.6
, _wlSeen = False
, _wlIsSeeThrough = False
, _wlPathable = False
}
{- Indestructible see-through wall. -}
defaultCrystalWall :: Wall
@@ -21,6 +22,7 @@ defaultCrystalWall = Wall
, _wlColor = withAlpha 0.5 aquamarine
, _wlSeen = False
, _wlIsSeeThrough = True
, _wlPathable = False
}
{- Door that opens on approach.
Pathable. -}
+1
View File
@@ -36,6 +36,7 @@ defaultWorld = World
, _props = IM.empty
, _particles = []
, _walls = IM.empty
, _doors = IM.empty
, _wallsZone = Zone IM.empty
, _forceFields = IM.empty
, _floorItems = IM.empty