Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

(Tutorial) Making a spherical world map

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
chronoboy
Into the past with a splash




Joined: 04 Jun 2010
Posts: 162
Location: Canada

PostPosted: Mon Nov 22, 2010 1:00 pm    Post subject: (Tutorial) Making a spherical world map Reply with quote

Do flat worlds or torus shaped worlds get you down? Do you want to build a world map similar to Earth, but for some reason the north and south pole touch in GAME?

For some reason, the Japan people always though the world was shaped like a Torus, and they still do, as they are releasing more games with worlds in this shape.

Until an official feature is added into the map editor, here is your wonderful workaround in the glory that is plotscript:

Set this as your map steps for the world map(s), depending on how many worlds or moons your story has:
Code:

plotscript, sphere world map,x,y,d, begin
  if (y == 0,and,d == north) then, begin
    set hero position (me,map width -- x,y)
    set hero direction (me,south)
  end
  if (y == map height--1,and,d == south) then, begin
    set hero position (me,map width -- x,y)
    set hero direction (me,north)
  end
  if (x == map width--1,and,d == east) then (set hero position(me,0,y))
  if (x == 0,and,d == west) then (set hero position(me,map width--1,y))
end


It's very basic, and should handle vehicles(not tested), but for the most part, it does work and create a world that is similar to real-life standards. Be sure the map width is an even number.

I am actually using this in a future project that I have already begun map design. It will be in theme with traditional JRPGs from the 8-bit area, but will sport a nice spherical world map to explore.
_________________
Current project: Chronoboy Adventures

Website: http://www.chronoboy.com/
Back to top
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Mon Nov 22, 2010 1:35 pm    Post subject: Reply with quote

This is less torus-like, but it isn't even slightly sphere-like. It doesn't deal with the distortion issue.

But I don't know of any way to map a grid of square tiles onto a sphere without problems, except maybe something like "Spherical Mercador Projection" like google maps uses, but that would be quite impractical for the OHR's limited tile engine.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chronoboy
Into the past with a splash




Joined: 04 Jun 2010
Posts: 162
Location: Canada

PostPosted: Mon Nov 22, 2010 2:16 pm    Post subject: Reply with quote

James Paige wrote:
This is less torus-like, but it isn't even slightly sphere-like. It doesn't deal with the distortion issue.


I guess the world map designer could make the upper and lower points smaller, or even make their world map in a somewhat similar image to this:
http://en.wikipedia.org/wiki/File:Air_masses_2.jpg
or
http://en.wikipedia.org/wiki/File:Earthlights_dmsp.jpg

In the end, for what the engine can currently offer, this is as close as we can get. Big grin
_________________
Current project: Chronoboy Adventures

Website: http://www.chronoboy.com/
Back to top
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Mon Nov 22, 2010 2:43 pm    Post subject: Reply with quote

Yeah, it is a reasonable compromise.

I always remember the spherical map issue used to bother me in Uncharted Waters 2 for the SNES, since that was actually earth. They dealt with the problem by blocking the bottom of the map with Antarctica and the top of the map with an ice-cap over the arctic sea-- which is of course perfectly accurate, but it didn't stop be from going all the way around the map trying to find the northwest passage.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chronoboy
Into the past with a splash




Joined: 04 Jun 2010
Posts: 162
Location: Canada

PostPosted: Mon Nov 22, 2010 2:48 pm    Post subject: Reply with quote

That would be an interesting feature to add:

* Wrapping map only east/west
* Wrapping map only north/south

At the moment, map wrapping is well, on each side of the map, perhaps adding a feature like this would be nice. Because that is definitely another way to achieve a sphere-like map, block the top and bottom, or left and right.
_________________
Current project: Chronoboy Adventures

Website: http://www.chronoboy.com/
Back to top
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Mon Nov 22, 2010 5:51 pm    Post subject: Reply with quote

I also liked what Phantasy star did (at least in some of them?). The worlds are flat spaces inside domes, so no wrapping is allowed, but it makes sense in the story.

I also remember once planning an RPG game that took place on a cylinder-shaped world. The map would be long and narrow, but would only allow wrapping in the short direction. I never did get that one past the planning stages.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
satyrisci
~guo~




Joined: 28 Feb 2007
Posts: 73

PostPosted: Mon Nov 22, 2010 9:06 pm    Post subject: Reply with quote

Quote:
I also remember once planning an RPG game that took place on a cylinder-shaped world.


Reminded me of:

http://en.wikipedia.org/wiki/Rendezvous_with_Rama
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group