I have played with some gosu tutorials to create a simple gosu game using my mac. I followed the instructions in https://www.libgosu.org/ruby.html
My question is: Can a gosu game be set up to run on a website using something like https://github.com/opal/opal-browser using a gem "opal"
Opal compiles the game.rb file but does not add gems. So I get an error, cannot find require file.
I want to set up an index.html page and run the game in a web browser with a button that runs bundle exec ruby game.rb instead of running the file from the console.
This question Ruby: Running Gosu game from a web browser may have asked the same thing but my question is around using Google Native Client tools to solve it.