A simple Gosu game made with Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
config
lib
wrappers
.ruby-version
Gemfile
LICENSE
README.md
Rakefile
invaderoids.rb

README.md

Simple shooter game that shows how to use the Gosu library to create a game with Ruby. This example game uses a small simple framework which allows the programmer to create and handle custom sprites and game states (ie, game screens such as the main menu, the play screen, etc).

Running

Linux

install dependencies for gosu :

apt-get install build-essential freeglut3-dev libfreeimage-dev libgl1-mesa-dev libopenal-dev libpango1.0-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsndfile-dev libxinerama-dev

install bundler and dependencies :

gem install bundler
bundle install --path vendor --without development

Then run the invaderoids.rb file:

bundle exec ruby invaderoids.rb

OSX

install ruby 1.9. Install bundler and dependencies :

gem install bundler
bundle install --path vendor --without development

Then run the invaderoids.rb file:

bundle exec ruby invaderoids.rb

Windows

install ruby 1.9 from ruby installer

install bundler and dependencies :

gem install bundler
bundle install

Then run the invaderoids.rb file:

bundle exec ruby invaderoids.rb

How to play

Menu controls:

  • Use the arrow keys (up and down) to browse the different menu options
  • Press Enter or the space bar to select the highlighted option
  • Press Esc to quit the game or go back to the main menu screen

In game controls:

  • Use the arrow keys to move the space ship horizontally and vertically
  • Hit the space bar to shoot the aliens
  • Avoid colliding with aliens!
  • Press Esc to go back to the main menu

Credits & copying

This game is based on Space Shooters by (c) 2009 Belén Albeza González. I changed the gameplay to look like Asteroids instead of a Space Invaders game and added some public domain & free music and sound samples :

Graphics and source code released under the MIT license. See LICENSE for details.