-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (93 loc) · 3.85 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
88
89
90
91
92
93
94
95
96
97
98
99
<body onload="checkCookie()">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no, shrink-to-fit=no">
<title>Z-Ball</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<style>
body {
margin: 0;
background: black;
overflow: hidden;
}
</style>
<div class="fixed text-white text-sm ml-2 mt-1 select-none">
<span>Score: </span><span id="scoreEl">0</span>
<br>
<span>HighScore: </span><span id="highScoreEl">0</span>
</div>
<div id="fps_holder" style="display: none;" class="fixed right-0 text-gray-800 text-xs ml-2 mt-1 select-none">
<span>FPS: </span><span id="fps"></span>
</div>
<div class="fixed inset-0 flex items-center justify-center" id="modalEl">
<div id="whiteModalEl" class="bg-white max-w-md w-full p-6 text-center">
<h1 class="text-4xl font-bold leading-none" id="bigScoreEl">0</h1>
<p class="text-sm text-gray-700 mb-4">Points</p>
<h1 class="text-4xl font-bold leading-none">-------------------</h1>
<h1 class="text-4xl font-bold leading-none" id="bigHighScoreEl">0</h1>
<p class="text-sm text-gray-700 mb-4">HighScore</p>
<div>
<button class="bg-blue-500 text-white w-full py-3 rounded-full text-sm" id="startGameBtn">Start Game</button>
<!--<br><br>-->
<!--<button class="bg-blue-500 text-white w-full py-3 rounded-full text-sm" id="lbBtn">Leaderboard</button>-->
<br><br>
<button class="bg-blue-500 text-white w-full py-3 rounded-full text-sm" id="settingsBtn">Settings</button>
</div>
</div>
</div>
<div style="display: none;" class="fixed inset-0 flex items-center justify-center" id="settingsModalEl">
<div id="settingsWhiteModalEl" class="bg-white max-w-md w-full p-6 text-center">
<label for="gq">Graphics Quality: </label>
<select name="gq" id="gq">
<option id="low">Low</option>
<option id="medium">Medium</option>
<option id="high" selected>High</option>
</select>
<br>
<label for="fps">Show FPS: </label>
<input type="checkbox" id="fpsc" name="fps">
<br>
<label for="ic">Invert Controls: </label>
<input type="checkbox" id="ic" name="ic">
<br>
<label for="m">Music: </label>
<input type="checkbox" id="m" name="m" checked>
<br>
<label for="sfx">SFX: </label>
<input type="checkbox" id="sfx" name="sfx" checked>
<br><br>
<button onclick="changeSettings()" class="bg-blue-500 text-white w-full py-3 rounded-full text-sm">Done!</button>
</div>
</div>
<div style="display: none;" class="fixed inset-0 flex items-center justify-center" id="leaderboardModalEl">
<div id="leaderboardWhiteModalEl" class="bg-white max-w-md w-full p-6 text-center">
<p id="lb-msg"></p>
<div id="left">
<p id="un0"></p>
<p id="un1"></p>
<p id="un2"></p>
<p id="un3"></p>
<p id="un4"></p>
<p id="un5"></p>
<p id="un6"></p>
<p id="un7"></p>
<p id="un8"></p>
<p id="un9"></p>
</div>
<div id="right">
<p id="un0"></p>
<p id="un1"></p>
<p id="un2"></p>
<p id="un3"></p>
<p id="un4"></p>
<p id="un5"></p>
<p id="un6"></p>
<p id="un7"></p>
<p id="un8"></p>
<p id="un9"></p>
</div>
<button id="bb" onclick="window.location.reload()" class="bg-blue-500 text-white w-full py-3 rounded-full text-sm">Back</button>
</div>
</div>
<canvas></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js" integrity="sha512-IQLehpLoVS4fNzl7IfH8Iowfm5+RiMGtHykgZJl9AWMgqx0AmJ6cRWcB+GaGVtIsnC4voMfm8f2vwtY+6oPjpQ==" crossorigin="anonymous"></script>
<script src="./index.js"></script>
</body>