From c326d6c5297667304cec5f78eede6e3c94163431 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Thu, 11 Sep 2025 22:10:05 +0300 Subject: A lot of stuff tbh - Added collision response to barrel - Transparency effects added --- include/barrel_data.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'include/barrel_data.h') 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 -- cgit v1.2.3