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

Edit game.h

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