Ruby for Game Development

by Glenn Fiedler on July 2, 2005

I had an idea just four hours ago, and now because of Ruby its real.

I work fulltime as a game programmer, so being able to quickly try out ideas on the weekend and still have some relaxation time is very important to me. For this and many other reasons I love coding in Ruby!

Anyway, the idea i had was to create an entity system for networked physics simulation. In a nutshell, to code the foundation for a game engine which will easily let me make little networked physics toys and games using the techniques developed in Zen of Networked Physics and my physics articles.

You can download a little demo of my work so far on the “Sandbox Engine”.

Dont expect anything flashy! This is only of interest if you are a programmer interested in game engines, physics and networking and are happy looking at source code to see how things work.

But i hope that somewhere out there, somebody can appreciate the elegance and simplicity of this design? Please drop me a comment if you find the ideas in the source code interesting

Failing that, at least do yourself the favour of learning Ruby

http://www.rubycentral.com

{ 3 comments… read them below or add one }

minh thu August 6, 2006 at 8:37 am

hi,
i’m reading your code : i’m interested both in game programming and ruby (which i’m just learning !), so thanks to share this.

just to let you know :
in Core/Scene, line 35 : #{frame + 1} should be #{@frame + 1}
in Core/Standard : you use @@debug; are you aware of $DEBUG and the -d command line option ?

hope you’ll improve the whole thing and keep sharing it,
mt

Reply

Marcus Nielsen May 10, 2007 at 8:36 am

I am doing a 5-weeks course and am currently reviewing Ruby.
I am studying to become a game programmer, so I am pleasantly surprised of this page!
Although there is still the in-depth exploration to do, Im very satisfied that there might be a possibility to use ruby as a scripting wrapper for a game as well as a prototyper.

My question is: where do I start?
Ive taken a look at rubySDL for 2D graphics.
Is there anything else to help with structuring games? A guide of some sort perhaps?

Anyhow, good luck with making them games and I hope to be with you on the big market soon!
/Greetings from Sweden, MDH (university) in Västerås.

Reply

Luke101 May 25, 2007 at 7:29 am

If you want to learn ruby quickly I have a Ruby Tutorial that’s written specifically for new programmers that want to learn ruby.

Reply

Leave a Comment

Previous post:

Next post: