[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

2D MMORPG

Nick Nick

8/26/2007 12:14:00 PM

I've been trying to find out what programming language would be best for
creating a MMORPG game/engine. After some responses elsewhere I've
decided to choose between Java and Ruby.
I recently posted a question asking which is faster. Now I want to know
which would be better for creating a 2D MMORPG game / engine. By 2D I
mean using the arrow keys to walk around and attacking with a certain
key etc... Pretty good graphics for a 2D game (RMXP graphics, if you
know what I mean). Along with the role playing feel with skills and
quests. So I'd like to know whether Ruby could do this or am I better
off using Java? Thanks for any help.
--
Posted via http://www.ruby-....

22 Answers

John Joyce

8/26/2007 5:34:00 PM

0


On Aug 26, 2007, at 7:14 AM, Nick el wrote:

> I've been trying to find out what programming language would be
> best for
> creating a MMORPG game/engine. After some responses elsewhere I've
> decided to choose between Java and Ruby.
> I recently posted a question asking which is faster. Now I want to
> know
> which would be better for creating a 2D MMORPG game / engine. By 2D I
> mean using the arrow keys to walk around and attacking with a certain
> key etc... Pretty good graphics for a 2D game (RMXP graphics, if you
> know what I mean). Along with the role playing feel with skills and
> quests. So I'd like to know whether Ruby could do this or am I
> better
> off using Java? Thanks for any help.
> --
> Posted via http://www.ruby-....
>
There are libraries like rubygame and gosu. Gosu is probably more
cross-platform, but I think it is designed to run on the local
machine. Still learning to toy with it myself, so don't quote me on
that. Other than that, for multi-player across the web, you might
need to use DRb (distributed ruby library).

You might look further into the Java area if you have Java skills,
since there may be more already available to save you some work. But
if you want to use Ruby on the backend, JRuby is a Java
implementation of a Ruby interpreter.


Bill Kelly

8/26/2007 11:03:00 PM

0


From: "Nick el" <schaefer88@gmail.com>
>
> I've been trying to find out what programming language would be best for
> creating a MMORPG game/engine. After some responses elsewhere I've
> decided to choose between Java and Ruby.
> I recently posted a question asking which is faster. Now I want to know
> which would be better for creating a 2D MMORPG game / engine. By 2D I
> mean using the arrow keys to walk around and attacking with a certain
> key etc... Pretty good graphics for a 2D game (RMXP graphics, if you
> know what I mean). Along with the role playing feel with skills and
> quests. So I'd like to know whether Ruby could do this or am I better
> off using Java? Thanks for any help.

If you've never programmed a game before, I'd recommend grabbing a
2D game library like Gosu[1] and writing a very, very simple single-
player game as your first project.

Something super simple, where you don't care how good the graphics
look yet, and you don't have to worry about any multiplayer networking
code, etc.

For example, something like Ultima from 1986:
http://en.wikipedia.org/wiki/Image:Ult...

Ruby would be a fine choice for developing a game like that.

Again if you've never programmed a game before, you'll be doing yourself
a tremendous favor by writing a very simple single player game first, before
trying to tackle an MMORPG.


[1] http://code.google.c...
Gosu is a 2D game development library for Ruby and C++. It supports
hardware accelerated graphics.


Hope this helps,

Regards,

Bill



Stefan Rusterholz

8/26/2007 11:52:00 PM

0

John Joyce wrote:
> On Aug 26, 2007, at 7:14 AM, Nick el wrote:
>
>> quests. So I'd like to know whether Ruby could do this or am I
>> better
>> off using Java? Thanks for any help.
>> --
>> Posted via http://www.ruby-....
>>
> There are libraries like rubygame and gosu. Gosu is probably more
> cross-platform, but I think it is designed to run on the local
> machine. Still learning to toy with it myself, so don't quote me on
> that. Other than that, for multi-player across the web, you might
> need to use DRb (distributed ruby library).

Rubygame runs on all three major platforms: Win, OS X and linux. Though
in the past there have been some troubles compiling it on win, mainly
due to no maintainer using it as the main OS.
Personally I favorize rubygame as the maintainer very actively develops
it.

Regards
Stefan
--
Posted via http://www.ruby-....

John Joyce

8/27/2007 12:18:00 AM

0


>
> Rubygame runs on all three major platforms: Win, OS X and linux.
> Though
> in the past there have been some troubles compiling it on win, mainly
> due to no maintainer using it as the main OS.
> Personally I favorize rubygame as the maintainer very actively
> develops
> it.
>
> Regards
> Stefan
>
Well, that's good to hear but their web site must be woefully out of
date!
It isn't very informative.
neither is the RDOC on it.
I'd love to try it out, but it looked pretty tutorial-less.

I will look at it again after I play with gosu more first.

Stefan Rusterholz

8/27/2007 12:29:00 AM

0

John Joyce wrote:
>> Stefan
>>
> Well, that's good to hear but their web site must be woefully out of
> date!
> It isn't very informative.
> neither is the RDOC on it.
> I'd love to try it out, but it looked pretty tutorial-less.
>
> I will look at it again after I play with gosu more first.

No RDOC? http://rubygame.sourc.../... - I think there it
is. Linked from the frontpage ( http://rubygame.sourc... ) too
(the old http://rubygame... links to that page for quite some
time now). But agreed, the website isn't very informative. But since IRC
is more my medium of choice and he's there regularly that was never much
of a concern to me :)
Btw., I didn't mean to say gosu wasn't well maintained. It's just that
rubygame seemed to me to make more progress and overall looked more
promising. I hope I didn't cause any hard feelings. If so, my sincere
apologies, it was unintended.

Regards
Stefan
--
Posted via http://www.ruby-....

Bill Kelly

8/27/2007 1:33:00 AM

0


From: "Stefan Rusterholz" <apeiros@gmx.net>
>
> Btw., I didn't mean to say gosu wasn't well maintained. It's just that
> rubygame seemed to me to make more progress and overall looked more
> promising. I hope I didn't cause any hard feelings. If so, my sincere
> apologies, it was unintended.

I have not yet used either RubyGame or Gosu. The reason Gosu looked
attractive to me is that it uses 3D hardware acceleration to render its 2D
graphics. My experience with SDL based libraries is that they seem to
primarily be software-rendered.

Hardware acceleration is very important to me; but it might not be for
everyone.


Regards,

Bill




Stefan Rusterholz

8/27/2007 2:02:00 AM

0

Bill Kelly wrote:
> From: "Stefan Rusterholz" <apeiros@gmx.net>
>>
>> Btw., I didn't mean to say gosu wasn't well maintained. It's just that
>> rubygame seemed to me to make more progress and overall looked more
>> promising. I hope I didn't cause any hard feelings. If so, my sincere
>> apologies, it was unintended.
>
> I have not yet used either RubyGame or Gosu. The reason Gosu looked
> attractive to me is that it uses 3D hardware acceleration to render its
> 2D
> graphics. My experience with SDL based libraries is that they seem to
> primarily be software-rendered.
>
> Hardware acceleration is very important to me; but it might not be for
> everyone.
>
>
> Regards,
>
> Bill

SDL is supposed to use the OSes libs to render the stuff. But Rubygame3
moves away from SDL actually. It goes towards OpenGL and OpenALSA. It
has other interesting developments in it too, e.g. a collision framework
for the primitive shapes.

Regards
Stefan
--
Posted via http://www.ruby-....

zuzu

8/27/2007 2:57:00 AM

0

sorry if this is bad juju on the Ruby list, but if you're going to
program something heavily concurrent (e.g. MMORPG, IRC server, etc.),
did you give Erlang a look? Joe Armstrong's new book published by the
Pragmatic Programmers is extremely approachable.

you could still use Ruby for a client, especially if you want to
leverage Ruby 2D graphics APIs (as opposed to pure ASCII / tty ala
NetHack / Rogue / Cave Adventure).

On 8/26/07, Nick el <schaefer88@gmail.com> wrote:
> I've been trying to find out what programming language would be best for
> creating a MMORPG game/engine. After some responses elsewhere I've
> decided to choose between Java and Ruby.
> I recently posted a question asking which is faster. Now I want to know
> which would be better for creating a 2D MMORPG game / engine. By 2D I
> mean using the arrow keys to walk around and attacking with a certain
> key etc... Pretty good graphics for a 2D game (RMXP graphics, if you
> know what I mean). Along with the role playing feel with skills and
> quests. So I'd like to know whether Ruby could do this or am I better
> off using Java? Thanks for any help.
> --
> Posted via http://www.ruby-....
>
>

Bill Kelly

8/27/2007 3:15:00 AM

0


From: "Stefan Rusterholz" <apeiros@gmx.net>
>
> SDL is supposed to use the OSes libs to render the stuff.

Yeah. It's always been relatively slow for me, though, at least on Windows.


> But Rubygame3
> moves away from SDL actually. It goes towards OpenGL and OpenALSA. It
> has other interesting developments in it too, e.g. a collision framework
> for the primitive shapes.

Oh, that's good to know! I had been looking at the "version 2" docs and they only
mentioned SDL.


Thanks,

Bill









John Joyce

8/27/2007 5:27:00 AM

0


On Aug 26, 2007, at 7:29 PM, Stefan Rusterholz wrote:

> John Joyce wrote:
>>> Stefan
>>>
>> Well, that's good to hear but their web site must be woefully out of
>> date!
>> It isn't very informative.
>> neither is the RDOC on it.
>> I'd love to try it out, but it looked pretty tutorial-less.
>>
>> I will look at it again after I play with gosu more first.
>
> No RDOC? http://rubygame.sourc.../... - I think there it
> is. Linked from the frontpage ( http://rubygame.sourc... ) too
> (the old http://rubygame... links to that page for quite some
> time now). But agreed, the website isn't very informative. But
> since IRC
> is more my medium of choice and he's there regularly that was never
> much
> of a concern to me :)
> Btw., I didn't mean to say gosu wasn't well maintained. It's just that
> rubygame seemed to me to make more progress and overall looked more
> promising. I hope I didn't cause any hard feelings. If so, my sincere
> apologies, it was unintended.
>
> Regards
> Stefan
> --
> Posted via http://www.ruby-....
>
perhaps a slight misunderstanding. My post could be read to mean 'no
RDOC' but what I meant was that the RDOCs were not too informative
either. Unfortunately, I've never much liked IRC, but I am eager to
get to rubygame after I toy around a bit more with gosu. So far so
good. I finished the Gosu tutorial for Ruby and in the process
changed a lot of things to fit my own visual design, while keeping
with the tutorial's main game structure. gosu's use of hardware
acceleration is pretty good.
If rubygame is using opengl, then it should also take advantage of
hardware accelleration (at least on OS X, no idea about windows) But
gosu stayed responsive thus far with only the occasional flicker of a
sprite. Now it's just the messy matter of designing something
manageable for one person and building it without too much spaghetti.

No hard feelings about anything! I'm new to any kind of game
development, so I have no idea what would be more or less promising! :)
In my case, however, I'm aiming to just create something nostalgic of
the 80's era of games in order to focus on the game itself, rather
than graphics. I can do graphics well, but that's a distraction from
actual game design.