Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (31 loc) · 1.43 KB
/
Copy pathindex.html
File metadata and controls
32 lines (31 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cube Collector - Three.js Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="gameContainer">
<div id="ui">
<div id="score">Score: 0</div>
<div id="lives">Lives: 3</div>
<div id="power">Power: 1 | Size: 1.0x | Bullets: 1 | Speed: 5.0/s</div>
<div id="instructions">
<p>WASD or Arrow Keys to move</p>
<p>Hold Left Mouse Button for auto-shooting at cursor</p>
<p>Hold Space for auto-shooting forward</p>
<p>Collect glowing spheres to grow and get stronger!</p>
<p><span style="color: #ff4444;">Red cubes</span> chase you | <span style="color: #ff8800;">Orange cubes</span> shoot back!</p>
<p><span style="color: #8800aa;">Purple bombers</span> chase you and drop bombs - shoot them down!</p>
<p style="font-size: 12px; color: #aaaaaa;">🔊 Click anywhere to enable audio</p>
<p style="font-size: 12px; color: #888888;">Press <strong>Shift+R</strong> to restart</p>
</div>
</div>
<div id="gameArea"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="game.js"></script>
</body>
</html>