-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (102 loc) · 3.97 KB
/
Copy pathindex.html
File metadata and controls
102 lines (102 loc) · 3.97 KB
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
102
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ship-black.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>space-asteroids</title>
<link rel="stylesheet" href="/src/main.css" />
</head>
<body>
<div id="not-supported">
<h3 style="width: 50vw; line-height: 30px">
Oops! This game is best played on a device with a screen width
of at least 1024px and a height of 550px. <br />
Please resize your window or switch to a larger device to enjoy
the game fully!
</h3>
</div>
<div id="app">
<div id="top-bar">
<div id="top-bar-content">
<div id="top-bar-content-left">
<img
src="/ship.svg"
alt="ship"
height="60px"
width="60px"
/>
</div>
<div id="top-bar-content-right">
<h3 style="width: 15vw"></h3>
<div
style="
display: flex;
flex-direction: column;
gap: 10px;
padding-right: 30px;
"
>
<h3>Score: <span id="score">0</span></h3>
<h3>High Score: <span id="high-score">0</span></h3>
</div>
</div>
</div>
</div>
<canvas id="canvas"></canvas>
<div id="pause-menu">
<div id="pause-menu-outer-div">
<div id="pause-menu-content">
<h1 style="margin-bottom: 30px">Menu</h1>
<div id="pause-menu-content-buttons">
<button id="start-button">Start</button>
<button id="reset-button">Reset</button>
<button id="reset-score-button">Reset Score</button>
</div>
</div>
</div>
</div>
<div id="over-menu">
<div id="over-menu-outer-div">
<div id="over-menu-content">
<h1 style="margin-bottom: 30px">Game Over</h1>
<div id="over-menu-content-buttons">
<button id="new-game-button">New Game</button>
</div>
</div>
</div>
</div>
<div id="controls">
<div id="controls-title">
<h1>Controls</h1>
</div>
<div id="controls-content">
<img src="/up-arrow.svg" width="30px" height="30px" />
<h3>-</h3>
<h3>W</h3>
<img
src="/arrow-anti-clockwise.svg"
width="30px"
height="30px"
/>
<h3>-</h3>
<h3>A</h3>
<img
src="/arrow-clockwise.svg"
width="30px"
height="30px"
/>
<h3>-</h3>
<h3>D</h3>
<img src="/down-arrow.svg" width="30px" height="30px" />
<h3>-</h3>
<h3>S</h3>
<img src="/bullet.svg" width="30px" height="30px" />
<h3>-</h3>
<h3>Space</h3>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>