diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-03 08:11:10 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-03 08:11:10 -0500 |
| commit | 5878a1c0b28763b2e4a6afb200abbb528bd326b4 (patch) | |
| tree | 3652772df2258ac274ee085cd29767d3fe85a8a2 /src/map.h | |
| parent | 5e6d487dcf1ad94c16543012ec3b9a54e3fd9c0c (diff) | |
| download | tanetane-5878a1c0b28763b2e4a6afb200abbb528bd326b4.tar.gz tanetane-5878a1c0b28763b2e4a6afb200abbb528bd326b4.tar.bz2 tanetane-5878a1c0b28763b2e4a6afb200abbb528bd326b4.zip | |
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.
Diffstat (limited to 'src/map.h')
| -rw-r--r-- | src/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
| 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 { | |||
| 21 | struct Prototype { | 21 | struct Prototype { |
| 22 | std::string name; | 22 | std::string name; |
| 23 | vec2i pos; | 23 | vec2i pos; |
| 24 | vec2i collisionOffset; | 24 | vec2i collisionOffset {-8, -8}; |
| 25 | vec2i collisionSize; | 25 | vec2i collisionSize {12, 8}; |
| 26 | std::string animationFilename; | 26 | std::string animationFilename; |
| 27 | std::string animName; | 27 | std::string animName; |
| 28 | Direction dir = Direction::down; | 28 | Direction dir = Direction::down; |
