File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Game Development and the fly likes RPG layout...(role playing game) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "RPG layout...(role playing game)" Watch "RPG layout...(role playing game)" New topic

RPG layout...(role playing game)

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
ok, I realize that you usually would have to have a game programming language/script that would allow you to do the advanced graphics thing.

But I was wondering if I were to approach the design of a "world" in which a character could move around on, how would I go about doing this in java?

I just dont understand I guess the concept of your character being in a small window, but there's a bigger world around you. I don't understand it programming wise that is.

I mean, would you have to make your own coordinate system, and pre-plan every step of the character to know what he/she will see around her?

For example:

say my character is at point 0,0 and at point 30,100 you can see a vague silohuette of a certain mountain.

is this how it would work not only logically but in programming?

I've tried to achieve this in a JFrame, but I dont see how to do it.

If anyone could give me a link or maybe a book that goes over this concept in general, not just java specific, would be awesome.

Thanks a bunch,

Justin Fox

You down with OOP? Yeah you know me!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

I don't have a ton of time right now but just to get you pointed in the right direction trying to achieve a 3D world in a JFrame is going to be a major pain. You'd be better off using a 3D API where all abilities to move around in 3D space is already done for you. Here are a few options. Google them as I am not putting them as links. They are easy to find.


And if it is just 2D you are looking for try something like


[ January 10, 2008: Message edited by: Gregg Bolinger ]
[ January 10, 2008: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Thanks Greg,

I'll definately look into those.

Justin Fox
I agree. Here's the link:
subject: RPG layout...(role playing game)
jQuery in Action, 3rd edition