From df405a0cb99d4674d3bf14ec31b7dc5977a76718 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Wed, 27 Oct 2021 13:39:07 +0300 Subject: Increased lazer hitbox --- snek.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3