Advertisement
Guest User

BlackScorp

a guest
Feb 18th, 2010
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. $map = new Map($mapName);
  2.         $map->setDisplaySize(5, 10);
  3.         if(isset($_GET['x']) && isset($_GET['y'])){
  4.             $x = $_GET['x'];
  5.             $y = $_GET['y'];
  6.         }else{
  7.             $x = $attr->posX;
  8.             $y = $attr->posY;
  9.         }
  10.         $map->setStartPositions($x,$y);
  11.         echo '
  12.            <script type="text/javascript">
  13.            var mapName = "'.$mapName.'";
  14.            var mapTiles = '.$map->getMapTiles().';
  15.            var mapObjects = "";
  16.            var mapDisplaySize = new Array('.$map->getDisplaySize().');
  17.            var mapSize = new Array('.$map->getMapSize().');
  18.            </script>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement