 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Mon Nov 22, 2010 1:00 pm Post subject: (Tutorial) Making a spherical world map |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Nov 22, 2010 1:35 pm Post subject: |
|
|
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 |
|
 |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Nov 22, 2010 2:43 pm Post subject: |
|
|
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 |
|
 |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Mon Nov 22, 2010 2:48 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Nov 22, 2010 5:51 pm Post subject: |
|
|
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 |
|
 |
satyrisci ~guo~

Joined: 28 Feb 2007 Posts: 73
|
|
Back to top |
|
 |
|
|
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
|