-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (161 loc) · 4.9 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- <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:wght@400..700&display=swap" rel="stylesheet"> -->
<title>Space Blast | Game</title>
</head>
<body>
<div class="game-container">
<div class="status-display">
<table id="status-table">
<tr>
<td id="score-legend">
score
</td>
<td id="score-value">
0
</td>
</tr>
<tr>
<td id="level-legend">
level
</td>
<td id="level-value">
1
</td>
</tr>
<tr>
<td id="hp-legend">
hp
</td>
<td id="hp-value">
0
</td>
</tr>
<tr>
<td id="ammo-legend">
ammo
</td>
<td id="ammo-value">
0
</td>
</tr>
<tr>
<td id="blast-legend">
blast
</td>
<td id="blast-value">
0
</td>
</tr>
</table>
<table id="tutorial-table">
<tr>
<td>
← / →
</td>
<td>
Left / Right
</td>
</tr>
<tr>
<td>
↑ / ↓
</td>
<td>
Up / Down
</td>
</tr>
<tr>
<td>
Space
</td>
<td>
Shoot
</td>
</tr>
<tr>
<td>
0
</td>
<td>
Blast
</td>
</tr>
<tr>
<td>
P
</td>
<td>
Pause
</td>
</tr>
<tr>
<td>
D
</td>
<td>
Dark mode
</td>
</tr>
<tr>
<td>
S
</td>
<td>
Sound
</td>
</tr>
<tr>
<td>
M
</td>
<td>
Music
</td>
</tr>
<tr>
<td>
N
</td>
<td>
new Game
</td>
</tr>
<tr>
<td>
Enter
</td>
<td>
Start Game
</td>
</tr>
</table>
</div>
<div class="main-display">
<div id="message" style="display: none;">
GO-GO!!
</div>
<!-- <canvas id="gameCanvas" width="640" height="480"></canvas> -->
<canvas id="gameCanvas" width="680" height="510"></canvas>
</div>
<div class="button-display">
<button id="btn-dark-mode" >dark mode</button>
<button id="btn-sound-mode" >sound on</button>
<button id="btn-music-mode" >music on</button>
<button id="btn-difficult-mode" disabled>difficult</button>
<button id="btn-start" >start</button>
<button id="btn-pause" >pause off</button>
<button id="btn-new-game" >new game</button>
<button id="btn-exit-game" >exit</button>
</div>
</div>
<script type="module" src="game.js"></script>
</body>
</html>