+ 8

I started game programming, and I have a question.

How can I run an .rb (Ruby) script into Linux? Is there a thingy like you run in the Linux like: run game.rb in libs/games/rb

21st Mar 2017, 12:04 PM
MrCoder
MrCoder - avatar
6 ответов
+ 5
No I meant I have a Ruby script and it's saved on Storage/libs/games, the question is How can I run it into Linux?
21st Mar 2017, 11:39 PM
MrCoder
MrCoder - avatar
+ 5
@Huan Wang @Ildemar Urrieta Alright I'll try to do it :D thanks :D
22nd Mar 2017, 2:06 AM
MrCoder
MrCoder - avatar
+ 2
Did you try to do it like in Windows ("ruby game.rb")?
21st Mar 2017, 2:42 PM
Mogens Meißner
+ 2
What do you mean by running a ruby script into linux? It's much easier to run a ruby script in linux than in windows. You want to write script in windows then run it in linux? Ithink it's also very easy to do that. So I can't get your point.
21st Mar 2017, 3:17 PM
Steven Wang
Steven Wang - avatar
+ 1
So I think you can add /path/to/your/script to the PATH var, or use a symbolic link. The more interesting way is to build your own gem since you organize your scripts in a standard way. You just build it, install it, then you know how to use it.
22nd Mar 2017, 1:39 AM
Steven Wang
Steven Wang - avatar
0
Just do "ruby game.rb" in your location of the game
1st Apr 2017, 9:31 PM
EndlezzPlay
EndlezzPlay - avatar