Just asteroids is a clone of 'Atari Asteroids' rendered and played entirely on the terminal with it's own game engine. It was made out of curiosity on how a computer draws lines or objects to the screen, and how those are interactible.
With that in mind, what better way to learn that besides making a small game engine and game!
Also, check out Javidx9's channel! My implementation is inspired on his video about asteroids.
just-asteroids uses python's keyboard
module, so although a regular
install will suffice on windows, linux will need a root install
# use sudo if on linux
pip install git+/~https://github.com/gabrielvictorcf/just-asteroids#egg=justasteroids
git clone /~https://github.com/gabrielvictorcf/just-asteroids
cd just-asteroids
pip3 install . # sudo pip3 install . if on Linux
As of now, just-asteroids requires some manual adjustments:
- Resize terminal window: 305 columns x 105 rows
- Change font size to 6
After that, just open the game and press enter
when you're ready!
enter: start game
left-arrow: left rotate
right-arrow: right rotate
up: thrust
space: shoot
b: brake