Location: PHPKode > scripts > Space maps > space-maps/example.php
<?
// Every system may use up to 16 pixels. 
// So a 500x500x500 map will always have space for up to 31 sectors
// It may be able to hold more up to 62 sectors on a "perfect" scenario.
// the safe calculation for square maps is side / 16 and the highiest possible is side / 8
// the script will try to run even with higher numbers but will probably timeout.

include("map.php");
$map = new starmap();
$map->font = "font.ttf";
$map->width = 500;
$map->height = 500;
$map->axis = 500;
$map->sectors = 32;
$map->havegates = true;
$map->gatesdistance = 150;
$map->createMap();




header("Content-Type: image/jpeg");
echo $map->showMap();
Return current item: Space maps