feat/refactor: player health and overlay display
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user