Implement (partially) updating pathing grid when opening doors

This commit is contained in:
2022-07-02 21:39:33 +01:00
parent 8a612be5fe
commit 46bc135e69
11 changed files with 48 additions and 35 deletions
-1
View File
@@ -15,7 +15,6 @@ defaultBlock = Block
, _blDraw = const mempty
, _blDeath = makeBlockDebris
, _blObstructs = []
, _blPaths = []
}
defaultDirtBlock :: Block
defaultDirtBlock = defaultBlock & blHP .~ 50
+2
View File
@@ -37,5 +37,7 @@ defaultDoor = Door
, _drPushedBy = PushesItself
, _drPushes = Nothing
, _drMounts = mempty
, _drObstructs = mempty
, _drObstacleType = DoorObstacle
}
-1
View File
@@ -61,7 +61,6 @@ defaultWorld = World
, _randGen = mkStdGen 2
, _mousePos = V2 0 0
, _testString = const . const []
, _debugPicture = mempty
, _yourID = 0
, _worldEvents = id
, _delayedEvents = []