aboutsummaryrefslogtreecommitdiff
path: root/src/Update
diff options
context:
space:
mode:
authorJoris2015-11-15 19:20:42 +0100
committerJoris2015-11-15 19:20:42 +0100
commit4710e5ac30c44ca8b48a0b2b60ea74b1573b084b (patch)
treedb2c1700de3352e2ec73b5f1e41e7d0452489291 /src/Update
parent1beb59f73bc18b2477cf1eb918ff75b8d6282c5a (diff)
downloadcatchvoid-4710e5ac30c44ca8b48a0b2b60ea74b1573b084b.tar.gz
catchvoid-4710e5ac30c44ca8b48a0b2b60ea74b1573b084b.tar.bz2
catchvoid-4710e5ac30c44ca8b48a0b2b60ea74b1573b084b.zip
Add levels which only change the board color every 20 points
Diffstat (limited to 'src/Update')
-rw-r--r--src/Update/CloudUpdate.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Update/CloudUpdate.elm b/src/Update/CloudUpdate.elm
index 6f0005a..cd4ff52 100644
--- a/src/Update/CloudUpdate.elm
+++ b/src/Update/CloudUpdate.elm
@@ -51,7 +51,7 @@ cloudUpdate time boardSize seed player {points, spawn, lastSpawn} =
presentPoints : Float -> Vec2 -> List Point -> List Point
presentPoints time boardSize points =
- let isPresent point = (distance (pointMove point time) originVec) < (pointSpawnDist boardSize)
+ let isPresent point = (distance (pointMove point time) originVec) < (pointAwayDist boardSize)
in List.filter isPresent points
getNewPoint : Float -> Vec2 -> Seed -> (Point, Seed)