Flash refactor
This commit is contained in:
+11
-2
@@ -427,11 +427,20 @@ data ItemIdentity
|
||||
| PoisonSprayer
|
||||
deriving (Eq,Show,Ord,Enum)
|
||||
|
||||
data Particle' =
|
||||
Particle'
|
||||
data Particle'
|
||||
= Particle'
|
||||
{ _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
}
|
||||
| GlareLine
|
||||
{ _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
, _glareTimer :: Int
|
||||
, _glareLength :: Float
|
||||
, _glareWidth :: Float
|
||||
, _glareColor :: Color
|
||||
, _glareLine :: (Point2,Point2)
|
||||
}
|
||||
| Bul' { _ptDraw :: Particle' -> Picture
|
||||
, _ptUpdate' :: World -> Particle' -> (World, Maybe Particle')
|
||||
, _btVel' :: Point2
|
||||
|
||||
Reference in New Issue
Block a user