Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.12.2005, 17:05   #1
zabbix
Архивный участник
 
Join Date: Aug 2005
Posts: 38
Default map coords

nooblet question: how to translate client coords (/loc) to region coords?
ie 355353 21236 -3732 => 22-24

thanks :roll:
zabbix is offline  
Old 22.12.2005, 18:18   #2
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

all cube have the same size in X & Y (z does not change the region)
and its 32768.

Each 32768, increase the X region (16... 17 ... 18...) same for Y

So, with a division modulo function, you can know where you are
filrip is offline  
Old 22.12.2005, 18:23   #3
zabbix
Архивный участник
 
Join Date: Aug 2005
Posts: 38
Default

k
thanks
zabbix is offline  
Old 22.12.2005, 19:47   #4
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

$geo_x=20+($game_x-$game_x%32768)/32768;
$geo_y=18+($game_y-$game_y%32768)/32768;
hr is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:08.