From e76b9cb3a64f414ee2e11a28f3d421f6efeb06a6 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 11 Mar 2021 21:01:57 -0500 Subject: Made default sprite hitboxes slightly narrower This includes the player characters. It was impossible to access the Time Passage mailbox with the wider hitbox because the player would continuously slide between the solid tiles to either side of it. --- src/map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 8b79d7b..7398d66 100644 --- a/src/map.h +++ b/src/map.h @@ -21,8 +21,8 @@ struct Tile { struct Prototype { std::string name; vec2i pos; - vec2i collisionOffset {-8, -8}; - vec2i collisionSize {16, 8}; + vec2i collisionOffset {-7, -8}; + vec2i collisionSize {14, 8}; std::string animationFilename; std::string animName; Direction dir = Direction::down; -- cgit 1.4.1