Modularise shockwaves, stop landing self damage when blinking

This commit is contained in:
jgk
2021-04-04 20:19:45 +02:00
parent b3649597fa
commit dfee9b2f37
8 changed files with 144 additions and 140 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ import Control.Concurrent
import Control.Lens
import Foreign (Word32)
import Control.Monad (when)
import Control.Monad (when,void)
import System.Random
@@ -53,7 +53,7 @@ main = do
(fmap (setWindowSize sizex sizey keyConfig) firstWorld)
( \preData w -> do
startTicks <- SDL.ticks
doDrawing (_renderData preData) w
void $ doDrawing (_renderData preData) w
playSoundQueue (_soundData preData) (_soundQueue w)
newSoundData <- playAndUpdate (_sounds w) (_soundData preData)