-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (49 loc) · 1.15 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>famine</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="styles.css" />
</head>
<body>
<script>
const scripts = [
'ui/colors',
'core/config',
'core/constants',
'core/globals',
'core/math',
'core/calculate',
'core/world',
'core/init',
'lib/circle',
'lib/utils',
'lib/line',
'lib/dashed-line',
'lib/rect',
'lib/text',
'objects/tile/grass',
'objects/tile/rock',
'objects/tile/water',
'draw/grid',
'draw/map',
'draw/info',
'draw/selection-area',
'game/map',
'core/dom',
'core/screen',
'core/loop',
];
const doc = new DocumentFragment();
scripts.forEach(file => {
const script = document.createElement('script');
script.src = `${file}.js?v=${Date.now()}`;
script.async = false;
doc.appendChild(script);
});
document.body.appendChild(doc);
</script>
</body>
</html>