I am trying to create a hexagon world map for my PHP browser based game strategy. I created a table in my database with the following data in a row: id, type, x, y and occupied. Where type is the type of tiles that are defined in numbers. For example, 1 is grass. The card itself is 25 x 25.
I want to draw a map from the database using interactive fragments and the ability to navigate the map with arrows. I really don't know how to start from this, and any help would be appreciated.
Thanks in advance,
Fabian
I understand that I have to use Javascript with this, but I still don't know how to create arrays to load fragments and coordinates from the database and display them using javascript on the page.
source
share