forked from t0mbs/PHPMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (35 loc) · 1.12 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
foreach (glob("src/*.php") as $class_file) {
require $class_file;
}
foreach (glob("src/landmarks/*.php") as $class_file) {
require $class_file;
}
foreach (glob("tests/*.php") as $class_file) {
require $class_file;
}
function dirtyDebug($thing) {
echo "<pre>".print_r($thing, true)."</pre>";
}
function debugLog($thing) {
file_put_contents('debug_log', json_encode($thing, JSON_PRETTY_PRINT));
}
$rand = new MapGenerator(10, 10);
$rand->randomMap();
?>
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="functions.js"></script>
</head>
<div id="canvasWrapper">
<canvas id="mainCanvas" height="500" width="500"></canvas>
<canvas id="canvasOverlay" height="500" width="500"></canvas>
</div>
<div id="sideBar">
<h1>Welcome to Mapper! (beta)</h1>
<div class="dynamicContent">
</div>
</div>