An open API service indexing awesome lists of open source software.

https://github.com/spajus/tank_island

Top down 2D shooter game that involves blowing up tanks
https://github.com/spajus/tank_island

book game game-2d game-development gamedev gosu indiegame ruby

Last synced: 17 days ago
JSON representation

Top down 2D shooter game that involves blowing up tanks

Awesome Lists containing this project

README

          

# Tank Island

Tank Island is an open source 2D top down shooter game that was created with Ruby using
[Gosu](http://www.libgosu.org) game development library while writing
[this book](https://leanpub.com/developing-games-with-ruby/).

## Screenshots

![Tank Island Game](https://leanpub.com/site_images/developing-games-with-ruby/50-hud.png)

![Tank Island Game](https://leanpub.com/site_images/developing-games-with-ruby/54-visual-debugging.png)

[Gameplay video on YouTube](http://youtu.be/c2M_zJ9KcS8)

## Book: Developing Games With Ruby

Complete process of building this game is described step by step in this free to read book:

[Developing Games With Ruby](https://leanpub.com/developing-games-with-ruby/read)

## Installation

Before installing, make sure you have:

- Ruby installed, preferably through [rbenv](https://github.com/sstephenson/rbenv), not rvm.
- ImageMagick (`gem install rmagick` should work).
- Gosu prerequisites for [Mac](https://github.com/jlnr/gosu/wiki/Getting-Started-on-OS-X),
[Linux](https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux) or
[Windows](https://github.com/jlnr/gosu/wiki/Getting-Started-on-Windows)

To install it, run

$ gem install tank_island

## Starting the game

There are several ways to start the game.

### Running in 800x600 window mode

$ tank_island

### Running with custom resolution

$ w=1600 h=1200 tank_island

### Running full screen with custom resolution

$ fs=1 w=1200 h=800 tank_island

## Controls

### Gameplay

- `W` `A` `S` `D` moves your tank.
- Mouse `left click` shoots.
- `ESC` goes into menu and away from it.

### Debugging

- `R` respawns your tank.
- `T` spawns an enemy tank under mouse cursor.
- `F1` enters debug mode.
- `F2` toggles profiling