Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oslint/pong-cpp-sdl2
Recreation of the classic Pong game with SDL2 lib and C++!
https://github.com/oslint/pong-cpp-sdl2
beginner beginner-friendly cpp first-contributions pong pong-game sdl sdl-library sdl-ttf sdl2
Last synced: 3 days ago
JSON representation
Recreation of the classic Pong game with SDL2 lib and C++!
- Host: GitHub
- URL: https://github.com/oslint/pong-cpp-sdl2
- Owner: OsLint
- Created: 2023-09-08T13:22:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-09T12:56:28.000Z (over 1 year ago)
- Last Synced: 2024-12-05T23:09:37.781Z (2 months ago)
- Topics: beginner, beginner-friendly, cpp, first-contributions, pong, pong-game, sdl, sdl-library, sdl-ttf, sdl2
- Language: C++
- Homepage:
- Size: 197 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pong Game 🏓
Recreation of the classic Pong game with SDL2 lib and C++!
## 🎮 How to Play
- Player 1 (Left Paddle): Use the **W** and **S** keys to move up and down, respectively.
- Player 2 (Right Paddle): Use the **Up Arrow** and **Down Arrow** keys to move up and down, respectively.The objective is simple: **Don't let the ball get past your paddle!** Score points by making the ball pass your opponent's paddle.
![ss](https://github.com/oskalbarczyk/pong-cpp-sdl2/assets/106467480/d460ec5d-829d-4565-8073-0c68dc917bfb)
## 🚀 Getting Started
1. Clone or download this repository to your local machine.
2. Install SDL2 Lib and SDL2_ttf
3. Compile the game using your preferred C++ compiler.
4. Run the compiled executable.## 📝 Notes
1. This project was made using Clion and CMAKE on macOS if you use other enviroments edit the project acordingly.## 📜 Credits
This Pong game was created by Oskar Kalbarczyk as a fun project to demonstrate game development with SDL2.