Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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++!

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.