This is a very old project that I've recently (2023–2024) refactored into a pretty nice codebase, and probably the largest personal project I have ever worked on.
By installing it locally.
I haven't gotten around to properly packaging this thing, so for now, just
install from the requirements.txt.
- Clone the repository:
git clone https://github.com/b-sharman/bangbang.git # for HTTPSgit clone git@github.com:b-sharman/bangbang.git # for SSH- Make and activate a virtual environment:
cd bangbang
python -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Start a server:
cd bangbang
python server.py- Then, from another terminal or another computer on the same LAN, re-enter
the virtual environment (
source .venv/bin/activate) and start clients using the IP address listed by the server:
python bangbang.py [ip]- Type
startfrom the server instance.
| Keypress | Action |
|---|---|
up |
accelerate |
down |
decelerate |
s |
stop (if speed is sufficiently close to zero) |
left |
turn base and turret left together |
right |
turn base and turret right together |
shift+left |
turn the turret left |
shift+right |
turn the turret right |
ctrl+left |
turn the base left |
ctrl+right |
turn the base right |
t |
align the turret with the base |
ctrl+t |
align the base with the turret |
space |
fire a shell |
b |
lay a mine |
ESC |
force quit |
f |
print current FPS to console |