# Ruby Game Programming

**URL:** <https://rubytalk.org/t/ruby-game-programming/26667>\
**Category:** ruby-talk\
**Created:** [15 April 2006 20:04 UTC](https://rubytalk.org/t/ruby-game-programming/26667 "2006-04-15T20:04:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doug\_Bromley](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Doug\_Bromley](https://rubytalk.org/u/Doug_Bromley)\
**Post date:** [15 April 2006 20:04 UTC](https://rubytalk.org/t/ruby-game-programming/26667/1 "2006-04-15T20:04:33Z")

</div>

Hi All

There is quite a lot of resources in the Python community for "Python game  
programming". I just wondered if there were any resources for game  
programming in the Ruby arena?

---

<div class="post-metadata">

**Author:** ![Dirk\_Meijer](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@Dirk\_Meijer](https://rubytalk.org/u/Dirk_Meijer)\
**Post date:** [15 April 2006 20:10 UTC](https://rubytalk.org/t/ruby-game-programming/26667/2 "2006-04-15T20:10:33Z")

</div>

hi Doug,  
i was wondering about the same a few months back, and i would really like to  
recommend ruby/gosu ([http://www.raschke.de/julian/gosu/\](http://www.raschke.de/julian/gosu/%5C))  
i've heard of something called blunyx, but that's not user-ready yet.  
i think gosu does fine. in fact, i think gosu does great, it's easy to use,  
fast enough and not too hard to pack in an .exe application  
greetings, Dirk.

> **···**
>
> 2006/4/15, Doug Bromley \<doug.bromley@gmail.com\>:
> 
> > Hi All
> > 
> > There is quite a lot of resources in the Python community for "Python game  
> > programming". I just wondered if there were any resources for game  
> > programming in the Ruby arena?

---

<div class="post-metadata">

**Author:** ![John\_M\_Gabriele](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@John\_M\_Gabriele](https://rubytalk.org/u/John_M_Gabriele)\
**Post date:** [15 April 2006 23:06 UTC](https://rubytalk.org/t/ruby-game-programming/26667/3 "2006-04-15T23:06:03Z")

</div>

[http://rubygame.seul.org/](http://rubygame.seul.org/)

> **···**
>
> --- Doug Bromley \<doug.bromley@gmail.com\> wrote:
> 
> > Hi All
> > 
> > There is quite a lot of resources in the Python community for "Python game  
> > programming". I just wondered if there were any resources for game  
> > programming in the Ruby arena?
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Do You Yahoo!?  
> Tired of spam? Yahoo! Mail has the best spam protection around
> 
> > **[Yahoo Mail - Organized Email](https://mail.yahoo.com/)**
> >
> > It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![Barry\_Dmytro](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@Barry\_Dmytro](https://rubytalk.org/u/Barry_Dmytro)\
**Post date:** [16 April 2006 11:36 UTC](https://rubytalk.org/t/ruby-game-programming/26667/4 "2006-04-16T11:36:24Z")

</div>

I'm in the process of writting a ruby game library with curses as its  
base. I've not released any code yet, but if you are interesed drop me  
a line. Progress has greatly slowed lately, but I hope to get it done  
by the end of the year.

> **···**
>
> \* Doug Bromley (doug.bromley@gmail.com) wrote:
> 
> > Hi All
> > 
> > There is quite a lot of resources in the Python community for "Python game  
> > programming". I just wondered if there were any resources for game  
> > programming in the Ruby arena?
> 
> Kind Regards,  
> --------------------------------------------------------------------  
> Barry Dmytro  
> badcherry@mailc.net  
> [http://badcherry.org/](http://badcherry.org/)  
> --------------------------------------------------------------------

---

<div class="post-metadata">

**Author:** ![Mike\_Nelson](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Mike\_Nelson](https://rubytalk.org/u/Mike_Nelson)\
**Post date:** [16 April 2006 04:45 UTC](https://rubytalk.org/t/ruby-game-programming/26667/5 "2006-04-16T04:45:35Z")

</div>

On a related note, is there a module out there for  
shaders?

I didn't see one so I started building one for Cg  
little a bit ago.

--- "John M. Gabriele" \<john\_sips\_tea@yahoo.com\>  
wrote:

> **···**
>
> > --- Doug Bromley \<doug.bromley@gmail.com\> wrote:
> > 
> > \> Hi All  
> > \>  
> > \> There is quite a lot of resources in the Python  
> > community for "Python game  
> > \> programming". I just wondered if there were any  
> > resources for game  
> > \> programming in the Ruby arena?  
> > \>
> > 
> > [http://rubygame.seul.org/](http://rubygame.seul.org/)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Do You Yahoo!?  
> > Tired of spam? Yahoo! Mail has the best spam  
> > protection around  
> > [http://mail.yahoo.com](http://mail.yahoo.com)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Do You Yahoo!?  
> Tired of spam? Yahoo! Mail has the best spam protection around
> 
> > **[Yahoo Mail - Organized Email](https://mail.yahoo.com/)**
> >
> > It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![Mike\_Nelson](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Mike\_Nelson](https://rubytalk.org/u/Mike_Nelson)\
**Post date:** [16 April 2006 04:45 UTC](https://rubytalk.org/t/ruby-game-programming/26667/6 "2006-04-16T04:45:43Z")

</div>

On a related note, is there a module out there for  
shaders?

I didn't see one so I started building one for Cg  
little a bit ago.

--- "John M. Gabriele" \<john\_sips\_tea@yahoo.com\>  
wrote:

> **···**
>
> > --- Doug Bromley \<doug.bromley@gmail.com\> wrote:
> > 
> > \> Hi All  
> > \>  
> > \> There is quite a lot of resources in the Python  
> > community for "Python game  
> > \> programming". I just wondered if there were any  
> > resources for game  
> > \> programming in the Ruby arena?  
> > \>
> > 
> > [http://rubygame.seul.org/](http://rubygame.seul.org/)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Do You Yahoo!?  
> > Tired of spam? Yahoo! Mail has the best spam  
> > protection around  
> > [http://mail.yahoo.com](http://mail.yahoo.com)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Do You Yahoo!?  
> Tired of spam? Yahoo! Mail has the best spam protection around
> 
> > **[Yahoo Mail - Organized Email](https://mail.yahoo.com/)**
> >
> > It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![Ilmari\_Heikkinen](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@Ilmari\_Heikkinen](https://rubytalk.org/u/Ilmari_Heikkinen)\
**Post date:** [16 April 2006 09:43 UTC](https://rubytalk.org/t/ruby-game-programming/26667/7 "2006-04-16T09:43:08Z")

</div>

There's ruby/glew that lets you use GLSL shaders and some other GL extensions:  
[http://rubyforge.org/projects/rubyglew](http://rubyforge.org/projects/rubyglew)

> **···**
>
> On 4/16/06, Mike Nelson \<miken700@yahoo.com\> wrote:
> 
> > On a related note, is there a module out there for  
> > shaders?
> > 
> > I didn't see one so I started building one for Cg  
> > little a bit ago.
> > 
> > --- "John M. Gabriele" \<john\_sips\_tea@yahoo.com\>  
> > wrote:
> > 
> > \> --- Doug Bromley \<doug.bromley@gmail.com\> wrote:  
> > \>  
> > \> \> Hi All  
> > \> \>  
> > \> \> There is quite a lot of resources in the Python  
> > \> community for "Python game  
> > \> \> programming". I just wondered if there were any  
> > \> resources for game  
> > \> \> programming in the Ruby arena?  
> > \> \>  
> > \>  
> > \> [http://rubygame.seul.org/](http://rubygame.seul.org/)  
> > \>  
> > \>  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> Do You Yahoo!?  
> > \> Tired of spam? Yahoo! Mail has the best spam  
> > \> protection around  
> > \> [http://mail.yahoo.com](http://mail.yahoo.com)  
> > \>  
> > \>
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Do You Yahoo!?  
> > Tired of spam? Yahoo! Mail has the best spam protection around  
> > [http://mail.yahoo.com](http://mail.yahoo.com)

---

<div class="post-metadata">

**Author:** ![Carl\_Woodward](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@Carl\_Woodward](https://rubytalk.org/u/Carl_Woodward)\
**Post date:** [16 April 2006 10:40 UTC](https://rubytalk.org/t/ruby-game-programming/26667/8 "2006-04-16T10:40:42Z")

</div>

I am writing a small game engine and I wanted to use ruby and sdl but  
I am writing for osx and linux. The problem is that I have only found  
one account on the net on how to get SDL working on osx and its using  
something called RSDL. The download for RSDL isn't available any more.  
I am writing all of the graphics code in c and I wanted to use ruby to  
drive the game.

Does anyone have any opinions on this approach with respect to speed,  
ease of use, etc or has anyone downloaded the RSDL and can put it up  
on some hosting or email it to me?

> **···**
>
> On 4/16/06, Ilmari Heikkinen \<ilmari.heikkinen@gmail.com\> wrote:
> 
> > There's ruby/glew that lets you use GLSL shaders and some other GL extensions:  
> > [http://rubyforge.org/projects/rubyglew](http://rubyforge.org/projects/rubyglew)
> > 
> > On 4/16/06, Mike Nelson \<miken700@yahoo.com\> wrote:  
> > \> On a related note, is there a module out there for  
> > \> shaders?  
> > \>  
> > \> I didn't see one so I started building one for Cg  
> > \> little a bit ago.  
> > \>  
> > \> --- "John M. Gabriele" \<john\_sips\_tea@yahoo.com\>  
> > \> wrote:  
> > \>  
> > \> \> --- Doug Bromley \<doug.bromley@gmail.com\> wrote:  
> > \> \>  
> > \> \> \> Hi All  
> > \> \> \>  
> > \> \> \> There is quite a lot of resources in the Python  
> > \> \> community for "Python game  
> > \> \> \> programming". I just wondered if there were any  
> > \> \> resources for game  
> > \> \> \> programming in the Ruby arena?  
> > \> \> \>  
> > \> \>  
> > \> \> [http://rubygame.seul.org/](http://rubygame.seul.org/)  
> > \> \>  
> > \> \>  
> > \> \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> \> Do You Yahoo!?  
> > \> \> Tired of spam? Yahoo! Mail has the best spam  
> > \> \> protection around  
> > \> \> [http://mail.yahoo.com](http://mail.yahoo.com)  
> > \> \>  
> > \> \>  
> > \>  
> > \>  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> Do You Yahoo!?  
> > \> Tired of spam? Yahoo! Mail has the best spam protection around  
> > \> [http://mail.yahoo.com](http://mail.yahoo.com)  
> > \>  
> > \>
> 
> --  
> Carl Woodward  
> 0412218979  
> cjwoodward@gmail.com

---

<div class="post-metadata">

**Author:** ![Florian\_Gross2](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Florian\_Gross2](https://rubytalk.org/u/Florian_Gross2)\
**Post date:** [16 April 2006 12:01 UTC](https://rubytalk.org/t/ruby-game-programming/26667/9 "2006-04-16T12:01:52Z")

</div>

Carl Woodward wrote:

> I am writing a small game engine and I wanted to use ruby and sdl but  
> I am writing for osx and linux. The problem is that I have only found  
> one account on the net on how to get SDL working on osx and its using  
> something called RSDL. The download for RSDL isn't available any more.  
> I am writing all of the graphics code in c and I wanted to use ruby to  
> drive the game.
> 
> Does anyone have any opinions on this approach with respect to speed,  
> ease of use, etc or has anyone downloaded the RSDL and can put it up  
> on some hosting or email it to me?

Ruby-Gosu is usually faster than SDL (3D-accelerated), does more and is easier to use, in my opinion.

It works on OS X, Win32 and Linux (though it has a few dependencies when compiling from source).

> **···**
>
> --  
> [http://flgr.0x42.net/](http://flgr.0x42.net/)

---

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [18 April 2006 06:26 UTC](https://rubytalk.org/t/ruby-game-programming/26667/10 "2006-04-18T06:26:46Z")

</div>

> I am writing a small game engine and I wanted to use ruby and sdl but  
> I am writing for osx and linux. The problem is that I have only found  
> one account on the net on how to get SDL working on osx and its using  
> something called RSDL. The download for RSDL isn't available any more.  
> I am writing all of the graphics code in c and I wanted to use ruby to  
> drive the game.

I have the tarball for rsdl if you still want it. Mail me directly if so.

> Does anyone have any opinions on this approach with respect to speed,  
> ease of use, etc or has anyone downloaded the RSDL and can put it up  
> on some hosting or email it to me?

Don't worry about speed at this time, that isn't your concern until it is actually slow. Why are you writing the graphics code in C? If you are doing that, then rsdl isn't of much interest to you (it is only 13 lines of C). Ruby isn't the best thing in the world to embed either, esp for games where you need to reset the runtime and the like.

> **···**
>
> On Apr 16, 2006, at 3:40 AM, Carl Woodward wrote:
