Skip to content

c64cosmin/terminoids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asteroids game inside the terminal

Title

Screenshot

Screenshot

Screenshot

Building

You will need Rust to compile the binary

cargo build --release

Running

./target/release/terminoids

Gameplay

Unfortunately terminals don't directly support input like UI apps do.
What I mean is that KEY_UP & KEY_DOWN events are not supported,
the way the terminal works is to get a key stroke event and act accordingly.

This means that buttons have to be tapped in order to get a move
holding a button down will work until another button is pressed
Remember this works inside the terminal, so like a text editor
You cannot press two buttons at once, you got to tap them.

Due to this limitation the game work like this:

  • Pressing Fire button will enable firing, the ship will fire automatically
    until the Fire is pressed again to stop
  • Pressing Left or Right will turn the ship only a slight amount
  • Pressing Up will propel the ship forward a slight amount

Left - Right : Rotate ship
Up : Move forward
Space : Fire
P : Pause
Q or Ctrl-C : Exit

Asteroids

  • Huge : 200pts

Preview

  • Big : 150pts

Preview

  • Medium : 100pts

Preview

  • Small : 75pts

Preview

  • Tiny : 50pts

Preview

Star-ships

  • Big cluster : 250pts

Preview

  • Medium cluster : 200pts

Preview

  • Small cluster : 150pts

Preview

  • Flying ship : 100pts

Preview

Power-ups

  • Red : 1000pts - gives piercing bullets for 5 seconds

Preview

  • Green : 1000pts - gives split fire for 7 seconds

Preview

  • Blue : 1000pts - gives shield for 10 seconds

Preview

  • White : 1000pts - gives rapid fire for 5 seconds

Preview

Self-Promotion

I make video games

Twitter

YouTube

You can play some free games here
No download, directly in browser
Hope you get a high score in the leader board :D

HomePage

License

Copyright (c) Cosmin MUNTEANU.

About

Asteroids in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages