-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (36 loc) · 1.47 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Particle Frenzy: Base Defense Game</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="fixed text-white mt-2 ml-2 select-none text-sm">
<span>Score: </span><span id="score">0</span>
</div>
<div id="restartGameModelEl" class="fixed inset-0 hidden items-center justify-center">
<div class="bg-white max-w-md w-full p-6 text-center rounded-md">
<p id="modelTitle" class="text-sm mb-2 text-gray-700">Game Over</p>
<p id="bigScoreEl" class="text-4xl font-bold leading-none">0</p>
<p class="text-sm text-gray-700 mb-4">Points</p>
<div>
<button id="restartBtn" class="text-sm bg-blue-500 text-white w-1/2 py-3 rounded-full">Restart</button>
</div>
</div>
</div>
<div id="startGameModelEl" class="fixed inset-0 flex items-center justify-center">
<div class="bg-white max-w-md w-full p-6 text-center rounded-md">
<p id="modelTitle" class="text-2xl font-bold mb-2">Particle Frenzy</p>
<p class="text-sm text-gray-700 mb-4">Highest Score: </p>
<div>
<button id="startGameBtn" class="text-sm bg-blue-500 text-white w-1/2 py-3 rounded-full">Start</button>
</div>
</div>
</div>
<canvas></canvas>
<script type="module" src="/src/main.ts"></script>
</body>
</html>