Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

File repl.rb in wrong directory for Intermediate Ruby Primer sample (Windows)

A topic by jhanson9012 created Jun 15, 2020 Views: 262 Replies: 1
Viewing posts 1 to 2

Hello. I found a problem with the Intermediate Ruby Primer tutorial. When I run 'run.bat' in the directory /sample/00_intermediate_ruby_primer, I get the message "Open repl.rb in the text editor of your choice and follow the document", which I expected, but there is no file named 'repl.rb' in that directory, or in /sample/00_intermediate_ruby_primer/app. I navigated to the /mygame/app directory and there was the 'repl.rb' file which walked through several Ruby concepts. I followed the instructions, but nothing happened. I then copied that 'repl.rb' file to /sample/00_intermediate_ruby_primer/app and was then able to successfully follow along. This leads me to believe that /mygame/app is the wrong destination for that file, and instead it should be located at /samples/00_intermediate_ruby_primer/app

If I'm incorrect and I just misread some directions, then this can be disregarded. I'm on Windows and using the latest version of DragonRuby.


But also just to note, this is an incredible tool! Thank you

Hi,
The same issue appears on Mac.
I'm new to ruby and DragonRuby, but to me, it looked as if the repl.rb was an old "thing" and that you no longer have to work on repl.rb but can directly work in main.rb.

Regards,