From f95068d73410aa6d01e8ba91b430ca05d404a57b Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Tue, 26 Aug 2025 19:54:09 +0300 Subject: Added barrel, next up sprite Z-sorting(ugh) --- include/game.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/game.h') 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; -- cgit v1.2.3