Sign in to follow this  
blakeage

Ruby for model, Irrlicht engine for view?

Recommended Posts

I'm new to Ruby, and as a way of increasing my knowledge of Ruby I've decided to make a game using the Irrlicht 3D C++ engine. My question is, has anyone done anything like this before? I want to use Ruby for the model (player inventory, game logic) and to control the 3D engine. I know performance is an issue with Ruby, but I'm hoping that if I offload the real performance parts (the 3D stuff)to the C++ engine, I might be able to make it work. Any thoughts?

Share this post


Link to post
Share on other sites
Ruby has a nice C API have a look at the extending Ruby in the Ruby Book....

http://www.rubycentral.com/book/ext_ruby.html

List most languages, C bindings are natural, but C++ is a little unnatural and needs some sort of wrapper code, which generally adds overhead.

As for Ruby's performance issues, they will probably won't be an issue when Ruby 2.x is released. Until then Python clearly has the advantage here, and hence why the games industry has invested a lot of resources into Python, along with Boost.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this