From 01431ce5534d2384b842fabea721b6ba6e2d8a57 Mon Sep 17 00:00:00 2001 From: "Lalit2.Dangi@live.uwe.ac.uk" <lalit2.dangi@live.uwe.ac.uk> Date: Fri, 4 Apr 2025 10:15:31 +0000 Subject: [PATCH] Edit game.h --- game.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.h b/game.h index 51074e9..0ee3bb9 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); -- GitLab