summaryrefslogtreecommitdiff
path: root/src/entities/bug.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-03-08 23:15:42 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-03-08 23:15:42 +0200
commite1d7d245bff7dec55ed2d4d773795b3149ab683d (patch)
tree8ab350082ce93249b2bfcc23bfdb2cc5d59593be /src/entities/bug.rs
parent544c030b80d4d7b9a3b00711ff21b2592275a7e8 (diff)
Made bugs round to match the round hitbox
Diffstat (limited to 'src/entities/bug.rs')
-rw-r--r--src/entities/bug.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/entities/bug.rs b/src/entities/bug.rs
index d2d5c2e..424e195 100644
--- a/src/entities/bug.rs
+++ b/src/entities/bug.rs
@@ -37,8 +37,6 @@ impl Bug {
}
fn touches(&self, point: Vec2d) -> bool {
- let rx = 35.;
- let ry = 16.;
- self.pos.distance(point) <= 45. // Some better hit box modelling might be nice?
+ self.pos.distance(point) <= 75. // Some better hit box modelling might be nice?
}
}