Better textured, better collisions

This commit is contained in:
2018-10-06 18:59:17 +02:00
parent 6bfdfb247e
commit 7fe182b609
5 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ impl Character {
/// Returns the collision bounding box of the character.
pub fn bbox(&self) -> FloatRect {
FloatRect::new(self.position.x, self.position.y, 32.0, 32.0)
FloatRect::new(self.position.x + 8.0, self.position.y + 16.0, 16.0, 16.0)
}
}