Skip to content

slinky55/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong

A pong clone written in C++ using SFML

About

This originaly was a project to learn networking, however I've decided to add more features to it and make a better game.

Current features:

  • Main menu (with an AI game in the background)
  • Singleplayer and Multiplayer modes
  • Singleplayer opponent AI

Planned features:

  • Currently connecting to the server requires typing into the console, I want this to be GUI based
  • Player will be able choose whether to host a server on their own machine, or join another player's server
  • AI will hopefully become more realistic and have diffuculty levels

Building

This has not been tested or built for Windows. I will be working on a simple way to build with Windows, this will probably be with an SFML submodule. If anyone can find a way to work nice with Windows, please submit a PR.

First be sure to have SFML libraries installed on your system

For linux (Ubuntu/Debian): sudo apt install libsfml-dev For MacOS (Homebrew): brew install sfml

Then clone the project: git clone --recurse-submodules [email protected]:slinky55/Pong-Cpp.git

Client

  1. Build
cd PongClient &&
mkdir build-debug &&
cmake -B build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build-debug
  1. Run!
./build-debug/Pong

Server

  1. Build
cd PongServer-Cpp &&
mkdir build-debug &&
cmake -B build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build-debug
  1. Run!
cd build-debug && ./PongServer

About

A pong clone written in C++ using SFML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published