Readd some debug drawing (debugDraw itself still commented out)

This commit is contained in:
2022-07-02 11:59:05 +01:00
parent 66fe1abc6f
commit 8dc7682327
5 changed files with 52 additions and 25 deletions
+6
View File
@@ -5,6 +5,7 @@ module Dodge.Layout
import Data.Tile
import Dodge.Data
import Dodge.Path
import Dodge.Zone.Update
import Dodge.ShiftPoint
import Dodge.Placement.PlaceSpot
--import Dodge.LevelGen.Data
@@ -21,6 +22,7 @@ import qualified IntMapHelp as IM
import Tile
import RandomHelp
import Data.Graph.Inductive (labNodes,labEdges)
import Data.List (nubBy)
import Data.Traversable
import Control.Lens
@@ -44,6 +46,10 @@ generateLevelFromRoomList gr' w = initWallZoning
, _pathGraph = path
, _pathGraphP = pairPath
}
& pnZoning %~ (\zn -> foldl' (flip $ updateZoning (:)) (zn & znObjects .~ mempty)
(labNodes path))
-- & peZoning %~ (\zn -> foldl' (flip $ updateZoning (:)) (zn & znObjects .~ mempty)
-- (labEdges (_pgGraph path)))
where
path = pairsToGraph pairPath
pairPath = foldMap _rmPath rs