-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
27 lines (25 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Canvas-Shooter-JS</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="fixed text-white ml-2 mt-2 select-none"><span>Score: </span><span id="scoreEl">0</span></div>
<div class="fixed inset-0 flex items-center justify-center select-none" id="modalEl"><div 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-1xl font-bold leading-none">Instructions : <br>1)Click the button to start the game <br>2)Click(Mouse) or Touch(Mobile) on the enemy to shrink their size step by stepand to defeat it <br>3)Every single time you lose the level will be getting hard. Be careful <br><br>Enjoy The Game</h1><br>
<div>
<button class="bg-blue-500 text-white w-full py-3 rounded-full " id="startGameBtn">Start Game</button>
</div>
</div></div>
<canvas></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.0/gsap.min.js" integrity="sha512-1dalHDkG9EtcOmCnoCjiwQ/HEB5SDNqw8d4G2MKoNwjiwMNeBAkudsBCmSlMnXdsH8Bm0mOd3tl/6nL5y0bMaQ==" crossorigin="anonymous"></script>
<script src="sketch.js"></script>
</body>
</html>