This is a simple implementation of the classic Pong game written in C using the Raylib library for graphics and input handling. The game is designed to run on various platforms with the help of Raylib's multi-platform support.
To use Raylib in your own projects, you can follow the installation instructions provided in the Raylib GitHub repository.
sudo apt install raylib
sudo pacman -S raylib
To compile and run the game, follow these steps:
-
Clone the repository:
git clone https://github.com/arjunchoudhury07/pong.git
-
Navigate to the directory:
cd pong
-
Make the build script executable:
chmod +x build.sh
-
Compile the game:
./build.sh
-
Run the game:
./pong
- Use the keyboard controls to move the paddle up and down.
- The objective is to hit the ball past the opponent's paddle.
- If a Player misses the ball Opponent scores a point.
- W Key: Move left paddle up
- S Key: Move left paddle down
- UP Key: Move right paddle up
- DOWN Key: Move right paddle down
- Basic Pong game mechanics.
- Graphics and input handling using the Raylib library.
- Inspired by the classic Pong game.
- Utilizes the Raylib library for graphics and input handling.