diff options
author | BoredGuy <osome3717@gmail.com> | 2025-07-30 23:33:22 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-07-30 23:33:22 +0300 |
commit | c05e188ef6a4b715848f9f0b401351a43c80168d (patch) | |
tree | dc1dd17a8623b26bac9bc6b959084babe556ee32 /include/game.h | |
parent | 815aec62f8ae3a403e913559d5fe6138c8825007 (diff) |
Small Refactor
Diffstat (limited to 'include/game.h')
-rw-r--r-- | include/game.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/game.h b/include/game.h index 1039ad5..eb6da29 100644 --- a/include/game.h +++ b/include/game.h @@ -49,11 +49,8 @@ typedef struct Entity { typedef struct Game { bool paused; - Entity entities[MAX_ENTITY_COUNT]; - - Texture2D background; - float backgroundPosition; + #ifdef BEATEMUP_DEBUG //Debug information bool enableDebugOverlay; @@ -66,3 +63,15 @@ void AddWall(float xpos, float ypos, float width, float height); void InitGame(); void UpdateGame(float deltaTime); void DrawGame(); + +static inline bool EntityAllocated(const Entity* e) { + return (e->flags & ENTITY_ALLOCATED); +} + +static inline bool SameEntity(const Entity* a, const Entity* b) { + return a->id == b->id; +} + +#ifdef BEATEMUP_DEBUG +void DebugHighlights(const Entity* e); +#endif |