A simple Pong game built with C and GTK+ 3.0. This project uses either a Makefile
or Meson
for build automation, allowing you to compile and run the game in an easy and modular way.
- Simple Pong gameplay
- Implemented using GTK+ 3.0 for a graphical interface
- Supports paddle movement, ball collision, and basic game mechanics
- GCC
- GTK+ 3.0
- Meson (for Meson build option)
To install GTK+ 3.0 on Ubuntu, use:
sudo apt update
sudo apt install libgtk-3-dev
For Meson, install it with:
sudo apt install meson
Clone the repository and navigate to the project directory:
git clone <repository_url>
cd C-pong
Build the project:
make
Run the game:
make run
To clean up the build files:
make clean
Set up the build directory:
meson setup build
Compile the project:
meson compile -C build
Run the game:
./build/C-pong
To clean up build files:
meson compile -C build --clean
- Paddle 1: Use the Up and Down arrow keys
- Paddle 2: Use the W and S keys
This setup provides a dual-build system with instructions for both Makefile
and Meson
.