Ruby and Game Development Library Gosu

As a Rubyist I was looking out for gaming frameworks for Ruby wherein I can apply my Programming skills. There is a framework for ruby for developing games and it is known as Gosu.

https://www.libgosu.org/

To get started I purchased the book by Mark Sobkowicz – “Learn Game Programming with Ruby”.

The book is very good and has instructions for installing Ruby and Gosu on Windows and Mac os. Unfortunately the book doesn’t have instructions for installing Gosu on linux. Gosu also needs ImageMagick installed on your system.

The below steps worked for me to install Gosu on Xubuntu 18.04

First and foremost, make sure you have updated core software:

: sudo apt-get update
>: sudo apt-get upgrade

# Dependencies for both C++ and Ruby

: sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev \
libgl1-mesa-dev libopenal-dev libsndfile-dev libmpg123-dev \
libgmp-dev

# To install Ruby itself – if you are using rvm or rbenv, please skip this step.

RVM didn’t work for me.

: sudo apt-get install ruby-dev

# If you are using system Ruby, you will need “sudo” to install Ruby libraries. One library did give an error for me. If it gives error check it (gems)

: sudo gem install gosu releasy texplay ashton gamebox chipmunk ruby-opengl rmagick

This is a separate step to install ImageMagick

: sudo apt install imagemagick php-imagick

I have taken references from 2 websites:

https://github.com/gosu/gosu/wiki/getting-started-on-linux

https://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=1137

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s