Cleanup
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
module Dodge.Particle.Update where
|
||||
import Dodge.Data
|
||||
import LensHelp
|
||||
|
||||
mvPt' :: Particle -> Maybe Particle
|
||||
mvPt' pt = Just $ pt
|
||||
& ptTimer -~ 1
|
||||
|
||||
killParticleUpdate :: World -> Particle -> (World,Maybe Particle)
|
||||
killParticleUpdate w pt
|
||||
| _ptTimer pt <= 0 = (w,Nothing)
|
||||
| otherwise = (w
|
||||
, Just $ pt & ptTimer -~ 1
|
||||
)
|
||||
Reference in New Issue
Block a user