aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Board.elm
blob: 1361cfbfcba9936143a4e472a03e52eba959d5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Model.Board
  ( boardSize
  , boardDiagonal
  ) where

import Model.Vec2 (Vec2)

boardSize : Vec2
boardSize =
  { x = 500
  , y = 500
  }

boardDiagonal : Float
boardDiagonal =
  boardSize.x ^ 2 + boardSize.y ^ 2
    |> sqrt