-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (89 loc) · 2.87 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
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blitz Core</title>
<!-- Add Favicon -->
<!-- <link rel="shortcut icon" href="./favicon.png" type="image/png" /> -->
<link rel="icon" href="./favicon.png" type="image/png" />
<!-- Font for body -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:[email protected]&display=swap"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Jersey+25&family=Pixelify+Sans:[email protected]&display=swap"
rel="stylesheet"
/>
<!-- Tailwind Integration -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
font-family: "Pixelify Sans", sans-serif;
margin: 0;
background-color: black;
overflow: hidden;
}
#top-score-value,
#score-value,
#mainScoreEl {
font-family: "Jersey 25", sans-serif;
}
#top-score-value {
display: inline-block; /* Allows transformation like scaling */
}
.top-score-animation {
animation: scaleAndColorChange 2s ease-in-out;
}
@keyframes scaleAndColorChange {
0% {
transform: scale(1);
}
50% {
transform: scale(1.4);
color: gold;
}
100% {
transform: scale(1);
}
}
</style>
</head>
<body>
<div class="fixed text-white select-none ml-2 mt-1">
<span>Score: </span>
<span id="score-value">0</span>
</div>
<div class="fixed text-white select-none ml-2 mt-8">
<span>Top Score: </span>
<span id="top-score-value">0</span>
</div>
<div class="fixed inset-0 flex items-center justify-center" id="modelEl">
<div class="bg-white max-w-lg w-screen text-center p-6 rounded-sm">
<h1 class="text-4xl font-bold leading-none" id="mainScoreEl">0</h1>
<p class="text-sm text-gray-700 mb-4">Points</p>
<div>
<button
class="bg-blue-500 text-white w-full py-2 rounded-full text-lg"
id="startGame"
>
Start Game
</button>
</div>
</div>
</div>
<canvas></canvas>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="./game.js"></script>
</body>
</html>