feat/refactor: player health and overlay display

This commit is contained in:
2026-07-05 20:17:26 +02:00
parent cc42a45f68
commit 3995dce1ef
+2
View File
@@ -100,6 +100,7 @@ typedef struct {
Animation animation; Animation animation;
Physics physics; Physics physics;
float rotation; float rotation;
int health;
} Player; } Player;
typedef enum { BOAT, ENEMIES_TEX_COUNT } enemiesTextureID; typedef enum { BOAT, ENEMIES_TEX_COUNT } enemiesTextureID;
@@ -254,6 +255,7 @@ void CheckProjectileCollisions(Projectiles *projectiles, Enemies *enemies, Playe
void InitGame(App *app); void InitGame(App *app);
void UpdateGame(App *app); void UpdateGame(App *app);
void RenderComponents(App *app); void RenderComponents(App *app);
void RenderOverlay(Mouse *mouse);
void RenderGame(App *app); void RenderGame(App *app);
void CleanupGame(App *app); void CleanupGame(App *app);