diff options
author | Joris | 2015-11-15 19:20:42 +0100 |
---|---|---|
committer | Joris | 2015-11-15 19:20:42 +0100 |
commit | 4710e5ac30c44ca8b48a0b2b60ea74b1573b084b (patch) | |
tree | db2c1700de3352e2ec73b5f1e41e7d0452489291 /src/Model/Point.elm | |
parent | 1beb59f73bc18b2477cf1eb918ff75b8d6282c5a (diff) |
Add levels which only change the board color every 20 points
Diffstat (limited to 'src/Model/Point.elm')
-rw-r--r-- | src/Model/Point.elm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Model/Point.elm b/src/Model/Point.elm index a465e40..c0daeaf 100644 --- a/src/Model/Point.elm +++ b/src/Model/Point.elm @@ -4,6 +4,7 @@ module Model.Point , pointSize , pointSpeed , pointSpawnDist + , pointAwayDist ) where import Model.Vec2 exposing (..) @@ -28,3 +29,6 @@ pointSpeed dt = dt / 20 pointSpawnDist : Vec2 -> Float pointSpawnDist boardSize = (boardDiagonal boardSize) * 2.5 / 5 + pointSize + +pointAwayDist : Vec2 -> Float +pointAwayDist boardSize = (boardDiagonal boardSize) * 3 / 5 + pointSize |