diff options
author | Joris Guyonvarch | 2015-03-07 12:20:27 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-07 12:20:27 +0100 |
commit | 336816d2e8ab4afff1562123dfde61bf3a68e61c (patch) | |
tree | 698d8b8c70ba1ee1ddb895dfcd3b2322f6860794 /src/Game.elm | |
parent | 8f8df67f3795b02c6918d7df832580e9de7d0802 (diff) |
Save player config when relaunching game
Diffstat (limited to 'src/Game.elm')
-rw-r--r-- | src/Game.elm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game.elm b/src/Game.elm index 4d68219..e294942 100644 --- a/src/Game.elm +++ b/src/Game.elm @@ -18,15 +18,15 @@ type alias Game = , seed : Seed } -initialGame : Seed -> Vec2 -> Int -> Game -initialGame seed playerPos bestScore = +initialGame : Seed -> Vec2 -> Config -> Int -> Game +initialGame seed playerPos config bestScore = let initPlayer = { pos = playerPos , speed = { x = 0 , y = 0 } - , config = White + , config = config } in { time = 0 |