diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-03-21 21:02:45 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-03-21 21:02:45 +0000 |
commit | 1c8a22d24b14d258a9103f7b83d627359eae0da8 (patch) | |
tree | 92b3d18cf689ddc0bf90028e7139354d82c2da48 /src/Game/State.hs | |
parent | 897bfe0f72ddc80a020a421cbe987b54716e571e (diff) | |
download | space-plat-hs-1c8a22d24b14d258a9103f7b83d627359eae0da8.tar.gz space-plat-hs-1c8a22d24b14d258a9103f7b83d627359eae0da8.zip |
Player transition into the stage
Diffstat (limited to 'src/Game/State.hs')
-rw-r--r-- | src/Game/State.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game/State.hs b/src/Game/State.hs index 4f46c01..083e6d4 100644 --- a/src/Game/State.hs +++ b/src/Game/State.hs @@ -6,7 +6,7 @@ import qualified Game.Map as M maxLives :: Int maxLives = 4 -data ExitState = ExitOff | ExitStarted | ExitDone deriving (Eq) +data ExitState = ExitOff | ExitEntry | ExitStarted | ExitDone deriving (Eq) data State = State { batteries :: Int, @@ -33,7 +33,7 @@ initialState m = exit = False, -- doesn't matter where lastBattery = (0, 0), - levelCompleted = ExitOff, + levelCompleted = ExitEntry, currentLevel = 0 } @@ -47,5 +47,5 @@ levelState s m = exit = False, -- doesn't matter where lastBattery = (0, 0), - levelCompleted = ExitOff + levelCompleted = ExitEntry } |