diff options
| author | BoredGuy <osome3717@gmail.com> | 2025-09-10 18:49:20 +0300 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2025-09-10 18:49:20 +0300 |
| commit | c2add3e23ee1b69f059d5b78e33c0a922dc1a22d (patch) | |
| tree | 3781913b577f6c94172fcd864c1873df8fc87324 /include/game.h | |
| parent | 1418b5ade374a58bfdf2e3dfee8a4263d642442f (diff) | |
Hitbox-Hurtbox Collisions
Diffstat (limited to 'include/game.h')
| -rw-r--r-- | include/game.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/game.h b/include/game.h index b9df2ce..d79c790 100644 --- a/include/game.h +++ b/include/game.h @@ -65,10 +65,12 @@ typedef struct Entity { Sprite sprites[MAX_SPRITE_COUNT]; int numSprites; - #ifdef BEATEMUP_DEBUG - //Debug information - Color physicsColliderColor; - #endif +#ifdef BEATEMUP_DEBUG + //Debug information + Color physicsColliderColor; + Color hitboxColors[MAX_AREA_COUNT]; + Color hurtboxColors[MAX_AREA_COUNT]; +#endif //Human entity information int bodySpriteIndex; @@ -80,10 +82,10 @@ typedef struct Game { Entity entities[MAX_ENTITY_COUNT]; Camera2D camera; - #ifdef BEATEMUP_DEBUG - //Debug information - bool enableDebugOverlay; - #endif +#ifdef BEATEMUP_DEBUG + //Debug information + bool enableDebugOverlay; +#endif } Game; //Entity Stuff @@ -104,7 +106,7 @@ Rectangle GetSrcRectFromIndex int framesX, int framesY, int index -); + ); typedef struct { Texture texture; |
