Skip to content

Recreation of the classic Pong game with SDL2 lib and C++!

Notifications You must be signed in to change notification settings

okdotdev/Pong-Cpp-SDL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

🚀 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.