Skip to main content

Swarm

Swarm is a strategy rouge-like space simulator game written with pygame/python3.

Install

pip3 install pygame
pip3 install Swarm

Instructions

The player controls the mothership (white) in the fleet of circles (squares are enemies). All ships in a fleet follow the mothership. The different colors tell you what kind of ship the circle/square represents. Different ships have different abilities, attack ranges, health pools, speeds, etc. Even ships of the same type have somewhat randomized stats.

Ships automatically target the closest enemy and motherships will seek out other fleets to destroy. If a mothership is destroyed, their remaining fleet will surrender to the attacker who destroyed their mothership. The lines indicate that a ship has a target. There is no indication that something is attacking other than it will stop moving towards the target.

The game isn't done yet but it is close. The plan is to randomly spawn in new fleets of enemy ships of increasing difficulty, over time (trivial to implement right now). I'll also be including a remote python console that is attached to certain game objects to allow the player to change the behavior of their fleet using python.

Here are the ships and their functions:

  • White - Mothership. Controls where the fleet goes and has the most health out of all ships. When a mothership is destroyed, their remaining fleet will fight for the winning fleet and part of their mothership's stats will go to the winning mothership as well. This applies to enemy motherships as well, so if an enemy mothership destroys several enemy motherships before you, it will be difficult to destroy.

  • Red - Attack - This is the main attack vessel. It does medium/short ranged attacks.

  • Green - Ranged Attack - This is another attack vessel that does longer ranged attacks, but is weaker.

  • Dark Blue - Tank - This is another attack vessel with higher health, but it does less damage.

  • Pink - Repair - This ship targets friendly ships and blasts them with a stream of hull-repairing nano-bots.

  • Orange/Brown - The Collector/Builder - This ship targets supplies dropped by destroyed ships. When the fleet has enough supplies, a random ship is built.

  • Yellow - Kamikaze - The kamikaze ship has a long range, is super fast, and will run full speed into enemy ships dealing massive damage. The kamikaze ship is lost in the process. It also has very low health so destroying it before it's in range is best!

  • Light Blue - Supplies - Supplies are dropped by destroyed ships and can be collected by the Collector/Builder ships.

Metadata

Release files for Swarm 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Swarm 0.0.2
File Size Uploaded
Swarm-0.0.2.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Swarm 0.0.2
File Interpreter ABI Platform
Swarm-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / Swarm-0.0.2.tar.gz

Download URL Swarm-0.0.2.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
27124cc0bef4dbb39c1a8e936a89a84f42862af29c201c9875c60526db7fcf54
BLAKE2b-256 checksum
How to use checksums
7a1c9dfc5ed3f024d2da61e3418373b615181a31bcf4b48b9f2802f2a141c573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

Release files / Swarm-0.0.2-py3-none-any.whl

Download URL Swarm-0.0.2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b22e6e61a2424bfc411e4a29edc3558a68488629c8b0a51b887dc4dc9eaf636
BLAKE2b-256 checksum
How to use checksums
b3a0ab922ebe2bb20aeacde06cab06eca268ee37115a235f616e75a2d7024b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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