-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (51 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./pages/game/style.css" />
<link rel="stylesheet" href="./pages/menu/style.css" />
<title>Golf</title>
</head>
<body>
<div class="page" id="menu">
<div class="container">
<div class="panel">
<h1 class="title">2D Golf</h1>
<div class="actions">
<input
type="text"
id="usernameInput"
placeholder="Enter your username"
/>
<button id="openLeaderboard">Leaderboard</button>
<div class="inline-buttons">
<button id="playGame">Play</button>
<button id="openTutorial">?</button>
</div>
</div>
</div>
</div>
</div>
<div class="page" id="game">
<div class="container">
<div class="top-bar"></div>
<div class="play-field">
<canvas id="canvas"></canvas>
<canvas class="hidden" id="cacheCanvas"></canvas>
</div>
</div>
</div>
<script src="./script.js"></script>
<script src="./pages/menu/script.js"></script>
<script src="./pages/game/levels.js"></script>
<script src="./pages/game/ball.js"></script>
<script src="./pages/game/script.js"></script>
</body>
</html>