diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-02 22:33:35 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-02 22:33:35 +0100 |
commit | 5929ced84a5c1f55781988a1d88044c8866fa9dd (patch) | |
tree | 52ef7b7bb32cc0b721465645b12401145da1c61f /src/Game.hs | |
parent | 7ecc4c9af82ccd27f3eca610103b23a5e47158b3 (diff) | |
download | space-plat-hs-5929ced84a5c1f55781988a1d88044c8866fa9dd.tar.gz space-plat-hs-5929ced84a5c1f55781988a1d88044c8866fa9dd.zip |
Map animations
Diffstat (limited to 'src/Game.hs')
-rw-r--r-- | src/Game.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Game.hs b/src/Game.hs index d0092b6..c5fbdef 100644 --- a/src/Game.hs +++ b/src/Game.hs @@ -194,7 +194,7 @@ gameLoop e = do playLoop :: Env -> IO Env playLoop e = do let renderer = e.renderer - map' = e.map + map' = M.update e.map entities = e.entities hud = e.hud @@ -213,7 +213,7 @@ playLoop e = do SDL.rendererViewport renderer $= Nothing H.render renderer hud state - pure e {state = state, entities = updated} + pure e {state = state, entities = updated, map = map'} gameOverLoop :: Env -> IO Env gameOverLoop e = do |