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/game.h | |
| parent | c2add3e23ee1b69f059d5b78e33c0a922dc1a22d (diff) | |
A lot of stuff tbh
- Added collision response to barrel
- Transparency effects added
Diffstat (limited to 'include/game.h')
| -rw-r--r-- | include/game.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |
