This commit is contained in:
2022-07-19 14:26:10 +01:00
parent 0a7922ec5e
commit 8ee4d2e0f2
6 changed files with 68 additions and 78 deletions
+6 -6
View File
@@ -2,12 +2,12 @@ module Dodge.Particle.Damage where
import Dodge.Data
import Geometry
simpleDam :: DamageType -> Int -> Particle -> Point2 -> [Damage]
simpleDam dt amount bt p = [ Damage dt amount sp p ep NoDamageEffect ]
where
sp = _ptPos bt
bulVel = _ptVel bt
ep = sp +.+ bulVel
--simpleDam :: DamageType -> Int -> Particle -> Point2 -> [Damage]
--simpleDam dt amount bt p = [ Damage dt amount sp p ep NoDamageEffect ]
-- where
-- sp = _ptPos bt
-- bulVel = _ptVel bt
-- ep = sp +.+ bulVel
simpleDam' :: DamageType -> Int -> Bullet -> Point2 -> [Damage]
simpleDam' dt amount bt p = [ Damage dt amount sp p ep NoDamageEffect ]
where