Am incercat sa fac harta isometrica... insa aici ma depaseste pozitionarea ... cum pot umple si cele goluri sa iasa perfect fara goluri tile.. ??
#js
Cod: Selectaţi tot
$(document).ready(function(){
var x,y,x_pos,y_pos,map_draw,offset;
var size_map = 10;
var offset = -((size_map / 2)*0);
for(x=0; x<size_map; x++){
for(y=0; y<size_map; y++){
x_pos = (x * 106);
y_pos = (y * 54) - offset;
map_draw += "<div class='tile_sample' style='position:absolute; left:"+x_pos+"px; top:"+y_pos+"px;'></div>";
}
}
$("#map").append( map_draw );
});
#html
Cod: Selectaţi tot
<div id="map"></div>
#css
Cod: Selectaţi tot
.tile_sample {
width: 106px;
height: 54px;
background: url('http://uploadimage.ro/img.php?image=8269_desert1e_ocaa.png') no-repeat;
}
... astept un ajutor..
Cu stima, Khamoaset!

