Skip to content
Snippets Groups Projects
Commit 01431ce5 authored by Lalit2.Dangi@live.uwe.ac.uk's avatar Lalit2.Dangi@live.uwe.ac.uk
Browse files

Edit game.h

parent 8344c80f
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment