![]() |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
Hi, hope you guys find it usefull.
i just made it 5min ago. http://www.wca.com.ve/silent/C4GeodatamapENG.jpg |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
great share thanks
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
=0 geniaaaaaaaaaaaaaaaalll
![]() gracias ![]() thanks very much
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
Post a pic of it from the editor?
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jan 2006
Posts: 277
|
Really, thnx...greate
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
nice work and thanks :]
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Jan 2006
Posts: 281
|
thx for the share!
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2006
Posts: 158
|
Code:
<?php
require_once(DB interface);
require_once(Some configs);
$DB = new database connection;
// configure map dimension here
$worldMap = array(
'startX' => 16,
'startY' => 10,
'lastX' => 26,
'lastY' => 26,
);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>World map</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>
<body><table class="worldMap">
<?php
for($y = $worldMap['startY']; $y <= $worldMap['lastY']; $y++)
{
print("<tr>\n");
for($x = $worldMap['startX']; $x <= $worldMap['lastX']; $x++)
{
if(file_exists(sprintf('img/%02d_%02d.png', $x, $y)))
{
$content = "X: {$x} Y: {$y}
\n";
// Fetch and paste some data from DB to map
printf(' <td><div class="mapTile" style="background-image: url(\'img/%02d_%02d.png\');"><div>%s</div></div></td>
', $x, $y, $content);
}
else
{
print('<td></td>');
}
}
print("</tr>\n");
}
?>
</table>
</body>
</html>
http://www.l2aw.ru/shadows/HDGE/map/ |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|