Skip to content

Space Invaders Game v1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 04:18
· 160 commits to main since this release

Full Changelog: v1.0.0...v1.2.0

  • Create a spaceship placed at mouse pointer on the screen.
  • Add controls to the spaceship, Mouse Motion left, right, up and down.
  • Shoots laser beam by hitting the Left Mouse Button or Space Bar.
  • Create enemy spaceships (Currently have 10 different types).
  • Can deploy aliens ships in a random x position
  • Stars falling down with different speed. (just to look cool)
  • Adding Start Menu Screen UI
  • Adding Pause Menu using p to pause the game.
  • Adding spaceship UI details.
  • Show control info at the bottom of the screen.
  • Loot boxes to increase health.
    • Health Kits will be dropped every 1 minute.
    • Can be consumed by pressing [F] key.
  • Implement a configuration file.
  • Adding Timer.
  • Alien Ship Stats on the right of the screen.
  • Alien ships can shoot the player's spaceship.
  • Implementing a better way to level up the player.
    • With upgrade choice / stat selection. Player can choose to upgrade either (gun power, speed or capacity).
  • Now the game runs without a config file. If the file dose not exist, the default configuration will be used.
  • Added variety of spaceship selection before starting the game.
    • Before the game starts, the player will be able to select a ship.

Objective

The game is an endless space shooter where players face increasingly difficult waves of alien ships that scale with their level. Each time the player levels up, they can choose an upgrade to improve their spaceship, such as boosting firepower to handle tougher aliens with stronger armor. The objective is to survive as long as possible, destroy alien ships, and push for a higher score while managing health through occasional drop-down health packs that restore the spaceship health.

Youtube - Gameplay Demo - v1.2.0

Watch the video

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 Consume health kit (increase spaceship's health)
P Pause the game
S Start the game or Upgrade Gun Speed
A Upgrade Gun Power
D Upgrade Gun Capacity
C Increase heatlh

Default Configuration File

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

[spaceship]
max_level = 50
next_level_score = 50
gun_max_cap = 30
gun_max_speed = 85

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

[stars] 
limit = 15
speed = 50

[health_kit]
health = 2
speed = 3
max_kits = 5
start_with = 1