]> git.eli173.com Git - pong_br/commitdiff
okay minor fix and a better sense, but still
authorElijah Cohen <eli@eli173.com>
Tue, 30 Apr 2019 22:40:31 +0000 (17:40 -0500)
committerElijah Cohen <eli@eli173.com>
Tue, 30 Apr 2019 22:40:31 +0000 (17:40 -0500)
server/field.js
web/field.js

index 1b4d997f22dcaec6aef9a63ae3001e8fefceaf27..c8f0baf0af65e84e67257d29f9d64845bad1bc54 100644 (file)
@@ -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));
index 2744f84e461f772af6b1ba49175194ac9f99b88d..41353107f7230d752657c20586bc47a47c55df25 100644 (file)
@@ -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));