/
index.html
28 lines (28 loc) · 1006 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Style.css" />
<title>Shooting Game</title>
</head>
<body>
<div class="score-container">
<p>score: <span class="score">0</span></p>
</div>
<div id="gameOverDialog" class="dialog">
<h2>Game Over!</h2>
<p>Your final score: <span id="finalScore">0</span></p>
<button id="restartButton">Play Again!</button>
</div>
<canvas id="canvas" class="canvas" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"
integrity="sha512-VEBjfxWUOyzl0bAwh4gdLEaQyDYPvLrZql3pw1ifgb6fhEvZl9iDDehwHZ+dsMzA0Jfww8Xt7COSZuJ/slxc4Q=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="./main.js"></script>
</body>
</html>