From 9e1627c229d8d094c7b55751d82db9d3579a16e1 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Mon, 28 Jul 2025 05:14:54 -0700 Subject: Completed Basics --- include/game.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index 9f44f46..64da8e7 100644 --- a/include/game.h +++ b/include/game.h @@ -10,7 +10,8 @@ #define ENTITY_PHYSICS_ACTIVE (1 << 2) typedef enum EntityType { - Player_Entity + Player_Entity, + Wall_Entity } EntityType; typedef struct Entity { @@ -19,21 +20,33 @@ typedef struct Entity { uint16_t flags; Vector2 position; + Vector2 velocity; //Physics information - Rectangle collider; + Rectangle physicsCollider; int numHitBoxes; Rectangle hitBoxes[MAX_AREA_COUNT]; int numHurtBoxes; Rectangle hurtBoxes[MAX_AREA_COUNT]; + + #ifdef BEATEMUP_DEBUG + //Debug information + Color physicsColliderColor; + #endif } Entity; typedef struct Game { bool paused; Entity entities[MAX_ENTITY_COUNT]; + + Texture2D background; + float backgroundPosition; } Game; +void AddEntity(Entity* e); +void AddWall(float xpos, float ypos, float width, float height); + void InitGame(); void UpdateGame(float deltaTime); void DrawGame(); \ No newline at end of file -- cgit v1.2.3