<?php
// Generate Map
// Version 0.01
class MapGenerator{
var $width;
var $height;
var $out;
function makeMap($width,$height){
$y=0;
$x=0;
while($y
while($x
$map[$y][$x] = 0;
$x++;
}
$y++;
$x=0;
}
//$map[1][1] = 1; // Make the top left corner.
return $map;
}
}
$bsg = new MapGenerator();
print_r(array_values($bsg->makeMap(5,5)));
?>
That totally doesn't work properly.