From 687aa29f3c43a1ae452282a2e27ca345e150f5ad Mon Sep 17 00:00:00 2001
From: "Lalit2.Dangi@live.uwe.ac.uk" <lalit2.dangi@live.uwe.ac.uk>
Date: Tue, 1 Apr 2025 09:09:54 +0000
Subject: [PATCH] main.c

---
 main.c | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 main.c

diff --git a/main.c b/main.c
new file mode 100644
index 0000000..5d0d029
--- /dev/null
+++ b/main.c
@@ -0,0 +1,32 @@
+#include "raylib.h"
+#include "game.h"
+
+int main(void)
+{
+    const int screenWidth = 800;
+    const int screenHeight = 450;
+
+    InitWindow(screenWidth, screenHeight, "PoP - Full Marks Game");
+    SetTargetFPS(60);
+
+    Paddle *paddle = CreatePaddle(50, 200, 20, 80, 5);
+    Ball *ball = CreateBall(400, 225, 10, 4, 4);
+
+    while (!WindowShouldClose())
+    {
+        if (IsKeyDown(KEY_UP)) paddle->rect.y -= paddle->speed;
+        if (IsKeyDown(KEY_DOWN)) paddle->rect.y += paddle->speed;
+
+        UpdateBall(ball, paddle);
+
+        BeginDrawing();
+        ClearBackground(RAYWHITE);
+        DrawText("Use UP and DOWN keys to control paddle!", 200, 10, 20, DARKGRAY);
+        DrawGame(paddle, ball);
+        EndDrawing();
+    }
+
+    FreeGame(paddle, ball);
+    CloseWindow();
+    return 0;
+}
-- 
GitLab