aboutsummaryrefslogtreecommitdiff
path: root/src/Game.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-02 22:33:35 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-02 22:33:35 +0100
commit5929ced84a5c1f55781988a1d88044c8866fa9dd (patch)
tree52ef7b7bb32cc0b721465645b12401145da1c61f /src/Game.hs
parent7ecc4c9af82ccd27f3eca610103b23a5e47158b3 (diff)
downloadspace-plat-hs-5929ced84a5c1f55781988a1d88044c8866fa9dd.tar.gz
space-plat-hs-5929ced84a5c1f55781988a1d88044c8866fa9dd.zip
Map animations
Diffstat (limited to 'src/Game.hs')
-rw-r--r--src/Game.hs4
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