diff options
author | Joris Guyonvarch | 2015-03-15 09:40:58 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-15 09:40:58 +0100 |
commit | ce6775641639943a2aee00fa9c2d684aa434bc21 (patch) | |
tree | e5c1b37525cf83f588d82fbf8977ae2839b6e41f /src/Model/Game.elm | |
parent | 87386e8b148c2536214fdaf6c3140853c751d7b4 (diff) |
Moving boardSize to Game model
Diffstat (limited to 'src/Model/Game.elm')
-rw-r--r-- | src/Model/Game.elm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Model/Game.elm b/src/Model/Game.elm index 6a9020f..9133ba0 100644 --- a/src/Model/Game.elm +++ b/src/Model/Game.elm @@ -11,9 +11,11 @@ import Model.Cloud (..) import Model.Vec2 (Vec2) import Model.Config (..) import Model.Round (Round) +import Model.Board (initBoardSize) type alias Game = { time : Float + , boardSize : Vec2 , keysDown : List KeyCode , currentScore : Int , player : Player @@ -25,6 +27,7 @@ type alias Game = initialGame : Seed -> Game initialGame seed = { time = 0 + , boardSize = initBoardSize , keysDown = [] , currentScore = 0 , player = initPlayer |