Commit before making all walls zoned
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE TupleSections #-}
|
||||
module Dodge.Layout
|
||||
where
|
||||
import Dodge.Data
|
||||
@@ -55,7 +56,7 @@ generateLevelFromRoomList gr w
|
||||
where
|
||||
path = pairsToGraph dist pairPath
|
||||
pairPath = concatMap _rmPath rs
|
||||
plmnts = concat $ map (\r -> map ((,) (_rmShift r)) (_rmPS r)) rs
|
||||
plmnts = concatMap (\r -> map (_rmShift r ,) (_rmPS r)) rs
|
||||
rs = zipWith addTile zs rs'
|
||||
zs = map fromIntegral $ randomRs (0,63::Int) $ _randGen w
|
||||
rs' = evalState gr $ _randGen w
|
||||
|
||||
Reference in New Issue
Block a user