Skip to content

Space Invaders Game v1.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 04:32
· 213 commits to main since this release

Full Changelog: v0.9.0...v1.0.0

  • Better way to level up the player.
    • With upgrade choice / stat selection. Player can choose to upgrade either (gun power, speed or capacity).
  • The game runs without a config file. If the file dose not exist, the default configuration will be used.
  • Spaceship now can move around the whole screen using the mouse.

Install

go install github.com/omar0ali/spaceinvaders-game-cli@latest

Controls

Control Action
Left Mouse Click / Space Bar Shoot beams
Mouse Movement Move the spaceship
F Drop health kit (increase spaceship health)
P Pause the game
S Start the game or Upgrade Gun Speed
A Upgrade Gun Power
D Upgrade Gun Capacity
C Increase health

Default Configuration File Update

Configuration file added for the player to freely change/update entity's attributes. The config file saved as config.toml.

[spaceship]
health = 15
max_level = 10
next_level_score = 300
gun_max_cap = 6
gun_cap = 3
gun_speed = 40
gun_max_speed = 80
gun_power = 2

[aliens]
limit = 1
health = 5
speed = 3
gun_speed = 35
gun_power = 1

[stars] 
limit = 15
speed = 50

[health_drop]
health = 6
speed = 3
limit = 1
max_drop = 5
start = 1