Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (611)
Games in Android Showcase (172)
games submitted by our members
Games in WIP (657)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  MMORPG help!  (Read 3901 times)
0 Members and 1 Guest are viewing this topic.
« Posted 2007-09-01 09:23:54 »

I was just wondering, how does an MMORPG relate the items in the 3D universe to the abstract pieces of code called objects? For example, let's say I have a cube on the ground in the 3D universe. And "cube" is worth 10 dollars at the store. So, "cube" would have a variable named "value" and it's value would be 10. Now, when I write the code for the object itself, where would I put the 3D code? I mean, what relates the code to the otherwise random cube on the screen? I mean, is there a piece of code inside my "cube" class that says "The cube on the screen is related to this object." There may be a very simple answer to this question, I don't know. It's very late (early?) here and maybe I'm just tired, but I thought I'd post anyway. Thanks! ^_^
Offline cylab

JGO Wizard

Medals: 89

« Reply #1 - Posted 2007-09-01 12:43:09 »

It depends on the design of your game. You will probably want to separate the entities from the graphical representation. In your example this would mean, you have a "Crate" class (the entity) that has the value property and a "Cube" class (the representation) that has an appearance and is for displaying the Crate on screen. Depending on what you want to do with this objects either the Crate needs a reference to the Cube or the Cube to the Crate ... or both to each other.

The problem is, that this kind of question is about software design, which is a field you need instinct, knowledge and experience (try looking at other's source code and understand the concepts)

I would advice you to buy some good books. I heard Killer Game Programming in Java might be a good headstart.

Mathias - I Know What [you] Did Last Summer!
« Reply #2 - Posted 2007-09-01 19:25:04 »

Yes, I've been eyeing that book for a while now. Tongue But unfortunately, money is tight right now, so I've been trying to do things on my own.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kaosnkorruption

Senior Newbie

« Reply #3 - Posted 2007-09-01 19:57:24 »

I would suggest learning quite a bit more about Object Oriented Programming, as your other thread in the Newless Clubies section would indicate your knowledge is rather lacking at the moment.  Before you can jump into any kind of programming, (or try to create a MMORPG) you really need to understand, at the very least, the basic mechanics of programming.  You can't jump from the Hello World application to a MMORPG.
« Reply #4 - Posted 2007-09-01 21:40:17 »

I haven't been trying to make an MMORPG, just see if I could reproduce parts of other ones; just as practice. You know, for fun.
Offline keldon85

Senior Devvie

Medals: 1

« Reply #5 - Posted 2007-09-02 08:18:30 »

Stop worrying about the MMORPG; RPG's are hard enough already. In fact it takes a team of professionals with years of experience several months to get any *real* progress, so first learn programming and worry about this later. Just keep the MMORPG as an end goal to all of this.

Offline dapy
« Reply #6 - Posted 2007-09-02 10:57:30 »

The author of Killer Game Programming in Java has generously made draft versions of the book's chapters available online here.
« Reply #7 - Posted 2007-09-03 05:04:16 »

I know it's probably almost defnitely never going to become an actual game, but without any hope or optimism, how do you think other games were created? If I just say, "I'm never going to be able to do this." then of course I won't, because I don't have the determination and persistence. Sometimes you need to shoot for the sky. I'm not trying to (I'm aiming more at the horizon Tongue) but I'm just messing around with 3D and stuff like that. YES, I know I post a lot of n00by questions in the Newless Cluebies forum, but those are things that always bugged me that I had to ask, especially that return statement one. I never really though about it until now, so I asked.
Offline cylab

JGO Wizard

Medals: 89

« Reply #8 - Posted 2007-09-03 07:51:56 »

Maybe our statements weren't clear. We don't want you to loose your hope and optimism, we just want to guide you to an easier path. It would be so much more rewarding for you to start out with simple games and actually finish them to build enough experience to really get a bigger project going than to poke at a nut that's too hard to crack (at the moment).

Mathias - I Know What [you] Did Last Summer!
Offline erikd

JGO Ninja

Medals: 16
Projects: 4
Exp: 14 years


« Reply #9 - Posted 2007-09-03 12:39:38 »

Definitely check out the online chapters of Killer Game Programming in Java, as suggested. It's excellently written, and  will answer many of your questions, although it's obviously not a MMORPG tutorial.

Although I agree that beginning with a 3D MMORPG is quite a safe bet of never finishing it, there's nothing wrong with still going ahead to learn about the techniques involved in creating such a thing. It seems you're realistic enough to realize that its impossible to pull off by yourself (or probably anyone by himself).

If you just want to learn about 3D MMORPGs, by all means go ahead. But you'll have to get way beyond the basic constructs of a language before even considering to start writing the MMORPG, because the language is the easy part.
If you actually want to write a game, then start with Asteroids or something Smiley

I wouldn't even consider writing a 3D MMORPG myself, because I know it's impossible for me to do alone and I'd just get frustrated. It'd be like attempting to build a space shuttle just after having learned how to replace spark plugs in a car.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JAW

Senior Devvie

Medals: 2

« Reply #10 - Posted 2007-09-19 13:08:34 »

Have no money? I bought my books second hand, its cheaper. Totally no money? Well I know a good basic java book online, but its in german. But I bet you can find a book in english, too.

Second, try this:
Its completely online and better than nothing. But its advanced, you need basic Java knowledge first.

Additionally: There are some Java Programming Tutorials for simple games like pong or some space arcade stuff. They come in chapters and are easy to learn. I dont know the URLs but you can find them using google. At least spent some time researching.

In the end, YOU have to make a little game. Anything. Chess, Pong, a little Jump n Run or Shoot em Up. Anything. You will have a lot of questions answered by then. And there is no big difference between a spaceship bitmap on the screen and a 3d model. The basics remain similar.

Generally, your cube will have some sort of display information like a model, textures, etc. It will have a position, direction, maybe speed. Your rendering engine will then render the cube dependent on its position, direction and the current camera position. Object and visualisation have to be seperate. You object only contains object relevant information. In fact the cube object does not care much how it will be brought on the screen.

Offline cylab

JGO Wizard

Medals: 89

« Reply #11 - Posted 2007-09-20 09:28:36 »

But unfortunately, money is tight right now, so I've been trying to do things on my own.
I don't know where you live, but maybe you could lend a book in your public library?

Mathias - I Know What [you] Did Last Summer!
Offline nomukun1138

Innocent Bystander

« Reply #12 - Posted 2007-12-02 00:05:35 »

Yes, the library is a good suggestion.  I've found many programming books at different experience levels, including Killer Java Game Programming.  It was a 2004 edition, if I remember correctly.  I live near Seattle, but I found great books even when I lived in Oklahoma City.  Most major libraries will ship books from anywhere in the area, so check the online catalogs.  There are also online tutorials (OOP, frames, threads, GUI at Sun's site, algorithms at Top Coder, and I think there are some here at JavaGaming.)
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Roquen (12 views)
2015-08-29 11:30:54

GamerC4 (23 views)
2015-08-22 20:38:50

GamerC4 (22 views)
2015-08-22 20:37:18

GamerC4 (26 views)
2015-08-22 20:37:01

Kefwar (30 views)
2015-08-22 18:07:24

GamerC4 (24 views)
2015-08-22 01:00:24

GamerC4 (37 views)
2015-08-22 01:00:17

GamerC4 (24 views)
2015-08-22 00:57:35

GamerC4 (25 views)
2015-08-22 00:56:59

BurntPizza (29 views)
2015-08-21 01:38:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!