From 5878a1c0b28763b2e4a6afb200abbb528bd326b4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 3 Mar 2021 08:11:10 -0500 Subject: Set default collision bounds for map sprites Since it's always the same ones anyway, might as well set defaults and allow them to be overridden. --- 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 80a79b0..a125082 100644 --- a/src/map.h +++ b/src/map.h @@ -21,8 +21,8 @@ struct Tile { struct Prototype { std::string name; vec2i pos; - vec2i collisionOffset; - vec2i collisionSize; + vec2i collisionOffset {-8, -8}; + vec2i collisionSize {12, 8}; std::string animationFilename; std::string animName; Direction dir = Direction::down; -- cgit 1.4.1