A simple implementation of the classic Pong game built using the Raylib library.
- Classic two-player Pong gameplay (Player Vs Ai)
- Score tracking
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- A C/C++ compiler (like GCC/MinGW or the one included with Visual Studio) C++
- Raylib library installed or set up for your build environment. 📚
-
Clone the repository:
git clone https://github.com/wldoooon/pongGame.git cd pongGame -
Compile the code:
Example using GCC/MinGW (if raylib is installed system-wide or in a known path):
gcc main.c -o pong_game -lraylib -lopengl32 -lgdi32 -lwinmm
Example if using a Makefile:
make
Example if using Visual Studio: Open the
.slnfile and build the solution (Ctrl+Shift+B). -
Run the executable:
▶️ After successful compilation, an executable file (e.g.,pong_game.exeor similar) will be created..\pong_game.exe
-
Player Controls: ⌨️
- Up:
Kkey - Down:
Jkey
- Up:
-
Objective: Score points by making the ball pass your opponent's paddle. The first player to reach [Your Winning Score] points wins. 🏆
-
Raylib - The game development library used
-
C / C++ - Core language
