From: Elijah Cohen Date: Tue, 30 Apr 2019 22:40:31 +0000 (-0500) Subject: okay minor fix and a better sense, but still X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=f262d3be178e695b1a24d97533841ca3354013be;p=pong_br okay minor fix and a better sense, but still --- diff --git a/server/field.js b/server/field.js index 1b4d997..c8f0baf 100644 --- a/server/field.js +++ b/server/field.js @@ -36,9 +36,9 @@ var genAllEndpoints = function(n, dead) { } else { // here it has to be alive, skips over dead and no time var point1 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); - theta += dtheta; + theta += dtheta/2; var point2 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); - theta += dtheta; + theta += dtheta/2; var point3 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); endpoints.push(new Endpoints(point1, point2, i)); endpoints.push(new Endpoints(point2, point3, -1)); diff --git a/web/field.js b/web/field.js index 2744f84..4135310 100644 --- a/web/field.js +++ b/web/field.js @@ -30,9 +30,9 @@ var genAllEndpoints = function(n, dead) { } else { // here it has to be alive, skips over dead and no time var point1 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); - theta += dtheta; + theta += dtheta/2; var point2 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); - theta += dtheta; + theta += dtheta/2; var point3 = new Coord(r*Math.cos(theta),r*Math.sin(theta)); endpoints.push(new Endpoints(point1, point2, i)); endpoints.push(new Endpoints(point2, point3, -1));