spacedinvaders
A textual terminal spin on an arcade classic ... and my CS50X final project for the year that CoViD-19 made me want to forget.
Implemented using Python's builtin curses module; no other dependencies unless you want audio, see the caveat below.
Installation
Assuming you've got Python 3.7+ installed you should be able to install with:
pip install --user spacedinvaders
There's also optional sound support, but see the caveats below if you run into any trouble:
pip install --user spacedinvaders[SOUNDS]
Gameplay
Controls are pretty self-explanatory:
Move Left A KEY or LEFT ARROW
Move Right D KEY or RIGHT ARROW
Fire SPACE
Quit CTRL + Q
Though there might be others if you're looking for eggs.
Caveats
Unicode
Your terminal and your font must support unicode characters; run spacedinvaders -h and see if the UFO appears:
▁▁▁
▞█▀█▚
▔▘▔▝▔
Terminal Sizing Issues
The game will complain vigorously if you've got it sized below the minimum possible number of rows and columns required for it to render the play field. Unfortunately this is entirely dependent on your screen size and font settings. This is the nature of trying to squeeze arcade action into a curses based interface: if you've got a 1920x1080 screen and your font size is reasonably small it should work, but be prepared to try setting your terminal to use smaller font sizing.
Controls
Being that it's curses the movement controls can feel a bit sloppy. You might want to play around with xset r settings to find an autorepeat that works for you.
Audio
Sounds will only work with simpleaudio and its dependencies installed. Worked out of the box for me, but Your Mileage May Vary. See [their docs][simpleaudion-install] for a first pass at troubleshooting.
Credits
Couldn't have gotten anywhere near this accurate without the awesome resources at:
-
The useful descriptions of the arcade box's gameplay found at Classic Gaming's overview: they also get full credit for the audio files they've made available.
-
Some details about resolution on the original arcade screen found at Retro Games filled in gaps from the above (and literally, on the screen).
-
Couldn't have gone the extra mile on the little details of Invader timings, sound, or general play details without the absolutely brilliant, and exhaustive, excavations at Computer Archaeology, which honestly make all the difference in making this feel at least a little like the real thing.
Metadata
Release files for spacedinvaders 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spacedinvaders-0.0.5.tar.gz | 158.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spacedinvaders-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 316.0 kB
Release files / spacedinvaders-0.0.5.tar.gz
| Download URL | spacedinvaders-0.0.5.tar.gz |
|---|---|
| Size | 158.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9903fda0179fb135e97434eb38599305f62e9304ec500b3829b7d1b161348856
|
|
BLAKE2b-256 checksum How to use checksums |
898f52314467fbe89446a5e43474ec45215f67c44ca4698c8003f836e1b2f79a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
|
Release files / spacedinvaders-0.0.5-py3-none-any.whl
| Download URL | spacedinvaders-0.0.5-py3-none-any.whl |
|---|---|
| Size | 157.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f8e19c578df8581e557fc66259376ec1c2d74b7fc2b24bd352b06eb15802c1d
|
|
BLAKE2b-256 checksum How to use checksums |
a71114be0cd6643f309a9262c64cc64ed51e28cd24260cb13d142f61d8a0dcf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
|
Security for spacedinvaders 0.0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.