Skip to content

Instantly share code, notes, and snippets.

@alvarobp
Last active June 6, 2016 13:24
Show Gist options
  • Save alvarobp/49a3508ca22a172f88af6fbf8f32bc4c to your computer and use it in GitHub Desktop.
Save alvarobp/49a3508ca22a172f88af6fbf8f32bc4c to your computer and use it in GitHub Desktop.
RTanque Instructions

http://awilliams.github.io/RTanque/

Setup

RTanque depends on Gosu, which depends on SDL, which depends on... :(

On Debian (8.1)

Install dependencies for gosu and texplay gems.

sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev libiconv-hook-dev libxml2-dev freeglut3 freeglut3-dev ImageMagick libmagickwand-dev

On OSX (El Capitan)

Install dependencies for gosu gem.

brew install sdl2 libogg libvorbis

Setup RTanque directory

Both in Debian and OSX gosu and texplay gems failed to install.

  • Gosu 0.7 wouldn't compile. That's why I had to install RTanque from a different github repository.
  • Texplay 0.4.3 wouldn't compile. That's why I had to install texplay from the github repository.
mkdir -p rtanque; cd rtanque

bundle init
echo "gem 'rtanque', github: 'andrew/rtanque'" >> Gemfile
echo "gem 'texplay', github: 'banister/texplay'" >> Gemfile
bundle install

Get started

Create a new bot

bundle exec rtanque new_bot my_bot

Play against a sample bot

bundle exec rtanque start --gui=false sample_bots/seek_and_destroy bots/my_bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment