-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (50 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<title>Open Space Program</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
console.log("Open Space Program Html5 - Version 0.1.0");
</script>
</head>
<body>
<div id="stats">
<span>Zoom:</span>
<br>
<input type="range" id="zoom" min="1" max="100" value="50">
<br>
<span><b>Stats:</b></span>
<br>
FPS: <span id="fps"></span>
<br>
Camera X: <span id="camerax"></span>
<br>
Camera Y: <span id="cameray"></span>
<br>
Controlling: <span id="controlling"></span>
<br>
<button onclick="stabilize()">Stabilize SpaceCraft</button>
</div>
<div id="rocketBuilder">
</div>
<div class="button" id="switchRoom" onclick="switchRoom()">
Lunch!
</div>
<canvas id="canvas" onmousemove="getMouse(event)" oncontextmenu="event.preventDefault()">
</canvas>
<div id="images">
<img src="images/tank.png" id="tank">
<img src="images/engine.png" id="engine">
<img src="images/module.png" id="module">
<img src="images/roboModule.png" id="roboModule">
<img src="images/seperator.png" id="seperator">
<img src="images/solarpanel.png" id="solarpanel">
<img src="images/solarpanel-open.png" id="solarpanel-open">
</div>
</body>
<!-- Scripts must be loaded in this order -->
<script src="main.js"></script>
<script src="data.js"></script>
<script src="draw.js"></script>
<script src="physics.js"></script>
</html>