From 5c4f8661dbbc54f607bdac4676a74995463cdece Mon Sep 17 00:00:00 2001 From: Fbenas Date: Mon, 21 Sep 2020 01:52:22 +0100 Subject: Tweak size and randomness --- resources/js/app.js | 2 +- resources/js/component.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'resources/js') diff --git a/resources/js/app.js b/resources/js/app.js index 797dc0f..b107a71 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,4 +1,4 @@ -let scene = new Scene(10, 100); +let scene = new Scene(5, 100); function stop() { scene.stop(); diff --git a/resources/js/component.js b/resources/js/component.js index ec81489..a6098e0 100644 --- a/resources/js/component.js +++ b/resources/js/component.js @@ -1,9 +1,9 @@ class Component { constructor(radius, color, x, y, direction) { - this.rayLength = 100; - this.turnStepAmount = 0; - this.stepAmount = 5; + this.rayLength = 40; + this.turnStepAmount = 4; + this.stepAmount = 3; this.radius = radius; this.x = x; this.y = y; -- cgit v1.2.3