If i understand what your saying correctly. then no.
they are just absolute positioned divs referencing from the relative 'map' div.
i did start working on using objects and placing more boxes in there last night. currently in its basic form i have a table like this.
etc.
then when it draws the map out.
it grabs the coords of the objects / players, does a little math on them to turn them into the top & left position before drawing them in.
so eventually. you have somehting a little like this,
Code: Select all
<div style="position:relative; width:200; height:200> // this is the map
<div style="position:absolute; left:40px; top: 120px; width:10px; height:10px" id="user_1"><div>// user 1
<div style="position:absolute; left:90px; top: 160px; width:10px; height:10px" id="user_2"><div>// user 2
</div>
when i get around to it and start manipulating the databse when you move, it will check to see if that the coords you move into, is already occupied by an item (maybe another player, im not sure yet... could cause problems if there is a high amount of players) before moving the player and setting the database.
i will update the current map with the one working from the database later today once i have messed about with it more, and hopfully give you a better idea on how it runs
