summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-09-21 01:52:22 +0100
committerFbenas <philbeansburton@gmail.com>2020-09-21 01:52:22 +0100
commit5c4f8661dbbc54f607bdac4676a74995463cdece (patch)
tree3b7e1fb5964d533318bc676aa1bc1052cbd56812
parent101011c6e8866f07d4f6d2994ec414bdb79d2ae8 (diff)
Tweak size and randomness
-rw-r--r--public/js/app.js8
-rw-r--r--resources/js/app.js2
-rw-r--r--resources/js/component.js6
3 files changed, 8 insertions, 8 deletions
diff --git a/public/js/app.js b/public/js/app.js
index fdf81e7..746c558 100644
--- a/public/js/app.js
+++ b/public/js/app.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;
@@ -221,7 +221,7 @@ class Scene {
}
-let scene = new Scene(10, 100);
+let scene = new Scene(5, 100);
function stop() {
scene.stop();
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;