How can i convert x-y position to tile x-y for isometric tile?
I can draw my map according to the formula on Drawing Isometric game worlds . But how can i find the x-y of one tile according to it's position on map layer div? For being clear, my tile's left style is 1036px and top style is 865px. According to those css properties how can find the tile's x and y position according to map? Tile width is 200 and height is 100. Many Thanks. My javascript code is like that: this.drawTiles = function(min_x, max_x, min_y, max_y) { if (min_x < 0) min_x = 0; if (min_y < 0) min_y = 0; if (max_x < 0) max_x = thisObj.MAXSIZE; if (max_y < 0) max_y = thisObj.MAXSIZE; if