-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanding.html
More file actions
442 lines (384 loc) · 14.1 KB
/
landing.html
File metadata and controls
442 lines (384 loc) · 14.1 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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HEZER - Space Shooter</title>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
overflow: hidden;
background: #0a0015;
color: #00ffff;
}
#canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.container {
position: relative;
z-index: 2;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
font-size: 120px;
color: #00ffff;
text-shadow:
0 0 20px #00ffff,
0 0 40px #00ffff,
0 0 60px #00ffff,
6px 6px 0 #6b2d8f,
-2px -2px 0 #1a0a2a;
margin-bottom: 30px;
animation: glow 2s ease-in-out infinite;
letter-spacing: 12px;
font-weight: bold;
}
@keyframes glow {
0%, 100% {
text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff, 6px 6px 0 #6b2d8f, -2px -2px 0 #1a0a2a;
}
50% {
text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff, 0 0 90px #00ffff, 6px 6px 0 #6b2d8f, -2px -2px 0 #1a0a2a;
}
}
.play-now {
position: absolute;
top: 180px;
right: 280px;
font-size: 28px;
color: #ffcc00;
animation: bounce 1s ease-in-out infinite;
transform: rotate(-5deg);
}
@keyframes bounce {
0%, 100% { transform: translateY(0) rotate(-5deg); }
50% { transform: translateY(-10px) rotate(-5deg); }
}
.menu {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 25px;
}
.menu-button {
width: 400px;
padding: 18px;
background: rgba(75, 35, 120, 0.7);
border: 3px solid #00ffff;
color: #ffffff;
font-family: 'Press Start 2P', cursive;
font-size: 14px;
cursor: pointer;
transition: all 0.3s;
text-align: center;
backdrop-filter: blur(5px);
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.menu-button:hover {
background: rgba(0, 255, 255, 0.3);
transform: translateX(5px);
box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.play-button {
width: 280px;
padding: 22px;
background: rgba(0, 255, 255, 0.4);
border: 5px solid #00ffff;
color: #00ffff;
font-family: 'Press Start 2P', cursive;
font-size: 36px;
cursor: pointer;
transition: all 0.3s;
text-align: center;
backdrop-filter: blur(5px);
box-shadow: 0 0 40px #00ffff, inset 0 0 30px rgba(0, 255, 255, 0.3);
animation: pulse 2s ease-in-out infinite;
margin-top: 15px;
}
@keyframes pulse {
0%, 100% {
box-shadow: 0 0 40px #00ffff, inset 0 0 30px rgba(0, 255, 255, 0.3);
transform: scale(1);
}
50% {
box-shadow: 0 0 60px #00ffff, 0 0 90px #00ffff, inset 0 0 30px rgba(0, 255, 255, 0.3);
transform: scale(1.02);
}
}
.play-button:hover {
background: rgba(0, 255, 255, 0.6);
transform: scale(1.08);
}
.bottom-row {
display: flex;
gap: 15px;
margin-top: 15px;
margin-bottom: 20px;
}
.bottom-button {
width: 192px;
padding: 18px;
background: rgba(75, 35, 120, 0.7);
border: 3px solid #00ffff;
color: #ffffff;
font-family: 'Press Start 2P', cursive;
font-size: 13px;
cursor: pointer;
transition: all 0.3s;
text-align: center;
backdrop-filter: blur(5px);
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.bottom-button:hover {
background: rgba(0, 255, 255, 0.3);
transform: translateY(-3px);
box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.footer {
position: fixed;
bottom: 30px;
left: 30px;
font-size: 11px;
color: #00ffff;
display: flex;
align-items: center;
gap: 20px;
}
.copyright {
position: fixed;
bottom: 30px;
right: 30px;
font-size: 9px;
color: #00ffff;
letter-spacing: 1px;
}
.footer-icons {
display: flex;
gap: 12px;
}
.icon {
width: 35px;
height: 35px;
border: 2px solid #00ffff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s;
font-size: 18px;
background: rgba(0, 0, 0, 0.3);
}
.icon:hover {
background: rgba(0, 255, 255, 0.3);
box-shadow: 0 0 15px #00ffff;
transform: scale(1.1);
}
/* Floating shapes with exact positioning */
.shape {
position: fixed;
z-index: 1;
animation: float 10s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-30px) rotate(180deg); }
}
.triangle {
width: 0;
height: 0;
border-left: 45px solid transparent;
border-right: 45px solid transparent;
border-bottom: 78px solid #ff006e;
opacity: 0.7;
}
.circle {
width: 70px;
height: 70px;
border-radius: 50%;
background: #b388ff;
opacity: 0.6;
}
.rect {
width: 45px;
height: 45px;
background: #00ffff;
opacity: 0.7;
}
.powerup {
position: fixed;
width: 60px;
height: 80px;
z-index: 1;
animation: spin 15s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.diamond {
position: fixed;
width: 50px;
height: 50px;
background: linear-gradient(135deg, #4df3ff 0%, #00b8cc 100%);
transform: rotate(45deg);
opacity: 0.8;
z-index: 1;
animation: float 12s ease-in-out infinite;
box-shadow: 0 0 30px #00ffff;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<!-- Floating shapes matching reference image -->
<div class="shape circle" style="top: 8%; left: 15%; animation-delay: 0s;"></div>
<div class="shape circle" style="top: 18%; right: 18%; animation-delay: 2s;"></div>
<div class="shape circle" style="bottom: 18%; left: 15%; animation-delay: 4s;"></div>
<div class="shape triangle" style="top: 30%; left: 22%; animation-delay: 1s;"></div>
<div class="shape triangle" style="top: 45%; left: 18%; animation-delay: 3s;"></div>
<div class="shape triangle" style="bottom: 12%; right: 18%; animation-delay: 5s;"></div>
<div class="shape triangle" style="bottom: 25%; right: 12%; animation-delay: 2.5s;"></div>
<div class="shape rect" style="top: 18%; left: 4%; animation-delay: 1.5s;"></div>
<div class="diamond" style="top: 25%; left: 8%; animation-delay: 2s;"></div>
<div class="diamond" style="bottom: 22%; right: 8%; animation-delay: 4s;"></div>
<!-- Powerup/spaceship icons -->
<div class="powerup" style="top: 15%; right: 10%; animation-delay: 0s;">
<svg viewBox="0 0 60 80" fill="none">
<rect x="22" y="10" width="16" height="30" fill="#ff6b35" rx="2"/>
<rect x="20" y="35" width="20" height="25" fill="#00ffff" rx="3"/>
<rect x="18" y="55" width="24" height="15" fill="#ff6b35" rx="2"/>
<circle cx="30" cy="47" r="8" fill="#ffffff"/>
</svg>
</div>
<div class="powerup" style="top: 18%; left: 12%; animation-delay: 3s;">
<svg viewBox="0 0 60 80" fill="none">
<rect x="22" y="10" width="16" height="30" fill="#ff6b35" rx="2"/>
<rect x="20" y="35" width="20" height="25" fill="#00ffff" rx="3"/>
<rect x="18" y="55" width="24" height="15" fill="#ff6b35" rx="2"/>
<circle cx="30" cy="47" r="8" fill="#ffffff"/>
</svg>
</div>
<div class="container">
<div class="title">HEZER</div>
<div class="play-now">PLAY NOW!!</div>
<div class="menu">
<button class="menu-button" onclick="startGame()">Play Game</button>
<button class="menu-button" onclick="showInstructions()">How to Play</button>
<button class="menu-button" onclick="alert('Settings coming soon!')">Settings</button>
</div>
<div class="bottom-row">
<button class="bottom-button" onclick="alert('Achievements coming soon!')">Achievements</button>
<button class="bottom-button" onclick="alert('Profile coming soon!')">Profile</button>
</div>
<button class="play-button" onclick="startGame()">PLAY</button>
</div>
<!-- Nitro preview HUD on landing page -->
<div id="nitroPreview" style="position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 3; text-align: center;">
<div style="font-size:12px; color:#00ffff; margin-bottom:6px;">NITRO</div>
<div style="width:320px; height:18px; background:rgba(0,0,0,0.5); border:2px solid #00ffff; border-radius:6px; box-shadow:0 0 20px #00ffff;">
<div id="nitroFill" style="width:100%; height:100%; background:linear-gradient(90deg,#00ccff,#0077ff); border-radius:4px; transition:width 0.3s;"></div>
</div>
</div>
<div class="footer">
<div class="footer-icons">
<div class="icon" title="Settings">⚙</div>
<div class="icon" title="Close">✖</div>
<div class="icon" title="Sound">🔊</div>
<div class="icon" title="Help">?</div>
</div>
<div>Hezer v1.0.0</div>
</div>
<div class="copyright">
Copyright Studio Z Ao, 20244 distribute!
</div>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
// Create grid background
function drawGrid() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
// Create gradient background
const gradient = ctx.createLinearGradient(0, 0, 0, canvas.height);
gradient.addColorStop(0, '#0a0015');
gradient.addColorStop(1, '#1a0a3a');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, canvas.width, canvas.height);
// Draw perspective grid
ctx.save();
ctx.translate(canvas.width / 2, canvas.height * 0.95);
const gridSize = 60;
const lines = 25;
const perspective = 0.6;
ctx.strokeStyle = 'rgba(107, 45, 143, 0.6)';
ctx.lineWidth = 2;
// Horizontal lines
for (let i = 0; i < lines; i++) {
const y = -i * gridSize;
const scale = 1 - (i / lines) * perspective;
const width = canvas.width * scale;
ctx.beginPath();
ctx.moveTo(-width / 2, y);
ctx.lineTo(width / 2, y);
ctx.stroke();
}
// Vertical lines
for (let i = -12; i <= 12; i++) {
ctx.beginPath();
ctx.moveTo(i * gridSize, 0);
ctx.lineTo(i * gridSize * (1 - perspective), -lines * gridSize);
ctx.stroke();
}
ctx.restore();
// Draw stars
for (let i = 0; i < 100; i++) {
const x = Math.random() * canvas.width;
const y = Math.random() * canvas.height * 0.7;
const size = Math.random() * 2;
ctx.fillStyle = 'rgba(255, 255, 255, ' + Math.random() + ')';
ctx.fillRect(x, y, size, size);
}
}
drawGrid();
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
drawGrid();
});
function startGame() {
window.location.href = 'index.html';
}
function showInstructions() {
alert('How to Play:\n\nArrow Keys / WASD - Move\nSPACE - Fire Missiles\nSHIFT - Activate Speed Boost\nESC - Pause Game\n\nDestroy enemies and asteroids to complete missions!');
}
// simple nitro preview pulse on landing
(function nitroPulse() {
const fill = document.getElementById('nitroFill');
if (!fill) return;
let pct = 1.0;
setInterval(() => {
pct = pct === 1 ? 0.88 : 1.0;
fill.style.width = (pct * 100) + '%';
}, 900);
})();
</script>
</body>
</html>