Skip to main content

The HELLDIVERS 2's 'Stratagem Hero' made with python, using pygame

Project description

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.

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

duck_stratagem-0.1.3.tar.gz (470.5 kB view details)

Uploaded Source

Built Distribution

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

duck_stratagem-0.1.3-py3-none-any.whl (226.8 kB view details)

Uploaded Python 3

File details

Details for the file duck_stratagem-0.1.3.tar.gz.

File metadata

  • Download URL: duck_stratagem-0.1.3.tar.gz
  • Upload date:
  • Size: 470.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for duck_stratagem-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ab0a7152bf2fe0ddd4bd345ef9102094be8fbd6c910d663c1c87133a37f94bed
MD5 c7059196830fa42b976c994aaa06383e
BLAKE2b-256 bccb696a870717bd42a3f6b151a62b1548f94456004f27ebb6ff446872adfb67

See more details on using hashes here.

Provenance

The following attestation bundles were made for duck_stratagem-0.1.3.tar.gz:

Publisher: publish.yml on DuckyBoi-XD/Duck-Stratagem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file duck_stratagem-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: duck_stratagem-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 226.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for duck_stratagem-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80502ff3d975489e25903ae68f4c5e4e37c7b272cb702e1e09c3a648ee3b7ae0
MD5 d858b460ec10b8461ec3057a5e9e2979
BLAKE2b-256 272676c894078c76b6b755ec7af29ca550c276ccabe128ff973fcd6ca04ed1ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for duck_stratagem-0.1.3-py3-none-any.whl:

Publisher: publish.yml on DuckyBoi-XD/Duck-Stratagem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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