From 9c5516d91431b03fd349c1f8076343c2d7927f97 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:29:32 +0000 Subject: [PATCH] Edit game.h --- game.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game.h b/game.h index 0ee3bb9..cd2adcb 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); -- GitLab