https://github.com/kmr-ankitt/pong
Pong game using SDL2
https://github.com/kmr-ankitt/pong
cpp pong
Last synced: about 1 year ago
JSON representation
Pong game using SDL2
- Host: GitHub
- URL: https://github.com/kmr-ankitt/pong
- Owner: kmr-ankitt
- Created: 2024-12-12T17:29:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-31T09:42:37.000Z (over 1 year ago)
- Last Synced: 2025-02-22T01:24:21.751Z (over 1 year ago)
- Topics: cpp, pong
- Language: C++
- Homepage:
- Size: 218 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pong Game
C++ implementation of the classic Pong game.
## Dependencies
- SDL2
- CMake
For Ubuntu-based systems, you can install the dependencies using:
```bash
sudo apt install libsdl2-dev cmake
```
For Arch-based systems, you can install the dependencies using:
```bash
sudo pacman -S sdl2 cmake
```
For RPM-based systems like Fedora, you can install the dependencies using:
```bash
sudo dnf install SDL2-devel cmake
```
## Building
To install the Pong game, clone the repository and navigate to the project directory:
```bash
git clone https://www.github.com/kmr-ankitt/pong.git
cd pong
```
Build the project using CMake:
```bash
cmake -S . -B build
cmake --build build
```
## Running
Run the binary to start the game:
```bash
./build/pong
```