-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·87 lines (80 loc) · 4.29 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<title>Plane and Simple</title>
<meta charset="UTF-8">
<!-- ThreeJS stuff -->
<script type="text/javascript" src="js/three/three.r96.js"></script>
<script type="text/javascript" src="js/three/MTLLoader.js"></script>
<script type="text/javascript" src="js/three/OBJLoader.js"></script>
<script type="text/javascript" src="js/three/THREEx.KeyboardState.js"></script>
<!-- CannonJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/cannon.js/0.6.2/cannon.js"></script>
<!-- External libraries -->
<script type="text/javascript" src="js/external-libraries/perlin.js"></script>
<script type="text/javascript" src="js/external-libraries/stats.min.js"></script>
<script type="text/javascript" src="js/external-libraries/ColladaLoader.js"></script>
<!-- Actual game stuff -->
<script type="text/javascript" src="js/menu.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/plane.js"></script>
<script type="text/javascript" src="js/environment.js"></script>
<script type="text/javascript" src="js/controls.js"></script>
<script type="text/javascript" src="js/ring.js"></script>
<!-- CSS -->
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<body onload="onLoad()">
<main>
<div id="myCanvasContainer">
<div class="menu" id="mainMenu">
<h1>Plane and Simple</h1>
<p>A simple 3D plane game made as a computer graphics project with Three.js and Cannon.js.</p>
<p>Made by Andri Soone, Jorgen Juurik and Erik Martin Vetemaa.</p>
<p>Controls: w/s - throttle, q/e - yaw, left/right - roll, up/down - pitch, space - reset position</p>
<!--<a href="https://github.com/ndri/plane-and-simple">GitHub page</a>
<a href="https://courses.cs.ut.ee/2018/cg/fall/Main/Project-PlaneGame">Wiki page</a>-->
<hr>
<button onclick="startClicked()">Start Game</button>
<button onclick="settingsClicked()">Settings</button>
<a class="button" href="https://github.com/ndri/plane-and-simple">GitHub Page</a>
<a class="button" href="https://courses.cs.ut.ee/2018/cg/fall/Main/Project-PlaneGame">Wiki Page</a>
</div>
<div class="hidden menu" id="pauseMenu">
<h1>Plane and Simple</h1>
<hr>
<button onclick="resumeClicked()">Resume Game</button>
<button onclick="reloadClicked()">Reload Map</button>
<button onclick="settingsClicked()">Settings</button>
<button onclick="backToMainMenuClicked()">Back to Main Menu</button>
</div>
<div class="hidden menu" id="loading">
<h1>Loading...</h1>
<div id="loadingBox">
<div id="loadedBox"></div>
</div>
<p id="loadingMessage"></p>
</div>
<div class="hidden menu" id="settingsMenu">
<h1>Settings</h1>
<p id="settingsPath"></p>
<hr>
<div id="settingsButtons">
</div>
<hr>
<button id="backButton">Back</button>
</div>
<div class="hidden" id="debugText">
<p class="hidden">FPS: <span id="fps"></span></p>
<p class="hidden">score: <span id="score"></span></p>
<p class="hidden">aileronPosition: <span id="aileronPosition"></span></p>
<p class="hidden">elevatorPosition: <span id="elevatorPosition"></span></p>
<p class="hidden">rudderPosition: <span id="rudderPosition"></span></p>
<p class="hidden">throttle: <span id="throttle"></span></p>
</div>
<canvas></canvas>
</div>
</main>
</body>
</html>