Skip to content

A terminal-based Space Invaders clone with dynamic alien behavior, keyboard controls, and minimalist gameplay.

License

Notifications You must be signed in to change notification settings

ahmad-alkadri/go-invaders-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Invaders Space!

A simple Space Invaders-style game written in Go for the terminal.

invaders
Game demo, played on terminal, recorded using asciinema

Features

  • Playable in the terminal (cross-platform)
  • Move your ship left/right and shoot aliens
  • Aliens move and shoot back
  • Score tracking
  • Game over and restart functionality

Controls

  • a or Left Arrow: Move left
  • d or Right Arrow: Move right
  • Spacebar: Shoot
  • q: Quit
  • r: Restart (after game over)

Requirements

  • Go 1.16 or newer
  • Terminal/console with basic ANSI support

How to Run

  1. Clone or download this repository.

    git clone https://github.com/ahmad-alkadri/go-invaders-space.git
  2. Open a terminal in the project directory and run.

    go run main.go
  3. Alternatively, you can build it:

    go build -o go-invaders-space
    ./go-invaders-space

Notes

  • Tested extensively on bash, not yet on Windows
  • Uses the eiannone/keyboard package for keyboard input.

Enjoy blasting some aliens!

About

A terminal-based Space Invaders clone with dynamic alien behavior, keyboard controls, and minimalist gameplay.

Topics

Resources

License

Stars

Watchers

Forks

Languages