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-devFor Meson, install it with:
sudo apt install mesonClone the repository and navigate to the project directory:
git clone <repository_url>
cd C-pongBuild the project:
makeRun the game:
make runTo clean up the build files:
make cleanSet up the build directory:
meson setup buildCompile the project:
meson compile -C buildRun the game:
./build/C-pongTo 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.