Programming Unity Games with Ruby

So, I see that unity supports C #, JS and Boo.

I could study one of them, but I would like to make a “compiler” or something similar that would allow me to write ruby ​​code and output JS code or create a layer that can be read by the Unity compiler.

This is even an opportunity. I am willing to spend many hours on this and have a good experience.

+4
source share
4 answers

If your question is actually “how do I compile Ruby for JavaScript” then this is easier to answer:

Opal: Ruby to JavaScript Compiler

. "" , .

+1

#, C, , Ruby to Unity . , - . , .

0

"play my code". " Ruby JavaScript", Ruby Game , , JS.

http://www.playmycode.com/build/edit/6172

0

Unity 3d Javascript, , javascript , Unity UnityScript, Boo, https://github.com/bamboo/unityscript

, ruby ​​ javascript, Opal, JavaScript, UnityScript, :

  • Javascript - , UnityScript - .
  • UnityScript JScript.NET, Javascript.

http://wiki.unity3d.com/index.php?title=UnityScript_versus_JavaScript

, - IronRuby, Ruby, #, - CLR, Unity .

I did a similar project with python that uses IronPython ( https://github.com/cesardeazevedo/Unity3D-Python-Editor ), it is still very limited, so you still have to call python code with C #, but it works and there is an interpreter that can help you in your development if you want to create thousands of game objects using simple python commands.

0
source

Source: https://habr.com/ru/post/1523691/


All Articles