Forums Archived

The forums are being archived. See this topic for more information.

Framework for web-based games?

The place for sharing stuff that's not really about Rubygame, but may be of interest to other Rubygame users!

Framework for web-based games?

Postby Sonja » Thu Oct 22, 2009 2:14 am

To make a web-based game, would one use something like jruby with javafx or java web start ? Or maybe IronRuby with Silverlight? Or HotRuby with Flash? I'm currently learning Ruby so I can eventually make some sort of web-based game.

Sonja
Sonja
 
Posts: 8
Joined: Tue Oct 13, 2009 2:56 am

Re: Framework for web-based games?

Postby shawn42 » Thu Oct 22, 2009 4:08 pm

I think it kind of depends on what kind of game you want to make. Are you thinking about just using ruby for the backend? Or is your whole game going to be on the client side in the browser, in which case... you should probably go learn flash.

Just my two cents.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Framework for web-based games?

Postby Sonja » Thu Oct 22, 2009 7:45 pm

Well I was hoping I wouldn't have to learn Flash. :) Like, maybe I could use HotRuby or RubyJS or something. Or maybe I actually have to learn Flash. :)
Sonja
 
Posts: 8
Joined: Tue Oct 13, 2009 2:56 am

Re: Framework for web-based games?

Postby jacius » Fri Oct 23, 2009 3:23 am

I've been wishing for a long time of a way to use Ruby in a browser in place of JavaScript. But, it doesn't seem likely that will happen anytime soon, so we have to use stuff like RubyJS or HotRuby instead. Oh well.

In theory, you (or someone) could create a Ruby library that works with RubyJS to interface with a <canvas> element or SVG to do drawing, etc. It could be called RubygameJS. :lol:
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm

Re: Framework for web-based games?

Postby Sonja » Fri Oct 23, 2009 2:13 pm

Maybe something like this http://github.com/jedediah/prettyscript can be used to make JS look and feel like Ruby.
Sonja
 
Posts: 8
Joined: Tue Oct 13, 2009 2:56 am

Re: Framework for web-based games?

Postby blue-wiz » Sat Jul 24, 2010 7:22 pm

I know this is a bit late, but you could make an mmo with ruby on rails, websockets and gamequery. But you'd need to know javascript and ruby on rails for that and the people playing will need chrome or safari at this time! Maybe you could mix it with prettyscipt?
blue-wiz
 
Posts: 12
Joined: Mon Jun 28, 2010 4:27 pm

Re: Framework for web-based games?

Postby Sonja » Sat Jul 24, 2010 7:24 pm

In the end I decided to learn JavaScript and use it for most of my game. ("The right tool for the right job" yadda yadda) At some point I'll add Ajax to the game and server-side stuff in Ruby to make the game talk to the server to save data or whatever.

A very early prototype: http://kisa.ca/cc/
Sonja
 
Posts: 8
Joined: Tue Oct 13, 2009 2:56 am

Re: Framework for web-based games?

Postby cavygalaxy » Sun Oct 24, 2010 10:14 pm

shawn42 wrote:you should probably go learn flash.

but flash costs MUNNY!!!
$$$$$
seriously though, Adobe Flash, the only program capable of making dynamic flash games, costs 700 bux.
Cannibal Troll
A troll that trolls other trolls, thus making the internet a better place
User avatar
cavygalaxy
 
Posts: 18
Joined: Tue Oct 27, 2009 2:35 am

Re: Framework for web-based games?

Postby shawn42 » Mon Oct 25, 2010 12:50 pm

You can develop flash with open source tools for free. Take a look at FlashPunk or Flixel.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Framework for web-based games?

Postby brandon » Thu Nov 04, 2010 2:32 pm

Or instead of flash, how about HTML5? Some say they are rapidly becoming equally matched, as observed by this:

http://labs.codecomputerlove.com/FlashVsHtml5/
brandon
 
Posts: 9
Joined: Wed Mar 10, 2010 7:07 pm


Return to Other Stuff / Off Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron