Skip to main content

Battletank game created to explore Python packaging landscape

Project description

pybattletank

Release Build status codecov Commit activity License

pybattletank is a simple tower defense game written using pygame to explore game development and the Python packaging landscape.

The gameplay is based on Philipe-Henri Gosselin's well-written series Discover Python and Patterns.

Demo

Detailed documentation is available at https://linhns.github.io/pybattletank/.

Installation

There are a number of ways to obtain the game:

  • Install via pip:

    pip install pybattletank
    

    Then, run the game:

    pybattletank
    

    or:

    python -m pybattletank
    
  • Run without installation using uv:

    uvx pybattletank
    
  • Grab the binary for your operating system from the releases page.

Usage

Basic game controls

  • W, A, S, D to move tank.
  • Left-click to shoot.
  • Arrow keys/Enter to select menu items.

Adding levels

Beside the packaged levels, users can create custom ones. Read this guide.

Acknowledgements

Project details


Download files

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

Source Distribution

pybattletank-0.0.6.tar.gz (33.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybattletank-0.0.6-py3-none-any.whl (19.4 MB view details)

Uploaded Python 3

File details

Details for the file pybattletank-0.0.6.tar.gz.

File metadata

  • Download URL: pybattletank-0.0.6.tar.gz
  • Upload date:
  • Size: 33.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.9

File hashes

Hashes for pybattletank-0.0.6.tar.gz
Algorithm Hash digest
SHA256 bea60dbb0a75857c6c6ec10596196df642ca97c7dc12e9076fcf2b990abf406a
MD5 bd57069b3158232ae466b4cd1e87f6c6
BLAKE2b-256 489b59f412a92a65ec886328d899a90cd64fa329d7667de66cee5267f6fda7a5

See more details on using hashes here.

File details

Details for the file pybattletank-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pybattletank-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3173d98400c7ae40b52845765d44eb4472c39e885a590d8eb0117a4115088dd9
MD5 63a83c1409e958426476eb6e687c4352
BLAKE2b-256 946d62fdad18632d5742b6ad9b1ceba6bce58a26f8dc055e5d8a657c2d05f545

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page