Skip to content

A command line implementation of two player pong

License

Notifications You must be signed in to change notification settings

Oakamoore/cli-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-pong

License Platform

Overview

A command line implementation of two player pong, built using WinAPI.

Controls

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)

Installation

  1. Clone this project
git clone https://github.com/Oakamoore/cli-pong.git
  1. Step into the repository
cd cli-pong
  1. Build the project using CMake
# Configure the build
cmake -S . -B build

# Build project binaries 
cmake --build build

Specifying a Build Configuration

Depending on the type of CMake generator being used, a build configuration (Debug, Release etc.) can be specified as follows:

Single Configuration Generator

# Configure a release build
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release

# Build release binaries
cmake --build build

Multi-Configuration Generator

# Configure the build
cmake -S . -B build 

# Build release binaries
cmake --build build --config Release

Usage

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

About

A command line implementation of two player pong

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages