-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (70 loc) · 3.2 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BeatSurge</title>
<link rel="stylesheet" href="https://unpkg.com/keyboard-css@1.2.4/dist/css/main.min.css" />
</head>
<body>
<div id="loading-screen" class="fixed inset-0 bg-black/75 bg-cover flex items-center justify-center z-50">
<div class="text-center text-white">
<img class="animate-pulse mb-32" src="https://cloud-qxyig8y0u-hack-club-bot.vercel.app/0generated_image.png"
alt="BeatSurge logo" />
<div id="progress-bar-container" class="w-full h-6 bg-gray-600 rounded-md relative overflow-hidden">
<div id="progress-bar" class="h-full bg-white animate-pulse absolute left-0 top-0"></div>
</div>
</div>
</div>
<div id="controls" class="btns fixed top-12 left-1/2 transform -translate-x-1/2 mt-8 text-center text-white">
<p>Move</p>
<div class="flex gap-4 mb-4 justify-center">
<kbd class="kbc-button">A</kbd>
<kbd class="kbc-button">D</kbd>
</div>
<p>Shoot</p>
<kbd class="kbc-button mb-4">Left Mouse Click</kbd>
<p>Pause</p>
<kbd class="kbc-button mb-4">P</kbd>
</div>
<div class="fixed bottom-5 left-5 transform w-40 rounded-md shadow-lg select-none">
<div class="flex items-center space-x-1">
<div class="bg-red-500/15 p-1 rounded-full flex items-center justify-center h-14 w-14 shadow-inner">
<div class="bg-white/70 w-10 h-10 rounded-full shadow-inner">
<img src="/heart.png" alt="ball" class="h-10 w-10" />
</div>
</div>
<div id="health-bar"
class="h-5 bg-gradient-to-r from-red-500 via-yellow-500 to-green-500 rounded-md transition-all duration-300 shadow-inner">
</div>
</div>
</div>
<div class="absolute left-1/2 transform -translate-x-1/2 top-4 select-none">
<div class="flex items-center space-x-1">
<div class="bg-black/5 p-1 rounded-full flex items-center justify-center h-14 w-14 shadow-inner">
<div class="bg-white/50 w-10 h-10 rounded-full shadow-inner">
<img src="/ball.webp" alt="ball" class="h-9 w-9 ml-[3px] mt-[0.5px]" />
</div>
</div>
<div id="balls" class="text-white text-4xl font-bold">0</div>
</div>
</div>
<div id="pause-overlay" class="hidden fixed inset-0 bg-black bg-opacity-75 justify-center items-center">
<div class="text-center">
<h1 class="text-4xl font-bold text-white mb-4">Game Paused</h1>
<p class="text-lg text-gray-300">Press <span class="font-bold text-white">P</span> to resume</p>
</div>
</div>
<div id="game-over-overlay"
class="hidden fixed inset-0 bg-black bg-opacity-50 items-center justify-center z-50 select-none">
<div class="bg-black bg-opacity-75 p-8 rounded-lg text-center w-1/2">
<h1 class="text-3xl font-semibold text-white mb-4">Game Over</h1>
<button onclick="location.reload()"
class="px-6 py-2 bg-gray-500 text-white font-bold rounded-md hover:bg-gray-600 transition duration-300">Restart</button>
</div>
</div>
<div id="damage-overlay"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>