Skip to content

Commit

Permalink
Relax collision detection box
Browse files Browse the repository at this point in the history
  • Loading branch information
lokxii committed Sep 30, 2024
1 parent a22ea13 commit 52a3ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fox.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function set_idle_loop_count() {
}

function is_mouse_touching_fox(current, mouse, width) {
return mouse.x >= current.x + width * 0.3 &&
mouse.x < current.x + width * 0.7 &&
return mouse.x >= current.x &&
mouse.x < current.x + width &&
mouse.y >= current.y + width * 0.5 &&
mouse.y < current.y + width;
}
Expand Down

0 comments on commit 52a3ad2

Please sign in to comment.