The simple multiplayer 2D tanks game in Python, developed with my kids.
- gameplay resembles famous NES game Battle City
- allow multiple players to fight each other via network
tested on local home network, but theoretically may work via Internet (didn't tested, though) - game is compatible with RetroPy libretro core
- Debian, Ubuntu, Raspberry Pi OS, etc:
sudo apt install -y python3-pygame python3-configobj- Fedora:
sudo dnf install -y python3-pygame python3-configobjwget -q -O - https://github.com/WiseToad/tanks/releases/latest/download/tanks.tar.gz | tar -xzf -See tanks.conf
- cd src/
- run
server.pyonce on some machine reachable for all clients via network - run
tanks.pyfor each client that desires to play
Keyboard:
- arrow keys - move
Space,Right Ctrl- shootPgUp,PgDn- cycle maps
Joypad:
D-Pad- moveA- shootSelect+A/B- cycle mapsSelect(on release) - cycle map forward
- fix sudden crashes (due to short-term connectivity lost?)
- allow two players to play on same client (needed especially for libretro cores)
- implement bonuses appearing randomly on map - health, rapid fire, velocity boost, vulnerability, etc
- test map cycling with joypads
- design more maps
- Tanks - This project on GitHub