Skip to content
/ Pong Public

The Pong game recreated with C++ and SDL2

Notifications You must be signed in to change notification settings

NemGam/Pong

Repository files navigation

This is the pong game recreated using C++ and SDL2 library. It supports sprite and font loading, allowing you to replace files as long as the same file name is kept.

Pong

Windows build can be downloaded here. Just unpack to any folder and run pong.exe.

Getting Started (Linux)

Dependencies

  • CMake (version 3.13 or higher recommended)
  • C++ Compiler: Compatible with C++11 standard
  • SDL2 (>= 2.0.20)
  • SDL2-ttf (>= 2.0.18)
  • SDL2-image (>= 2.0.5)

Downloading

Clone the repository:

git clone https://github.com/NemGam/Pong.git

Navigate to the project directory:

cd Pong

Building the Project

From the project root directory, generate the build system:

cmake -S . -B build

Compile and install the project:

cmake --build build && cmake --install build

Running the Application

Execute the compiled application:

./dist/bin/pong