-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (41 loc) · 1.66 KB
/
index.html
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
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<style>
canvas {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
}
h1 {
text-align: center;
font-family: "Arial";
}
p {
text-align: center;
font-family: "Arial";
}
</style>
<head>
<meta charset="utf-8">
<title>A*</title>
<script type="text/javascript" src="./scripts/gameengine/assetmanager.js"></script>
<script type="text/javascript" src="./scripts/gameengine/timer.js"></script>
<script type="text/javascript" src="./scripts/gameengine/gameengine.js"></script>
<script type="text/javascript" src="./scripts/gameengine/util.js"></script>
<script type="text/javascript" src="./scripts/gameengine/boundingbox.js"></script>
<script type="text/javascript" src="./scripts/gameengine/animator.js"></script>
<script type="text/javascript" src="./scripts/gameobject/gameobject.js"></script>
<script type="text/javascript" src="./scripts/gameobject/gameobjectbb.js"></script>
<script type="text/javascript" src="./scripts/gameobject/player.js"></script>
<script type="text/javascript" src="scripts/gameobject/AStarAgent.js"></script>
<script type="text/javascript" src="scripts/gameobject/RectangleObstacle.js"></script>
<script type="text/javascript" src="./scripts/main.js"></script>
</head>
<body>
<h1>A* algorithm (gridless)</h1>
<p>LeftMouse: Place/Remove Blocks<br>RightMouse: Start A* (hold to preview)</p>
<canvas id="gameWorld" width="1900" height="1000" style="background: white; border: 1px solid black" tabindex="0" autofocus></canvas>
</body>
</html>