More streaming refactoring

This commit is contained in:
2022-06-24 23:37:01 +01:00
parent 0270d423fd
commit 3c2df2542a
10 changed files with 96 additions and 198 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ module Dodge.Prop.Moving
, fallSmallBounceDamage
, fallSmallBounce
) where
import Dodge.Zone
--import Dodge.Zone
import Dodge.Base
import Dodge.Data
--import Dodge.Damage
@@ -58,7 +58,7 @@ fallSmallBounce' w pr
velz = _pjVelZ pr
vel = _pjVel pr
pos = _prPos pr
updateWithVel v = case reflectPointWallsDamp 0.5 pos (pos + v) $ wallsAlongLine pos (pos +v) w of
updateWithVel v = case reflectPointWallsDamp (const True) 0.5 pos (pos + v) w of
Nothing -> prPos +~ v
Just (p,v') -> (prPos .~ p) . (pjVel .~ v')