Add simple high pipes
This commit is contained in:
@@ -18,12 +18,13 @@ startRoom = do
|
||||
w <- state $ randomR (100,400)
|
||||
h <- state $ randomR (200,400)
|
||||
let fground = sPS (0,0) 0 $ PutForeground $ pictures
|
||||
[ highDiagonalMesh (0,0) (0,h) w 25
|
||||
--, setDepth (-0.1) $ color orange $ pictures
|
||||
-- [ polygon $ rectNSEW 50 40 140 (-20)
|
||||
-- , translate 60 45 $ scale 0.5 1 $ thickArc 0 pi 75 10
|
||||
-- , translate (-20) 300 $ polygon $ rectNSEW 10 0 40 0
|
||||
-- ]
|
||||
, highDiagonalMesh (w,0) (0,0) h 25
|
||||
--[ highDiagonalMesh (0,0) (0,h) w 50
|
||||
----, setDepth (-0.1) $ color orange $ pictures
|
||||
---- [ polygon $ rectNSEW 50 40 140 (-20)
|
||||
---- , translate 60 45 $ scale 0.5 1 $ thickArc 0 pi 75 10
|
||||
---- , translate (-20) 300 $ polygon $ rectNSEW 10 0 40 0
|
||||
---- ]
|
||||
--, highDiagonalMesh (w,0) (0,0) h 50
|
||||
[ highPipe (0,h/2) (w, h/2)
|
||||
]
|
||||
pure . Right <$> randomiseOutLinks (shiftRoomBy ((-20,-20),0) $ roomRectAutoLinks w h & rmPS %~ (fground :))
|
||||
|
||||
Reference in New Issue
Block a user