Voila un script normal qui bug... Et je ne comprend pas depuis des heures
Code PHP :
<?php
for ($y=$y_debut;$y<=$y_fin;$y++) {
for($x=$x_debut;$x<=$x_fin;$x++) {
for ($yy=0;$yy<=7;$yy++)
{
for($xx=0;$xx<=7;$xx++)
{
$iX = (($yy-$xx) * (55));
$iY = ((($xx+$yy)/2) * (55));
}
}
echo'<div style=" position: absolute; left: '.$iY.'px;>'.$x.'</div>';
echo'<div style=" position: absolute; top: '.$iX.'px;>'.$y.'</div>';
if($x==$posx && $y==$posy)
echo '<div style=" position: absolute; left: 400px; top: 400px; "><img src="http://img376.imageshack.us/img376/9562/isosp1.png" alt="carré" style="top:'.$iY.'px; left:'.$iX.'px; position:absolute;"/></div>';
else
if(!empty($TabMAP[$x][$y]))
echo '<div style=" position: absolute; left: 400px; top: 400px; "><img src="http://img376.imageshack.us/img376/9562/isosp1.png" alt="carré" style="top:'.$iY.'px; left:'.$iX.'px; position:absolute;"/></div>';
else
echo '<div style=" position: absolute; left: 400px; top: 400px; "><img src="http://img386.imageshack.us/img386/8008/isooy0.png" alt="carré" style="top:'.$iY.'px; left:'.$iX.'px; position:absolute;"/></div>';
}
}