space-invaders icon indicating copy to clipboard operation
space-invaders copied to clipboard

:space_invader: Space Invaders 2d game with Ruby/Gosu

Classic Space Invaders Game

logo

Features

  • Player moves ship horizontally by pressing on keyboard :heavy_check_mark:
  • Player shoot aliens, which can move horizontally & vertically :heavy_check_mark:
  • When bullet reach alien, alien disappear & total score increase :heavy_check_mark:
  • Aliens can shoot too. When alien hit player, his lives decrease :heavy_check_mark:
  • Player can hide behind obstacles
  • Game ends when player lives become 0 :heavy_check_mark:
  • Game has record table :heavy_check_mark:
  • Game has sounds effects :heavy_check_mark:

Demo

https://user-images.githubusercontent.com/14609424/168065403-aa3b19fd-e091-4d56-97ed-2b01863fbc58.mov

Installation

  • Debian based Linux distros
  • macOS

Launch

ruby lib/space_invaders.rb

Other resources