A simple pong-style game implemented in C-style C++ using Raylib.
hitTheball is a minimalistic pong-inspired game written in C++ using a C-style approach. The game uses Raylib, a simple and easy-to-use library for graphics and windowing.
- Classic pong gameplay
- C-style coding in C++
- Lightweight and easy to build
- Graphics powered by Raylib
- Personalized pong character instead of just a ball
- Language: C++ (C-style)
- Graphics Library: Raylib
- C++ compiler (e.g., g++, clang++)
- Raylib library files (download from Raylib GitHub)
-
Clone the repository:
git clone https://github.com/ms-solly/hitTheball.git cd hitTheball -
Download Raylib:
Visit Raylib GitHub and follow the instructions to download and build Raylib for your platform.-
For Linux (example):
sudo apt-get install libraylib-dev
Or see detailed instructions: Raylib Wiki - Building on GNU/Linux
-
For Windows or macOS, follow platform-specific instructions in the Raylib repo.
-
-
Compile the code:
Make sure Raylib's include and library files are available to your compiler.g++ -o hitTheball main.cpp -lraylib
(Replace
main.cppwith your actual main file name if needed.) -
Run the game:
./hitTheball
- Control your paddle using the keyboard.
- Keep the ball (character) in play as long as possible.
- (Add specific controls or scoring details here.)
Pull requests are welcome! You can also fork this repo and experiment with Raylib.
Repository: ms-solly/hitTheball