Work on placements
This commit is contained in:
@@ -28,7 +28,6 @@ worldSPic cfig u =
|
||||
<> foldup drawPulseBall (filtOn _pbPos _pulseBalls)
|
||||
<> foldup (shiftDraw _blPos _blDir (drawBlock . _blDraw)) (filtOn _blPos _blocks)
|
||||
<> foldup (shiftDraw _fsPos _fsDir (const _fsSPic)) (filtOn _fsPos _foregroundShapes)
|
||||
-- <> foldup (shiftDraw' _cpPos _cpDir _cpSPic) (filtOn _cpPos _corpses)
|
||||
<> foldup (drawCreature (u ^. uvWorld . cWorld . lWorld . items))
|
||||
(filtOn _crPos _creatures)
|
||||
<> foldup (Prelude.uncurry floorItemSPic) (IM.intersectionWith (,) (u^.uvWorld.cWorld.lWorld.items) (filtOn _flItPos _floorItems))
|
||||
@@ -84,12 +83,6 @@ shiftDraw fpos fdir fdraw x =
|
||||
. rotateSP (fdir x)
|
||||
$ fdraw x x
|
||||
|
||||
--shiftDraw' :: (a -> Point2) -> (a -> Float) -> (a -> SPic) -> a -> SPic
|
||||
--shiftDraw' fpos fdir fdraw x =
|
||||
-- uncurryV translateSPxy (fpos x)
|
||||
-- . rotateSP (fdir x)
|
||||
-- $ fdraw x
|
||||
|
||||
cullPoint :: Config -> World -> Point2 -> Bool
|
||||
cullPoint cfig w p
|
||||
| debugOn Close_shape_culling cfig = pointInPoly p (w ^. wCam . camBoundBox)
|
||||
|
||||
Reference in New Issue
Block a user