Battletank game created to explore Python packaging landscape
Project description
pybattletank
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.
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,Dto move tank.- Left-click to shoot.
- Arrow keys/
Enterto select menu items.
Adding levels
Beside the packaged levels, users can create custom ones. Read this guide.
Acknowledgements
- Philippe-Henri Gosselin (@philippehenri-gosselin) for the wonderful series Discover Python and Patterns. https://www.patternsgameprog.com/series/discover-python-and-patterns/
- Florian Mass (@fpgmass) for creating cookiecutter-uv.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bea60dbb0a75857c6c6ec10596196df642ca97c7dc12e9076fcf2b990abf406a
|
|
| MD5 |
bd57069b3158232ae466b4cd1e87f6c6
|
|
| BLAKE2b-256 |
489b59f412a92a65ec886328d899a90cd64fa329d7667de66cee5267f6fda7a5
|
File details
Details for the file pybattletank-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pybattletank-0.0.6-py3-none-any.whl
- Upload date:
- Size: 19.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3173d98400c7ae40b52845765d44eb4472c39e885a590d8eb0117a4115088dd9
|
|
| MD5 |
63a83c1409e958426476eb6e687c4352
|
|
| BLAKE2b-256 |
946d62fdad18632d5742b6ad9b1ceba6bce58a26f8dc055e5d8a657c2d05f545
|