A volley-ball 2D game built from scratch with multithreaded C++ using SFML.
This project uses cmake
and SFML library:
sudo apt-get install cmake libsfml-dev
- Clone this repository
- Compile with
mkdir build && cd build && cmake ..
- Go to binary folder
cd ./bin
- Run with
./volley
This game was made for fun but also to practice multithreading in C++ and implementing various OOP design patterns.
All images come from openclipart.org, except characters which are an home-made creation.
There are 3 threads which handle the different parts of the game:
- the rendering thread handles rendering the game window at a rate of about 60 fps,
- the event thread handles interpreting user input once every 50ms,
- the game thread updates the game state once every 60 fps.