Question for using Ruby in Game development.

Posted 20 June 2012 - 12:17 AM

Im new to ruby but i have leanred the basics of what ruby is and what it does. I want to know what libararies are avaible for making a 2D game? Maybe for 3D? Im usng the Ubuntu of Linux IOs. Looked at some tutorials but i want to get some libaraies that can help out. Im trying to get OpenGL, SDL or something else thats crossplatform. Once i have that done, I need to figure out the right coding to get a windows up and running.
Any advice from the Ruby experts for learning ruby for game development. Im planning to stick with console type games for now but i dont know how to start it.

Re: Question for using Ruby in Game development.

Ruby can definitely be used for game development, though it's not as commonly done here as in other languages.

The two most common libaries I'm aware of are rubygame and Gosu. I'm under the impression that Gosu is more actively developed. There are also Ruby bindings for the SDL library.

Thanks xc. I tried to get the libaries for linux and everytime i do the command in terminal its saying that its a unknown directory. Im having problems with almost all libaries except rubygame. Gosu i saw it and im thinking about using it. Im using tutoirals from youtube(manwithcode), Its giving me some help on what to understand on what i have to be doing. Not much videos on how to learn ruby for a

Re: Question for using Ruby in Game development.

Posted 20 June 2012 - 04:43 PM

You had the right idea - this is one I turned to google with when I first encountered it. To build gems that have native extensions (any gaming gem probably has this) you need some development libraries.

Re: Question for using Ruby in Game development.

Posted 20 June 2012 - 05:01 PM

xclite, on 20 June 2012 - 04:43 PM, said:

You had the right idea - this is one I turned to google with when I first encountered it. To build gems that have native extensions (any gaming gem probably has this) you need some development libraries.

I'm actually a fan of how well documented this is, so I may have to give Gosu a try in the future.

Edit: Also I wanted to point out that using sudo to install gems on Ubuntu is generally required (I've never had it work without sudo), so that was the correct path.

The link has pretty good instructions on adding the libareis. I finally got it to work, Im just waiting on the downloading part from terminal. From the looks of it it has alot of files to install that are for the core, And it tells you what to do first. The video i saw for installing this didnt show this first. Thanks.