Skip to content

WiseToad/tanks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The simple multiplayer 2D tanks game in Python, developed with my kids.

tanks

FEATURES

  • 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

PREREQUISITES

  • Debian, Ubuntu, Raspberry Pi OS, etc:
sudo apt install -y python3-pygame python3-configobj
  • Fedora:
sudo dnf install -y python3-pygame python3-configobj

INSTALL

wget -q -O - https://github.com/WiseToad/tanks/releases/latest/download/tanks.tar.gz | tar -xzf -

CONFIGURE

See tanks.conf

USAGE

  • cd src/
  • run server.py once on some machine reachable for all clients via network
  • run tanks.py for each client that desires to play

CONTROLS

Keyboard:

  • arrow keys - move
  • Space, Right Ctrl - shoot
  • PgUp, PgDn - cycle maps

Joypad:

  • D-Pad - move
  • A - shoot
  • Select+A/B - cycle maps
  • Select (on release) - cycle map forward

TODO

  • 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

REFERENCES

  • Tanks - This project on GitHub

About

The simple multiplayer 2D tanks game in Python, developed with my kids

Resources

Stars

Watchers

Forks

Packages

No packages published