Non-convex chasms
This commit is contained in:
@@ -38,7 +38,8 @@ worldSPic cfig u =
|
||||
)
|
||||
<> foldup btSPic (filtOn _btPos _buttons)
|
||||
<> foldup (mcSPic (w ^. cWorld)) (filtOn _mcPos _machines)
|
||||
<> foldMap' drawChasm (w ^. cWorld . chasms)
|
||||
-- <> foldMap' drawChasm (w ^. cWorld . chasms)
|
||||
<> foldMap' (Prelude.uncurry drawCliff) (w ^. cWorld . cliffs)
|
||||
<> w ^. cWorld . lWorld . tempSPic
|
||||
<> testSPic cfig u
|
||||
where
|
||||
@@ -79,8 +80,8 @@ testPic _ _ = mempty
|
||||
drawBlock :: Block -> SPic
|
||||
drawBlock = noPic . _blDraw
|
||||
|
||||
drawChasm :: [Point2] -> SPic
|
||||
drawChasm = foldMap (Prelude.uncurry drawCliff) . loopPairs
|
||||
--drawChasm :: [Point2] -> SPic
|
||||
--drawChasm = foldMap (Prelude.uncurry drawCliff) . loopPairs
|
||||
|
||||
drawCliff :: Point2 -> Point2 -> SPic
|
||||
drawCliff x y =
|
||||
|
||||
Reference in New Issue
Block a user