Skip to main content

A small 2D tank game

Project description


A small tank game where you can customize your own tank.


The basic idea of this game was to make a customizable tank game. Therefor you have 100 credits to spend on different attributes of you tank are:

  1. Speed
  2. Acceleration
  3. Health
  4. DPS (damage per shot)
  5. Fire Rate

You will notice, that the acceleration is also used to calculate the angular velocity of your tank.


"Of course I know the rules. Simple. You hit him, don't let him hit you." -- Mr. Han


The red tank is controlled by the keys w, a, s, d and alt (left).

The blue tank is controlled by the keys i, j, k, l and space.


The consists of two different types of obstacles.

  1. Wood Boxes (500 life points)
  2. Stone Boxes (indestructible)

The position and number of stone and wood boxes as well as the start positions of the tanks are generated randomly. You may encounter to stuck within a box. Hopefully your enemy is a honourable gentleman and will restart the match.

Surge Factor

The surge factor specifies how many credit points do you need to set an attribute to its max. A surge factor of 0.9, the default value, means that you need 90 of 100 credit points to set you health to the max of 5000. You can change the surge factor in the options menu.


The code is published under the GNU General Public License v3.0 licence. The music was published under the Creative Commons Attribution (3.0) licence. You can find the licence at the /res2/music subdirectory.


Credits are going to Thomas Kötter making all the game assets except the explosion.

I found the explosion animation at:

Credts are also going to Kara Square for the background music:

Transmutation by Kara Square (c) copyright 2017 Licensed under a Creative Commons Attribution (3.0) license. Ft: Spinningmerkaba

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Panzerspiel, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size Panzerspiel-1.0-py3-none-any.whl (5.5 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Panzerspiel-1.0.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page