summaryrefslogtreecommitdiff
path: root/include/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/game.h')
-rw-r--r--include/game.h6
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 {