Skip to main content

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

Title screen of the game

Game screen when inputting code

Point scoring screen

Game over screen

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)
  1. You'll need to have Python and pip installed.

    • You can follow this to install Python
    • You can follow this to install pip
  2. 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

  3. Once installed, you can use the commands:

    • ds
    • duck-stratagem
    • play-ds
    • play-duck-stratagem (Capatalisation doesn't matter)
  4. Enjoy and good luck

How to Play

  1. 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).

  2. 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

  3. 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.

  4. After scoring, you'll move on to the next round when pressing any stratagem key, repeating the game.

  5. 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)

Source distribution for duck-stratagem 0.1.3
File Size Uploaded
duck_stratagem-0.1.3.tar.gz 470.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for duck-stratagem 0.1.3
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page