libgosu

Ruby: Running Gosu game from a web browser

为君一笑 提交于 2019-12-24 11:54:18
问题 So what I want to do is this: User visits www.website.com There is a button called "play game" Gosu game (which I have already written) will launch the window. User can play game. so maybe it'll look like this: <button type = "submit" > PLAY GAME </button> <iframe><%= MyGameFile.rb.execute %></iframe> <!-- Iframe will contain the window of the Gosu app --> I've been reading around and I've seen that there may be a way to trick it into running by using Jruby. I've also thought that maybe it