Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming Unity Games with Ruby

So I see that unity has the support for c#, JS and Boo.

I could learn one of these but I would like to make a 'compiler' or something similar that would let me write ruby code and either output JS code or make a layer that could be read by the Unity compiler.

Is this even a possibility. Im willing to invest many hours in this and have a fair bit of experience.

like image 606
joncodo Avatar asked Jan 25 '14 12:01

joncodo


People also ask

Can you code games with Ruby?

Vim, Emacs or Sublime are all good enough to write code, just have some good plugins that support Ruby, and you're set. If you really feel you need an IDE, which may be the case if you are coming from a static language, you can't go wrong with RubyMine.

Can you build games with Ruby?

Don't expect to write highly-performant, professional, commercial, 3D games with Ruby, but Ruby is a great language to use when learning game development concepts. Gosu is the most popular (and actively maintained) library for writing 2D games in Ruby.

Can you code a game in Unity?

Unity allows you to import and assemble assets, write code to interact with your objects, create or import animations for use with an advanced animation system, and much more.

Does Unity games need coding?

Create in Unity without code It's true that most of the interactive content you create in Unity relies on text-based programming. Unity supports the C# programming language, and there are two main areas that need to be understood: logic and syntax.


1 Answers

If your question is actually "how do I compile Ruby to JavaScript" then that's easier to answer:

Opal: Ruby to JavaScript compiler

However, you're going to be mucher better off learning one of the supported languages. It's very hard to debug "your" code when what's running is a paraphrasing of the code in another language.

like image 125
David-SkyMesh Avatar answered Nov 10 '22 03:11

David-SkyMesh