General cleanup, remove Drawing type synonym
This commit is contained in:
@@ -55,14 +55,14 @@ testPic w = [blank]
|
||||
-- $ uncurry translate (mouseWorldPos w)
|
||||
|
||||
|
||||
crDraw :: Creature -> Drawing
|
||||
crDraw :: Creature -> Picture
|
||||
crDraw c = uncurry translate (_crPos c) $ rotate (_crDir c) (_crPict c c)
|
||||
ppDraw :: PressPlate -> Drawing
|
||||
ppDraw :: PressPlate -> Picture
|
||||
ppDraw c = uncurry translate (_ppPos c) $ rotate (_ppRot c) (_ppPict c)
|
||||
btDraw :: Button -> Drawing
|
||||
btDraw :: Button -> Picture
|
||||
btDraw c = uncurry translate (_btPos c) $ rotate (_btRot c) (_btPict c)
|
||||
|
||||
clDraw :: Cloud -> Drawing
|
||||
clDraw :: Cloud -> Picture
|
||||
clDraw c = uncurry translate (_clPos c) $ (_clPict c c)
|
||||
|
||||
|
||||
@@ -204,9 +204,9 @@ extendConeToScreenEdge w c (x,y) = orderPolygon $ wallScreenIntersect ++ [x,y] +
|
||||
|
||||
rectangleSolid x y = polygon [(x,y),(x,-y),(-x,-y),(-x,y)]
|
||||
|
||||
drawItem :: FloorItem -> Drawing
|
||||
drawItem :: FloorItem -> Picture
|
||||
drawItem flIt = uncurry translate (_flItPos flIt)
|
||||
$ rotateDrawing (radToDeg $ _flItRot flIt) (_itFloorPict (_flIt flIt))
|
||||
$ rotate (_flItRot flIt) (_itFloorPict (_flIt flIt))
|
||||
|
||||
|
||||
ffToDraw :: World -> [ForceField]
|
||||
|
||||
Reference in New Issue
Block a user