aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Board.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Board.elm')
-rw-r--r--src/Model/Board.elm17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Model/Board.elm b/src/Model/Board.elm
new file mode 100644
index 0000000..1361cfb
--- /dev/null
+++ b/src/Model/Board.elm
@@ -0,0 +1,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