commit be3e7e752533d9ea08c10e5ebb4cca1fc4684b1d
parent a538305c5f5240cb1b3c6f12bd8557701c629e73
Author: William Lindholm <william_lindholm@outlook.com>
Date: Mon, 20 Dec 2021 00:43:12 +0100
Changed line length.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/script.js b/script.js
@@ -21,7 +21,7 @@ var canvas = document.getElementById('bang'),
can_h = parseInt(canvas.getAttribute('height')),
ctx = canvas.getContext('2d');
-var BALL_NUM = parseInt((window.innerHeight + window.innerWidth) * 0.025);
+var BALL_NUM = parseInt(((window.innerHeight + window.innerWidth) * 0.02) + 10);
var ball = {
x: 0,
@@ -44,7 +44,7 @@ var ball = {
// Line
link_line_width = 0.8,
- dis_limit = 300,
+ dis_limit = parseInt(((window.innerHeight + window.innerWidth) * 0.07)+90),
add_mouse_point = true,
mouse_in = false,
mouse_ball = {