diff options
Diffstat (limited to 'include/barrel_data.h')
| -rw-r--r-- | include/barrel_data.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/barrel_data.h b/include/barrel_data.h index 97a13db..8dbfd5e 100644 --- a/include/barrel_data.h +++ b/include/barrel_data.h @@ -1,15 +1,31 @@ #include "barrel.h" -static const Rectangle physicsCollider = (Rectangle) { +static Rectangle physicsCollider = (Rectangle) { .x = NO_OFFSET, .y = NO_OFFSET, .width = 100, .height = 120 }; -static const Rectangle destRect = (Rectangle) { +static Rectangle destRect = (Rectangle) { .x = -65, .y = -140, .width = 230, .height = 300 }; + +static Rectangle srcRect = (Rectangle) { + .x = 0, + .y = 0, + .width = 32, + .height = 32 +}; + +static Rectangle srcRectDamaged = (Rectangle) { + .x = 32, + .y = 0, + .width = 32, + .height = 32 +}; + +#define BARREL_REMOVE_TIME 1.0f |
