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/Board.elm | |
parent | 87386e8b148c2536214fdaf6c3140853c751d7b4 (diff) |
Moving boardSize to Game model
Diffstat (limited to 'src/Model/Board.elm')
-rw-r--r-- | src/Model/Board.elm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Model/Board.elm b/src/Model/Board.elm index 1361cfb..05fd036 100644 --- a/src/Model/Board.elm +++ b/src/Model/Board.elm @@ -1,17 +1,17 @@ module Model.Board - ( boardSize + ( initBoardSize , boardDiagonal ) where import Model.Vec2 (Vec2) -boardSize : Vec2 -boardSize = +initBoardSize : Vec2 +initBoardSize = { x = 500 , y = 500 } -boardDiagonal : Float -boardDiagonal = +boardDiagonal : Vec2 -> Float +boardDiagonal boardSize = boardSize.x ^ 2 + boardSize.y ^ 2 |> sqrt |