diff --git a/entities.js b/entities.js index 3947369..ef5af47 100644 --- a/entities.js +++ b/entities.js @@ -16,7 +16,7 @@ function Block(lane, color, distFromHex, settled) { this.distFromHex = distFromHex; } else { - this.distFromHex = 470; + this.distFromHex = 300; } this.draw = function() { this.width = 2 * this.distFromHex / Math.sqrt(3); @@ -110,7 +110,7 @@ var Clock = function(sideLength) { block.angle = block.angle - steps * 60; }); }); - + this.angle = this.angle + steps * 60; }; diff --git a/main.js b/main.js index 8cfc33a..7d9234a 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,7 @@ function render() { if(now - lastGen > nextGen) { blocks.push(new Block(randInt(0, 6), colors[randInt(0, colors.length)])); lastGen = Date.now(); - nextGen = randInt(100, 200); + nextGen = randInt(500, 1500); } ctx.clearRect(0, 0, canvas.width, canvas.height); drawPolygon(canvas.width / 2, canvas.height / 2, 6, canvas.width / 2, 30, hexagonBackgroundColor);