A space shooter-like game
(Assuming you have Ruby 2.3.0+ and Bundler installed)
- First, clone or download this repository (and extract the archive)
- Second, enter the downloaded folder, and run
bundle install
to install the games dependencies semi-automatically - Third, run
ruby planet-wars.rb
You should now be playing the game, enjoy.
Or, if you have Windows, you can download latest release of the game from here.
After selecting your choice of difficultly, your ship is placed in the middle of hostile point in space where enemies constantly spawn.
You can visit planets by pressing enter when on top of a planet, while visiting a planet you can build a base. Bases act as mines, collecting available resources on the planet, bases also act as a repair station, allowing your ship to be repaired.
See how long you can survive.
Note: Controller controls assume an Xbox compatible controller.
W
,Up
orRight Bumper
Forwards/BrakeS
,Down
, orLeft Bumper
Reverse/BrakeA
,Left
,Left D-Pad button
, orLeft Stick -X
Turn LeftD
,Right
,Right D-Pad button
, orLeft Stick +X
Turn Right
Spacebar
orA Button
Fire bullet
U
orY Button
Open Ship upgrades menuEnter
orX Button
Open planet management menu if over top a planetF1
orLeft Stick Button
Pause game and show controlsP
orStart Button
Pause gameEscape
orBack Button
Quit confirmation
--mute
Starts the game with music paused (can be resumed from the settings menu or by pressing 'm')--debug
Shows debugging information, e.g. collision radius visualization--debug_game
Jumps the game straight to theGame
game state--quick
Skips intro and jumps toMainMenu
--no-shadow
Disables text shadow/highlighting--low
Sets the update_interval to 30 frames per second--no-damage
Ship will not take damage--heading
Show object headings, requires--debug
Note: using --debug_game
with also trigger --debug
due to laziness. ARGV.join.include?(string)
In-Game:
Z
Toggles heading display on or off; Only available with--debug
optionX
orRight Stick Button
Toggles debug mode on or off; Only available with--debug
optionC
Prints out data for debugging waves; Only available with--debug
optionV
Runs Planet-to-Planet collision check, used internally to remove overlapping planets; Only available with--debug
optionM
Toggles mute on or off. If sound and/or music is disabled in the menu this will do nothing. Affects--mute
- Online high scores - Time survived
- Multiplayer - Death match with up to 4 players
- Multiplayer - Co-op with up to 4 players
-
All Sprites - Cyberarm - (CC) Attribution-ShareAlike 3.0 Unported License
-
All Music - Alexandr Zhelanov - (CC) Attribution 3.0 Unported License
-
Font: Alfphabet IV - Pierre Huyghebaert and Ludivine Loiseau - SIL Open Font License
-
Font: Hobby Of Night - Fernando Haro - SIL Open Font License
-
Sound: Achievement Unlocked - Kastenfrosch* - (CC) Zero
-
Sound: Explosion - PSYCHO BOOMER* - (CC) Zero
-
Sound: Hit - Keatonmcq* - (CC) Zero
-
Sound: Laser - fins* - (CC) Zero
(* FreeSound username)