A command line implementation of two player pong, built using WinAPI.
Player controls are W, S
, and I, K
- this can be changed from within in config.h
(must be an uppercase alphabetic character, or a valid virtual key code)
- Clone this project
git clone https://github.com/Oakamoore/cli-pong.git
- Step into the repository
cd cli-pong
- Build the project using CMake
# Configure the build
cmake -S . -B build
# Build project binaries
cmake --build build
Depending on the type of CMake generator being used, a build configuration (Debug
, Release
etc.) can be specified as follows:
# Configure a release build
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
# Build release binaries
cmake --build build
# Configure the build
cmake -S . -B build
# Build release binaries
cmake --build build --config Release
Once the project is built, navigate to the newly created build directory cli-pong/build/
, locate the executable and run the program using:
./cli-pong