diff options
author | BoredGuy <osome3717@gmail.com> | 2025-08-26 19:54:09 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-08-26 19:54:09 +0300 |
commit | f95068d73410aa6d01e8ba91b430ca05d404a57b (patch) | |
tree | 84de322f972182510e48aaa374ae8a62ac3ee2b5 /include/game.h | |
parent | 87d07175058ee4ae18fce608de81c68d7d9bb178 (diff) |
Added barrel, next up sprite Z-sorting(ugh)
Diffstat (limited to 'include/game.h')
-rw-r--r-- | include/game.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/game.h b/include/game.h index 99529bf..2c4ea24 100644 --- a/include/game.h +++ b/include/game.h @@ -13,7 +13,8 @@ typedef enum EntityType { Player_Entity, Wall_Entity, - Background_Entity + Background_Entity, + Barrel_Entity } EntityType; typedef enum DrawLayer { @@ -36,6 +37,7 @@ typedef struct Sprite { Texture2D texture; DrawLayer layer; Rectangle destRect; //Destination rectangle relative to player position + Rectangle srcRect; //For un-animated sprites only bool flipX; bool flipY; |