Pass projectile object to draw function
This commit is contained in:
+2
-2
@@ -384,7 +384,7 @@ data Projectile
|
||||
{ _pjPos :: Point2
|
||||
, _pjStartPos :: Point2
|
||||
, _pjVel :: Point2
|
||||
, _pjPict :: Picture
|
||||
, _pjDraw :: Projectile -> Picture
|
||||
, _pjID :: Int
|
||||
, _pjUpdate :: World -> World
|
||||
}
|
||||
@@ -392,7 +392,7 @@ data Projectile
|
||||
{ _pjPos :: Point2
|
||||
, _pjStartPos :: Point2
|
||||
, _pjVel :: Point2
|
||||
, _pjPict :: Picture
|
||||
, _pjDraw :: Projectile -> Picture
|
||||
, _pjID :: Int
|
||||
, _pjUpdate :: World -> World
|
||||
, _pjPayload :: Point2-> World -> World
|
||||
|
||||
Reference in New Issue
Block a user