summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-10-27 13:39:07 +0300
committerGalin Simeonov <gts@volconst.com>2021-10-27 13:45:22 +0300
commitdf405a0cb99d4674d3bf14ec31b7dc5977a76718 (patch)
tree81d777027be7f5fabfe1d260bc1b18ab3bf5d0cd
parent97a18123de85228d5b4d9b42451a7b6ac0417f91 (diff)
downloadsnek-df405a0cb99d4674d3bf14ec31b7dc5977a76718.tar.gz
Increased lazer hitbox
-rw-r--r--snek.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/snek.js b/snek.js
index 6afe00e..40fba23 100644
--- a/snek.js
+++ b/snek.js
@@ -451,7 +451,7 @@ function mouseColidesWithLaserBeam(mouse)
if(direction<0)
direction=Math.PI*2+direction;
- if(Math.abs(direction-Math.PI-snake.direction)<0.1)
+ if(Math.abs(direction-Math.PI-snake.direction)<0.3)
return true;
else
return false;