Replace particle pictures with draw functions
This commit is contained in:
+4
-4
@@ -429,10 +429,10 @@ data ItemIdentity
|
||||
|
||||
data Particle' =
|
||||
Particle'
|
||||
{ _ptPict' :: Picture
|
||||
{ _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
}
|
||||
| Bul' { _ptPict' :: Picture
|
||||
| Bul' { _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
, _btVel' :: Point2
|
||||
, _btColor' :: Color
|
||||
@@ -442,7 +442,7 @@ data Particle' =
|
||||
, _btTimer' :: Int
|
||||
, _btHitEffect' :: HitEffect
|
||||
}
|
||||
| Pt' { _ptPict' :: Picture
|
||||
| Pt' { _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
, _btVel' :: Point2
|
||||
, _btColor' :: Color
|
||||
@@ -453,7 +453,7 @@ data Particle' =
|
||||
, _btHitEffect' :: HitEffect
|
||||
}
|
||||
| Shockwave'
|
||||
{ _ptPict' :: Picture
|
||||
{ _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
, _btColor' :: Color
|
||||
, _btPos' :: Point2
|
||||
|
||||
Reference in New Issue
Block a user