Jump to content

Map (X,Y) and Navigation PHP/MYSQL


LeeStrong

Recommended Posts

Hi, I was wondering if anyone knew how to possibly create a worldmap using a database structure like so.. And be able to click arrows (up, down, left, right) on the page to create an offset for x or y?

 

 

Column Explanation

id The number of the field, starts in the top left corner at the coordinate (-400|400) and ends in the bottom right corner at (400|-400)

x X-Coordinate

y y-Coordinate

tid The tribe number. 1 = Roman, 2 = Teuton, 3 = Gaul, 4 = Nature and 5 = Natar

vid Village number

village Village name

uid Player number also known as User-ID

player Player name

aid Alliance number

alliance Alliance name

population The village's number of inhabitants

 

The intended product is a page like the MAP page on Tribal Wars

Link to comment
https://forums.phpfreaks.com/topic/201538-map-xy-and-navigation-phpmysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.