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,5 +1,5 @@
module Dodge.Spark (
moveSpark,
updateSpark,
colSpark,
colSparkRandDir,
createBarrelSpark,
@@ -16,8 +16,8 @@ import Geometry
import LensHelp
import System.Random
moveSpark :: World -> Spark -> (World, Maybe Spark)
moveSpark w sk
updateSpark :: World -> Spark -> (World, Maybe Spark)
updateSpark w sk
| magV (_skVel sk) < 1 = (w, Nothing)
| otherwise = case thingHit sp ep w of
Nothing -> (w, Just $ sk & skPos .~ ep & skVel .*.*~ 0.9 & skOldPos .~ sp)