Block screen during long loading

This commit is contained in:
2022-12-29 00:44:51 +00:00
parent d1f80f1f7f
commit be41d51819
13 changed files with 90 additions and 54 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
module Dodge.Flame (
aFlameParticle,
makeFlame,
moveFlame,
updateFlame,
) where
import Dodge.Data.World
@@ -68,8 +68,8 @@ doDamagesFL fdm (p, thhit) bt = case thhit of
dams = fdm bt p
{- TODO: add generalised area damage particles/hiteffects. -}
moveFlame :: World -> Flame -> (World, Maybe Flame)
moveFlame w pt
updateFlame :: World -> Flame -> (World, Maybe Flame)
updateFlame w pt
| time <= 0 = (makeFlamerSmokeAt (addZ 20 ep) w, Nothing)
| otherwise = case List.safeHead $ thingsHit sp ep w of
Just (_, Left _) -> (doSound $ dodamage w, mvPt' 0.7)