diff --git a/game.h b/game.h index 0ee3bb9b346a88e6d997e06db80f2e9ac93d818e..cd2adcb694cf3b098a1395c9ad7f0c70da16f63b 100644 --- a/game.h +++ b/game.h @@ -2,6 +2,7 @@ #define GAME_H #include "raylib.h" +#include <stdbool.h> typedef struct Paddle { Rectangle rect; @@ -12,10 +13,11 @@ typedef struct Ball { Vector2 position; Vector2 speed; int radius; - int score; // ✅ Add this line + int score; + int lives; + bool isGameOver; } Ball; - Paddle *CreatePaddle(float x, float y, float width, float height, int speed); Ball *CreateBall(float x, float y, int radius, float speedX, float speedY); void UpdateBall(Ball *ball, Paddle *paddle);