Duck Stratagem
The Helldivers 2 arcade game (Stratagem Hero) made with python using pygame
Features
- Savefile: Uses a savefile system where the game saves high scores of past games to show your own personal best.
- Pygame: Uses Pygame to: display a window for the game, tracks keybaord input and display images and text.
- PyPi: Uses Pypi to easily access/play the game by installing the package using pypi.
- Compatibility: The game can run on MacOS, Windows and (hopefully) Linux.
Images
How to Access
Requirements:
- MacOS or Linux device
- Python 3.9 or later (the latest to be safe)
- Pip 22 or later (the latest to be safe)
- Pygame 2.6.0 or later (should be installed when installing the package from Pypi)
-
You'll need to have Python and pip installed.
-
In Terminal or Command Prompt, enter the command:
pip install duck-stratagem
This will install the game. This is from the Pypi package duck-stratagem
-
Once installed, you can use the commands:
dsduck-stratagemplay-dsplay-duck-stratagem(Capatalisation doesn't matter)
-
Enjoy and good luck
How to Play
-
When running the command to play the game, it will bring you to the title screen, instructing the user to press any stratagem key (wasd and arrow keys)(keys to input the code of the stratagem).
-
Once pressed, the game will give you a countdown then will display the the top 5 images of the stratagems in the list, outlining the current stratagem, and the code of it to input with the stratagem keys. For every completed stratagem, you will get 20 points
-
When completing the list, you will gain points based on the time lasted (frames left/10, max 90), multiplied by 2 (+0.5 per 5 rounds) if they didnt make a mistake, multipled by the amount of rounds completed (1.0 + 0.1 x (ammount of round completed)). So, when completing round 10, the score will be calculated as: ((ammount of stratagems completed x 20) + (time left)) x perfection x round multiplier.
-
After scoring, you'll move on to the next round when pressing any stratagem key, repeating the game.
-
You lose when you don't complete the codes of all the stratagems in the list in the given time. This will prompt you with the game over screen and save your score to the high score list.
Notes
This is my first time using pygame, so the structure of the code will absolutely be wack. There also might be some miscalculations with the score where any feedback is appreciated.
Metadata
Release files for duck-stratagem 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| duck_stratagem-0.1.3.tar.gz | 470.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duck_stratagem-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 697.4 kB
Release files / duck_stratagem-0.1.3.tar.gz
| Download URL | duck_stratagem-0.1.3.tar.gz |
|---|---|
| Size | 470.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab0a7152bf2fe0ddd4bd345ef9102094be8fbd6c910d663c1c87133a37f94bed
|
|
BLAKE2b-256 checksum How to use checksums |
bccb696a870717bd42a3f6b151a62b1548f94456004f27ebb6ff446872adfb67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.
Transparency logRelease files / duck_stratagem-0.1.3-py3-none-any.whl
| Download URL | duck_stratagem-0.1.3-py3-none-any.whl |
|---|---|
| Size | 226.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80502ff3d975489e25903ae68f4c5e4e37c7b272cb702e1e09c3a648ee3b7ae0
|
|
BLAKE2b-256 checksum How to use checksums |
272676c894078c76b6b755ec7af29ca550c276ccabe128ff973fcd6ca04ed1ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.
Transparency log