diff --git a/index.html b/index.html index 72b36db..989f834 100644 --- a/index.html +++ b/index.html @@ -198,7 +198,7 @@ var _COLOR_GRASS = '#388E3C', } function checkHole() { - if(bX >= hole[0]-_HOLE_WIDTH/2 && bX <= hole[0]+_HOLE_WIDTH/2 && bY >= hole[1] && bY-_HOLE_WIDTH/2 <= hole[1]+_HOLE_WIDTH/2) + if(bX >= hole[0]-_HOLE_WIDTH/2 && bX <= hole[0]+_HOLE_WIDTH/2 && bY >= hole[1]-_HOLE_WIDTH/2 && bY <= hole[1]+_HOLE_WIDTH/2) alert('Hole') }