Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

bkrl/cppdiep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CppDiep

This is a very simple 2D game based on Diep.io. It is a personal project originally intended to be used as a reinforcement learning environment.

Building

Building this project requires Box2D 2.4.1 and SFML 2.5. Commands for Fedora 36:

sudo dnf install git gcc-c++ make cmake Box2D-devel SFML-devel
git clone https://github.com/bkrl/cppdiep.git && cd cppdiep
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $(nproc)

Gameplay

You control the blue tank and try to kill the red tank, which will automatically shoot at you and move towards you. Move with the WASD keys and aim with the mouse. Left click to fire or press E to toggle automatic firing. See demo.mp4 for an example of what it looks like.