diff --git a/game.h b/game.h index 51074e9f4bab444b846bb8f16f638ec062a433fb..0ee3bb9b346a88e6d997e06db80f2e9ac93d818e 100644 --- a/game.h +++ b/game.h @@ -12,8 +12,10 @@ typedef struct Ball { Vector2 position; Vector2 speed; int radius; + int score; // ✅ Add this line } 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);