forked from vonWolfehaus/flow-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (57 loc) · 1.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: #fff;
background: #151515;
overflow: hidden;
width: 100%;
height: 100%;
background-image: url(img/grid_bg.png);
text-align: center;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
canvas {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
}
img {
display: none;
}
span.announce {
display: block;
font-size: 20px;
margin-top: 40px;
}
</style>
<script type="text/javascript" src="scripts/lib/dat.gui.min.js"></script>
<script type="text/javascript" src="scripts/lib/require.js"></script>
</head>
<body>
<canvas id="tilemap"></canvas>
<canvas id="debug"></canvas>
<span class="announce">Shift+click to draw/erase obstacles</span>
<img src="img/tilesprite.png" id="tilesprite">
<script type="text/javascript">
require.config({
baseUrl: "scripts",
});
// data-main does what? ;)
require(['Main', 'scripts/engine/DebugDraw.js', 'scripts/math/Vec2.js', 'scripts/lib/pixi.js', 'scripts/lib/Signal.js',
'scripts/lib/linkedlist.js'], function(Main) {
var game = new Main();
});
</script>
</body>
</html>