Cleanup
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ drawCircleAtFor p t = drawCircleAtForCol p t white
|
||||
drawCircleAtForCol :: Point2 -> Int -> Color -> World -> World
|
||||
drawCircleAtForCol p t col w = w & props %~
|
||||
IM.insert k Projectile
|
||||
{ _pjPos = p
|
||||
{ _prPos = p
|
||||
, _pjStartPos = p
|
||||
, _pjVel = V2 0 0
|
||||
, _prDraw = \_ -> (,) mempty $ setDepth 20 $ uncurryV translate p $ color col $ circleSolid 20
|
||||
@@ -30,7 +30,7 @@ drawCircleAtForCol p t col w = w & props %~
|
||||
drawLineForCol :: [Point2] -> Int -> Color -> World -> World
|
||||
drawLineForCol ps t col w = w & props %~
|
||||
IM.insert k Projectile
|
||||
{ _pjPos = head ps
|
||||
{ _prPos = head ps
|
||||
, _pjStartPos = head ps
|
||||
, _pjVel = V2 0 0
|
||||
, _prDraw = \_ -> (,) mempty $ setDepth 20 $ color col $ thickLine 5 ps
|
||||
|
||||
Reference in New Issue
Block a user