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

Edit game.c

parent ebef1a31
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,8 @@ void UpdateBall(Ball *ball, Paddle *paddle) { ...@@ -34,6 +34,8 @@ void UpdateBall(Ball *ball, Paddle *paddle) {
void DrawGame(Paddle *paddle, Ball *ball) { void DrawGame(Paddle *paddle, Ball *ball) {
DrawRectangleRec(paddle->rect, BLUE); DrawRectangleRec(paddle->rect, BLUE);
DrawCircleV(ball->position, ball->radius, RED); DrawCircleV(ball->position, ball->radius, RED);
DrawText(TextFormat("Score: %d", ball->score), 10, 10, 20, DARKGRAY);
} }
void FreeGame(Paddle *paddle, Ball *ball) { void FreeGame(Paddle *paddle, Ball *ball) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment