From de921801c053d3eb342f585ca98738480cdf3db0 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 20:58:02 -0400 Subject: [PATCH 01/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8a6adbd..94da65b 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 50 && trueX - this.x > -50 - && trueY - this.y < 50 && trueY - this.y > -50 +if (trueX - this.x < 10 && trueX - this.x > -10 + && trueY - this.y < 10 && trueY - this.y > -10 ) { if (this.radius < maxRadius) { this.radius += 4; From f7a69e41df2210cee5d6f5470ed1fdb501a9f2eb Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:15:00 -0400 Subject: [PATCH 02/21] Update index.js --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 94da65b..1bb86d3 100644 --- a/index.js +++ b/index.js @@ -154,9 +154,9 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 10 && trueX - this.x > -10 - && trueY - this.y < 10 && trueY - this.y > -10 - ) { +if (trueX - this.x < this.radius && trueX - this.x > -this.radius + && trueY - this.y < this.radius && trueY - this.y > -this.radius + if (this.radius < maxRadius) { this.radius += 4; } From 46eefa02e7afc0d63a9e73e17a081181a7e38d51 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:19:45 -0400 Subject: [PATCH 03/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1bb86d3..4fb65c8 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < this.radius && trueX - this.x > -this.radius - && trueY - this.y < this.radius && trueY - this.y > -this.radius +if (trueX - this.x < this.radius+1 || trueX - this.x > -this.radius+1 + && trueY - this.y < this.radius+1 || trueY - this.y > -this.radius+1 if (this.radius < maxRadius) { this.radius += 4; From 84979186456f0dbd135ba171cec1b9b09495bad8 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:22:30 -0400 Subject: [PATCH 04/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4fb65c8..e04c2b5 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < this.radius+1 || trueX - this.x > -this.radius+1 - && trueY - this.y < this.radius+1 || trueY - this.y > -this.radius+1 +if (abs(trueX - this.x < 7) + && abs(trueY - this.y < 7) if (this.radius < maxRadius) { this.radius += 4; From e636f504493d30d36216c781d12b750d8fd3f983 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:27:03 -0400 Subject: [PATCH 05/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e04c2b5..c82eec1 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (abs(trueX - this.x < 7) - && abs(trueY - this.y < 7) +if (trueX - this.x < 7 && this.x - trueX > -7 + && trueY - this.y < 7 && this.y - trueY > -7 if (this.radius < maxRadius) { this.radius += 4; From c735baea74b7833116114e969508f19d85ba6e10 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:29:46 -0400 Subject: [PATCH 06/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c82eec1..70a42b5 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 7 && this.x - trueX > -7 - && trueY - this.y < 7 && this.y - trueY > -7 +if (trueX - this.x < this.radius && trueX - this.x > -this.radius + && trueY - this.y < this.radius && trueY - this.y > -this.radius) if (this.radius < maxRadius) { this.radius += 4; From a2257fad67e3ac570acdf34717aad04f2896dc56 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:31:01 -0400 Subject: [PATCH 07/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 70a42b5..debdaf4 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < this.radius && trueX - this.x > -this.radius - && trueY - this.y < this.radius && trueY - this.y > -this.radius) +if (trueX - this.x < 10 && trueX - this.x > -10 + && trueY - this.y < 10 && trueY - this.y > -10) if (this.radius < maxRadius) { this.radius += 4; From d58a803bb3957dcfa11f8042aef77cd621b5f055 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:41:14 -0400 Subject: [PATCH 08/21] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index debdaf4..ff28780 100644 --- a/index.js +++ b/index.js @@ -156,7 +156,7 @@ this.y+=this.dy; //when mouse close if (trueX - this.x < 10 && trueX - this.x > -10 && trueY - this.y < 10 && trueY - this.y > -10) - +{ if (this.radius < maxRadius) { this.radius += 4; } From 46de3c8dcb160a15521a592ca15424452ce59d29 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:42:27 -0400 Subject: [PATCH 09/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ff28780..79603d6 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 10 && trueX - this.x > -10 - && trueY - this.y < 10 && trueY - this.y > -10) +if (trueX - this.x < this.radius && trueX - this.x > -this.radius + && trueY - this.y < this.radius && trueY - this.y > -this.radius) { if (this.radius < maxRadius) { this.radius += 4; From 037b67d76092b2caad15afac0ca457b04268dd01 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:43:59 -0400 Subject: [PATCH 10/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 79603d6..ae4866c 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < this.radius && trueX - this.x > -this.radius - && trueY - this.y < this.radius && trueY - this.y > -this.radius) +if (trueX - this.x < this.radius+4 && trueX - this.x > -this.radius+4 + && trueY - this.y < this.radius+4 && trueY - this.y > -this.radius+4) { if (this.radius < maxRadius) { this.radius += 4; From ccb31d51fd27bdc912d72ceaf8fd8d94e33603a7 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:45:37 -0400 Subject: [PATCH 11/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ae4866c..f2994c8 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < this.radius+4 && trueX - this.x > -this.radius+4 - && trueY - this.y < this.radius+4 && trueY - this.y > -this.radius+4) +if (trueX - this.x < 2*(this.radius+4) && trueX - this.x > 2*(-this.radius+4) + && trueY - this.y < 2*(this.radius+4) && trueY - this.y > 2*(-this.radius+4)) { if (this.radius < maxRadius) { this.radius += 4; From 15f98077bd77fdffe1c0f284da13cf7be6d8e826 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:46:42 -0400 Subject: [PATCH 12/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f2994c8..b368702 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 2*(this.radius+4) && trueX - this.x > 2*(-this.radius+4) - && trueY - this.y < 2*(this.radius+4) && trueY - this.y > 2*(-this.radius+4)) +if (trueX - this.x < 8 && trueX - this.x > 8 + && trueY - this.y < 8 && trueY - this.y > 8) { if (this.radius < maxRadius) { this.radius += 4; From ea5ec3373d24160b3e73b717cf844f4fcdaf0fb2 Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:48:19 -0400 Subject: [PATCH 13/21] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b368702..f11d50b 100644 --- a/index.js +++ b/index.js @@ -154,8 +154,8 @@ this.y+=this.dy; //interactivity //when mouse close -if (trueX - this.x < 8 && trueX - this.x > 8 - && trueY - this.y < 8 && trueY - this.y > 8) +if (trueX - this.x <8 && trueX - this.x > -8 + && trueY - this.y <8 && trueY - this.y > -8) { if (this.radius < maxRadius) { this.radius += 4; From d823f680e4abf1f856adcb4af3626480a323cddc Mon Sep 17 00:00:00 2001 From: webguy24 <65795729+webguy24@users.noreply.github.com> Date: Fri, 22 May 2020 21:53:24 -0400 Subject: [PATCH 14/21] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 7d12a10..1173af9 100644 --- a/index.html +++ b/index.html @@ -170,7 +170,7 @@