diff options
| author | BoredGuy <osome3717@gmail.com> | 2025-09-11 22:10:05 +0300 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2025-09-11 22:10:05 +0300 |
| commit | c326d6c5297667304cec5f78eede6e3c94163431 (patch) | |
| tree | 1c33ee0ed87fdb0de436f7ba9020c95fc9660e77 /include/barrel_data.h | |
| parent | c2add3e23ee1b69f059d5b78e33c0a922dc1a22d (diff) | |
A lot of stuff tbh
- Added collision response to barrel
- Transparency effects added
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 |
