-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.html
47 lines (41 loc) · 1.42 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
<!-- This file is based on the samples at https://doc.babylonjs.com/start/chap1/first_app -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Flying Cube Game</title>
<style>
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
<script src="https://cdn.babylonjs.com/babylon.js"></script>
<script src="https://cdn.babylonjs.com/gui/babylon.gui.min.js"></script>
<script src="https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
</head>
<body>
<canvas id="renderCanvas" touch-action="none"></canvas>
<!-- touch-action="none" for best results from PEP -->
<!-- <script type="module" src="main.js"></script> -->
<script src="src/constants.js"></script>
<script src="src/state-manager.js"></script>
<script src="src/game-object.js"></script>
<script src="src/barrier.js"></script>
<script src="src/player.js"></script>
<script src="src/mainmenu.js"></script>
<script src="src/hud.js"></script>
<script src="src/scene.js"></script>
<script src="src/game.js"></script>
</body>
</html>