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/game.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index d79c790..558f96f 100644 --- a/include/game.h +++ b/include/game.h @@ -38,6 +38,7 @@ typedef struct Sprite { DrawLayer layer; Rectangle destRect; //Destination rectangle relative to player position Rectangle srcRect; //For un-animated sprites only + float alpha; bool flipX; bool flipY; @@ -51,6 +52,7 @@ typedef struct Entity { int id; EntityType type; uint16_t flags; + int state; Vector2 position; Vector2 velocity; @@ -74,7 +76,9 @@ typedef struct Entity { //Human entity information int bodySpriteIndex; - int state; + + //Barrel entity information + float timeSinceLastHit; } Entity; typedef struct Game { -- cgit v1.2.3