-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (42 loc) · 1.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gravity shall existn't</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="icon/image" href="images/icon.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/nipplejs/0.7.3/nipplejs.min.js"></script>
</head>
<body>
<div id="controls_container">
<p class="controls">Control with <img src="images/arrows.png"></p>
<h1>Score: <span class="score"></span></h1>
</div>
<div class="canvas_bg">
<canvas id="canvas"></canvas>
</div>
<div id="pauseMenu" class="hide menu">
<h2>Newton-Fall</h2>
<button id="resumeButton">Resume</button>
<button id="resetButton">Reset</button>
</div>
<div id="end_screen" class="hide menu">
<h2>Oh no, you invented gravity.. :(</h2>
<button id="tryAgainButton">Try Again</button>
</div>
<div id="start_menu">
<div class="menu">
<h2>Welcome to Gravity Game</h2>
<div class="arrow_text">
<p>Avoid the falling apples.</p>
</div>
<button id="startButton">Start</button>
</div>
</div>
<div id="joystickContainer" class="hide">
<div id="joystick"></div>
</div>
<script src="scripts/index.js"></script>
</body>
</html>