Spaces:
Running
Running
i need the graphic at 64 bit - Initial Deployment
Browse files- README.md +7 -5
- index.html +1406 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: subspace-2
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,1406 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Subspace Continuum - Enhanced</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
'space-dark': '#0a0a1a',
|
| 15 |
+
'space-blue': '#1a2a6c',
|
| 16 |
+
'ship-red': '#ff4d4d',
|
| 17 |
+
'ship-green': '#4dff4d',
|
| 18 |
+
'ship-blue': '#4d4dff',
|
| 19 |
+
'ship-yellow': '#ffff4d',
|
| 20 |
+
'ship-purple': '#bd4dff',
|
| 21 |
+
'ship-orange': '#ff9d4d',
|
| 22 |
+
'ship-cyan': '#4dffff',
|
| 23 |
+
'ship-pink': '#ff4dd2',
|
| 24 |
+
'energy-blue': '#00aaff',
|
| 25 |
+
'energy-yellow': '#ffff00',
|
| 26 |
+
'energy-red': '#ff3333',
|
| 27 |
+
'asteroid-brown': '#8B4513',
|
| 28 |
+
'nebula-pink': '#ff69b4',
|
| 29 |
+
'ice-blue': '#87ceeb'
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
</script>
|
| 35 |
+
<style>
|
| 36 |
+
/* Add ship selection menu styles */
|
| 37 |
+
.ship-menu {
|
| 38 |
+
position: fixed;
|
| 39 |
+
top: 50%;
|
| 40 |
+
left: 50%;
|
| 41 |
+
transform: translate(-50%, -50%);
|
| 42 |
+
background: rgba(10, 10, 26, 0.95);
|
| 43 |
+
border: 2px solid #4444aa;
|
| 44 |
+
border-radius: 15px;
|
| 45 |
+
padding: 20px;
|
| 46 |
+
z-index: 100;
|
| 47 |
+
box-shadow: 0 0 30px rgba(100, 100, 255, 0.7);
|
| 48 |
+
width: 80%;
|
| 49 |
+
max-width: 600px;
|
| 50 |
+
display: none;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.ship-menu-header {
|
| 54 |
+
text-align: center;
|
| 55 |
+
margin-bottom: 20px;
|
| 56 |
+
color: #4d4dff;
|
| 57 |
+
text-shadow: 0 0 10px #4d4dff;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.ships-grid {
|
| 61 |
+
display: grid;
|
| 62 |
+
grid-template-columns: repeat(4, 1fr);
|
| 63 |
+
gap: 15px;
|
| 64 |
+
margin-bottom: 20px;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.ship-option {
|
| 68 |
+
background: rgba(30, 30, 60, 0.7);
|
| 69 |
+
border-radius: 10px;
|
| 70 |
+
padding: 15px 5px;
|
| 71 |
+
text-align: center;
|
| 72 |
+
cursor: pointer;
|
| 73 |
+
transition: all 0.3s ease;
|
| 74 |
+
border: 2px solid transparent;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.ship-option:hover {
|
| 78 |
+
transform: scale(1.1);
|
| 79 |
+
background: rgba(50, 50, 100, 0.9);
|
| 80 |
+
box-shadow: 0 0 15px #00aaff;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.ship-option.selected {
|
| 84 |
+
border-color: #00aaff;
|
| 85 |
+
box-shadow: 0 0 20px #00aaff;
|
| 86 |
+
background: rgba(40, 40, 80, 0.9);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.ship-option i {
|
| 90 |
+
font-size: 24px;
|
| 91 |
+
margin-bottom: 8px;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.menu-buttons {
|
| 95 |
+
display: flex;
|
| 96 |
+
justify-content: center;
|
| 97 |
+
gap: 20px;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.menu-button {
|
| 101 |
+
padding: 10px 25px;
|
| 102 |
+
border-radius: 8px;
|
| 103 |
+
border: none;
|
| 104 |
+
background: #1a2a6c;
|
| 105 |
+
color: white;
|
| 106 |
+
font-family: 'Orbitron', sans-serif;
|
| 107 |
+
font-size: 16px;
|
| 108 |
+
cursor: pointer;
|
| 109 |
+
transition: all 0.3s ease;
|
| 110 |
+
box-shadow: 0 0 10px rgba(100, 100, 255, 0.5);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
.menu-button:hover {
|
| 114 |
+
background: #2a3a9c;
|
| 115 |
+
box-shadow: 0 0 20px rgba(100, 100, 255, 0.8);
|
| 116 |
+
}
|
| 117 |
+
</style>
|
| 118 |
+
</head>
|
| 119 |
+
<body class="text-white">
|
| 120 |
+
<!-- Add ship selection menu -->
|
| 121 |
+
<div id="shipMenu" class="ship-menu">
|
| 122 |
+
<h2 class="ship-menu-header text-2xl font-bold">SELECT YOUR SHIP</h2>
|
| 123 |
+
<div class="ships-grid" id="shipsGrid">
|
| 124 |
+
<!-- Ship options will be generated here -->
|
| 125 |
+
</div>
|
| 126 |
+
<div class="menu-buttons">
|
| 127 |
+
<button id="startGame" class="menu-button">START GAME</button>
|
| 128 |
+
<button id="closeMenu" class="menu-button">CLOSE</button>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');
|
| 132 |
+
|
| 133 |
+
body {
|
| 134 |
+
font-family: 'Orbitron', sans-serif;
|
| 135 |
+
background: linear-gradient(135deg, #0a0a1a, #1a0a2a);
|
| 136 |
+
overflow: hidden;
|
| 137 |
+
height: 100vh;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.zone-asteroid {
|
| 141 |
+
background: radial-gradient(circle at center, #2a2a2a, #000000);
|
| 142 |
+
animation: zonePulse 4s infinite alternate;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.zone-nebula {
|
| 146 |
+
background: radial-gradient(circle at center, #2a0a2a, #000000);
|
| 147 |
+
animation: zonePulse 4s infinite alternate;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.zone-ice {
|
| 151 |
+
background: radial-gradient(circle at center, #0a2a2a, #001111);
|
| 152 |
+
animation: zonePulse 4s infinite alternate;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.zone-vortex {
|
| 156 |
+
background: radial-gradient(circle at center, #1a0a2a, #000000);
|
| 157 |
+
animation: zonePulse 4s infinite alternate;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
.zone-electric {
|
| 161 |
+
background: radial-gradient(circle at center, #2a2a0a, #000000);
|
| 162 |
+
animation: zonePulse 4s infinite alternate;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.zone-gravity {
|
| 166 |
+
background: radial-gradient(circle at center, #0a2a0a, #000000);
|
| 167 |
+
animation: zonePulse 4s infinite alternate;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
.zone-plasma {
|
| 171 |
+
background: radial-gradient(circle at center, #2a0a0a, #000000);
|
| 172 |
+
animation: zonePulse 4s infinite alternate;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.zone-wormhole {
|
| 176 |
+
background: radial-gradient(circle at center, #0a0a2a, #000000);
|
| 177 |
+
animation: zonePulse 4s infinite alternate;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
.game-container {
|
| 181 |
+
position: relative;
|
| 182 |
+
width: 100%;
|
| 183 |
+
height: 85vh;
|
| 184 |
+
overflow: hidden;
|
| 185 |
+
background: radial-gradient(circle at center, #0a0a1a 0%, #000000 100%);
|
| 186 |
+
border: 2px solid #4444aa;
|
| 187 |
+
box-shadow: 0 0 30px rgba(100, 100, 255, 0.5);
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
.ship {
|
| 191 |
+
position: absolute;
|
| 192 |
+
transition: transform 0.1s ease;
|
| 193 |
+
z-index: 10;
|
| 194 |
+
text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
|
| 195 |
+
filter: drop-shadow(0 0 5px currentColor);
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
.bullet {
|
| 199 |
+
position: absolute;
|
| 200 |
+
width: 6px;
|
| 201 |
+
height: 15px;
|
| 202 |
+
border-radius: 50%;
|
| 203 |
+
background: #ffff00;
|
| 204 |
+
box-shadow: 0 0 12px #ffff00, 0 0 20px #ffaa00;
|
| 205 |
+
z-index: 5;
|
| 206 |
+
animation: bulletPulse 0.5s infinite alternate;
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
.star {
|
| 210 |
+
position: absolute;
|
| 211 |
+
background: white;
|
| 212 |
+
border-radius: 50%;
|
| 213 |
+
z-index: 1;
|
| 214 |
+
animation: starTwinkle 3s infinite alternate;
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
.energy-bar {
|
| 218 |
+
height: 20px;
|
| 219 |
+
border-radius: 10px;
|
| 220 |
+
background: linear-gradient(to right, #ff3333, #ffff00, #00aaff);
|
| 221 |
+
box-shadow: 0 0 15px rgba(0, 170, 255, 0.9);
|
| 222 |
+
animation: energyPulse 2s infinite alternate;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.ship-icon {
|
| 226 |
+
width: 30px;
|
| 227 |
+
height: 30px;
|
| 228 |
+
border-radius: 50%;
|
| 229 |
+
display: flex;
|
| 230 |
+
align-items: center;
|
| 231 |
+
justify-content: center;
|
| 232 |
+
margin: 0 auto;
|
| 233 |
+
font-size: 14px;
|
| 234 |
+
transition: all 0.3s ease;
|
| 235 |
+
box-shadow: 0 0 5px rgba(255,255,255,0.5);
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.ship-selected {
|
| 239 |
+
box-shadow: 0 0 20px #00aaff, 0 0 30px #0088ff;
|
| 240 |
+
border: 2px solid #00aaff;
|
| 241 |
+
transform: scale(1.2);
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
.weapon-icon {
|
| 245 |
+
width: 40px;
|
| 246 |
+
height: 40px;
|
| 247 |
+
display: flex;
|
| 248 |
+
align-items: center;
|
| 249 |
+
justify-content: center;
|
| 250 |
+
border-radius: 10px;
|
| 251 |
+
background: rgba(30, 30, 60, 0.7);
|
| 252 |
+
margin: 0 5px;
|
| 253 |
+
cursor: pointer;
|
| 254 |
+
transition: all 0.3s ease;
|
| 255 |
+
box-shadow: 0 0 8px rgba(100, 100, 255, 0.5);
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.weapon-icon:hover {
|
| 259 |
+
transform: scale(1.2);
|
| 260 |
+
background: rgba(50, 50, 100, 0.9);
|
| 261 |
+
box-shadow: 0 0 15px #00aaff;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.weapon-icon.active {
|
| 265 |
+
box-shadow: 0 0 20px #00aaff, 0 0 30px #0088ff;
|
| 266 |
+
border: 2px solid #00aaff;
|
| 267 |
+
transform: scale(1.1);
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
.pulse {
|
| 271 |
+
animation: pulse 1.5s infinite;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
@keyframes pulse {
|
| 275 |
+
0% { transform: scale(1); }
|
| 276 |
+
50% { transform: scale(1.05); }
|
| 277 |
+
100% { transform: scale(1); }
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
@keyframes starTwinkle {
|
| 281 |
+
0% { opacity: 0.3; }
|
| 282 |
+
100% { opacity: 1; }
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
@keyframes bulletPulse {
|
| 286 |
+
0% { transform: scale(1); }
|
| 287 |
+
100% { transform: scale(1.2); }
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
@keyframes energyPulse {
|
| 291 |
+
0% { box-shadow: 0 0 10px rgba(0, 170, 255, 0.7); }
|
| 292 |
+
100% { box-shadow: 0 0 20px rgba(0, 200, 255, 0.9); }
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
@keyframes zonePulse {
|
| 296 |
+
0% { box-shadow: inset 0 0 20px rgba(100, 100, 255, 0.3); }
|
| 297 |
+
100% { box-shadow: inset 0 0 40px rgba(150, 150, 255, 0.5); }
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
.radar-dot {
|
| 301 |
+
position: absolute;
|
| 302 |
+
width: 8px;
|
| 303 |
+
height: 8px;
|
| 304 |
+
border-radius: 50%;
|
| 305 |
+
background: #00ff00;
|
| 306 |
+
box-shadow: 0 0 8px #00ff00, 0 0 15px #00ff00;
|
| 307 |
+
animation: radarPulse 1s infinite alternate;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
@keyframes radarPulse {
|
| 311 |
+
0% { transform: scale(1); opacity: 0.7; }
|
| 312 |
+
100% { transform: scale(1.3); opacity: 1; }
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
.explosion {
|
| 316 |
+
position: absolute;
|
| 317 |
+
border-radius: 50%;
|
| 318 |
+
background: radial-gradient(circle, #ffff00, #ff6600, transparent);
|
| 319 |
+
animation: explode 0.6s forwards;
|
| 320 |
+
z-index: 20;
|
| 321 |
+
box-shadow: 0 0 30px #ff6600;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
@keyframes explode {
|
| 325 |
+
0% { transform: scale(0.1); opacity: 1; }
|
| 326 |
+
70% { transform: scale(2); opacity: 0.7; }
|
| 327 |
+
100% { transform: scale(4); opacity: 0; }
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
.powerup {
|
| 331 |
+
position: absolute;
|
| 332 |
+
width: 25px;
|
| 333 |
+
height: 25px;
|
| 334 |
+
border-radius: 50%;
|
| 335 |
+
background: radial-gradient(circle, #00ff00, #008800);
|
| 336 |
+
box-shadow: 0 0 15px #00ff00, 0 0 25px #00aa00;
|
| 337 |
+
animation: pulse 1.5s infinite, powerupFloat 3s infinite ease-in-out;
|
| 338 |
+
z-index: 4;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
@keyframes powerupFloat {
|
| 342 |
+
0%, 100% { transform: translateY(0); }
|
| 343 |
+
50% { transform: translateY(-10px); }
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
.ship-trail {
|
| 347 |
+
position: absolute;
|
| 348 |
+
width: 12px;
|
| 349 |
+
height: 25px;
|
| 350 |
+
background: linear-gradient(to top, #ff6600, transparent);
|
| 351 |
+
border-radius: 50% 50% 0 0;
|
| 352 |
+
z-index: 2;
|
| 353 |
+
box-shadow: 0 0 10px #ff6600;
|
| 354 |
+
animation: trailFade 0.5s forwards;
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
@keyframes trailFade {
|
| 358 |
+
0% { opacity: 1; transform: scale(1); }
|
| 359 |
+
100% { opacity: 0; transform: scale(0.5); }
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
.asteroid {
|
| 363 |
+
position: absolute;
|
| 364 |
+
border-radius: 50%;
|
| 365 |
+
background: linear-gradient(45deg, #8B4513, #5D2906);
|
| 366 |
+
box-shadow: 0 0 15px #8B4513;
|
| 367 |
+
z-index: 3;
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
.nebula-cloud {
|
| 371 |
+
position: absolute;
|
| 372 |
+
border-radius: 50%;
|
| 373 |
+
background: radial-gradient(circle, rgba(255, 105, 180, 0.4), transparent);
|
| 374 |
+
box-shadow: 0 0 40px rgba(255, 105, 180, 0.6);
|
| 375 |
+
z-index: 2;
|
| 376 |
+
animation: nebulaPulse 5s infinite alternate;
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
@keyframes nebulaPulse {
|
| 380 |
+
0% { opacity: 0.4; }
|
| 381 |
+
100% { opacity: 0.7; }
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
.ice-crystal {
|
| 385 |
+
position: absolute;
|
| 386 |
+
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
| 387 |
+
background: linear-gradient(45deg, #87CEEB, #5CA9DD);
|
| 388 |
+
box-shadow: 0 0 15px #87CEEB;
|
| 389 |
+
z-index: 3;
|
| 390 |
+
animation: iceGlow 3s infinite alternate;
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
@keyframes iceGlow {
|
| 394 |
+
0% { box-shadow: 0 0 10px #87CEEB; }
|
| 395 |
+
100% { box-shadow: 0 0 25px #87CEEB, 0 0 40px #5CA9DD; }
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
.header-glow {
|
| 399 |
+
text-shadow: 0 0 10px #4d4dff, 0 0 20px #4d4dff;
|
| 400 |
+
animation: headerPulse 3s infinite alternate;
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
@keyframes headerPulse {
|
| 404 |
+
0% { text-shadow: 0 0 10px #4d4dff, 0 0 20px #4d4dff; }
|
| 405 |
+
100% { text-shadow: 0 0 15px #4d4dff, 0 0 30px #4d4dff, 0 0 40px #4d4dff; }
|
| 406 |
+
}
|
| 407 |
+
</style>
|
| 408 |
+
</head>
|
| 409 |
+
<body class="text-white">
|
| 410 |
+
<div class="container mx-auto px-4 py-2">
|
| 411 |
+
<header class="flex justify-between items-center mb-2">
|
| 412 |
+
<h1 class="text-3xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-purple-500 header-glow">
|
| 413 |
+
<i class="fas fa-rocket mr-2"></i>SUBSPACE CONTINUUM - ENHANCED
|
| 414 |
+
</h1>
|
| 415 |
+
<div class="flex items-center space-x-4">
|
| 416 |
+
<div class="bg-space-blue px-4 py-2 rounded-lg">
|
| 417 |
+
<span class="text-energy-yellow">SCORE: </span>
|
| 418 |
+
<span id="score" class="font-bold">0</span>
|
| 419 |
+
</div>
|
| 420 |
+
<div class="bg-space-blue px-4 py-2 rounded-lg">
|
| 421 |
+
<span class="text-energy-blue">FPS: </span>
|
| 422 |
+
<span id="fps" class="font-bold">60</span>
|
| 423 |
+
</div>
|
| 424 |
+
</div>
|
| 425 |
+
</header>
|
| 426 |
+
|
| 427 |
+
<div class="game-container" id="gameContainer">
|
| 428 |
+
<!-- Stars will be generated here -->
|
| 429 |
+
<!-- Ships and bullets will be added dynamically -->
|
| 430 |
+
</div>
|
| 431 |
+
|
| 432 |
+
<div class="mt-4 grid grid-cols-1 md:grid-cols-4 gap-4">
|
| 433 |
+
<div class="bg-space-dark bg-opacity-70 p-4 rounded-xl border border-blue-500">
|
| 434 |
+
<h2 class="text-xl font-bold mb-3 text-center text-blue-300">SHIP CONTROLS</h2>
|
| 435 |
+
<div class="grid grid-cols-3 gap-2">
|
| 436 |
+
<div></div>
|
| 437 |
+
<div class="bg-space-blue p-3 rounded-lg text-center">↑<br>THRUST</div>
|
| 438 |
+
<div></div>
|
| 439 |
+
<div class="bg-space-blue p-3 rounded-lg text-center">←<br>LEFT</div>
|
| 440 |
+
<div class="bg-space-blue p-3 rounded-lg text-center">↓<br>BOMB</div>
|
| 441 |
+
<div class="bg-space-blue p-3 rounded-lg text-center">→<br>RIGHT</div>
|
| 442 |
+
<div class="col-span-3 bg-space-blue p-3 rounded-lg text-center mt-2">SPACE<br>SHOOT</div>
|
| 443 |
+
</div>
|
| 444 |
+
</div>
|
| 445 |
+
|
| 446 |
+
<div class="bg-space-dark bg-opacity-70 p-4 rounded-xl border border-blue-500">
|
| 447 |
+
<h2 class="text-xl font-bold mb-3 text-center text-blue-300">ENERGY & WEAPONS</h2>
|
| 448 |
+
<div class="mb-4">
|
| 449 |
+
<div class="flex justify-between mb-1">
|
| 450 |
+
<span>ENERGY</span>
|
| 451 |
+
<span id="energyValue">100%</span>
|
| 452 |
+
</div>
|
| 453 |
+
<div class="w-full bg-gray-700 rounded-full h-4">
|
| 454 |
+
<div id="energyBar" class="energy-bar h-4 rounded-full" style="width: 100%"></div>
|
| 455 |
+
</div>
|
| 456 |
+
</div>
|
| 457 |
+
|
| 458 |
+
<div class="flex justify-center mt-4">
|
| 459 |
+
<div class="weapon-icon active" data-weapon="1">
|
| 460 |
+
<i class="fas fa-bolt text-yellow-300"></i>
|
| 461 |
+
</div>
|
| 462 |
+
<div class="weapon-icon" data-weapon="2">
|
| 463 |
+
<i class="fas fa-fire text-red-400"></i>
|
| 464 |
+
</div>
|
| 465 |
+
<div class="weapon-icon" data-weapon="3">
|
| 466 |
+
<i class="fas fa-snowflake text-blue-300"></i>
|
| 467 |
+
</div>
|
| 468 |
+
<div class="weapon-icon" data-weapon="4">
|
| 469 |
+
<i class="fas fa-bomb text-purple-400"></i>
|
| 470 |
+
</div>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
|
| 474 |
+
<div class="bg-space-dark bg-opacity-70 p-4 rounded-xl border border-blue-500">
|
| 475 |
+
<h2 class="text-xl font-bold mb-3 text-center text-blue-300">ZONE INFO</h2>
|
| 476 |
+
<div class="text-center mb-3">
|
| 477 |
+
<div id="zoneName" class="text-lg font-bold text-yellow-300">NORMAL SPACE</div>
|
| 478 |
+
<div id="zoneDescription" class="text-sm mt-2">Standard combat zone</div>
|
| 479 |
+
</div>
|
| 480 |
+
<div class="grid grid-cols-3 gap-2">
|
| 481 |
+
<div class="bg-asteroid-brown p-2 rounded text-center text-xs">ASTEROID</div>
|
| 482 |
+
<div class="bg-nebula-pink p-2 rounded text-center text-xs">NEBULA</div>
|
| 483 |
+
<div class="bg-ice-blue p-2 rounded text-center text-xs">ICE</div>
|
| 484 |
+
</div>
|
| 485 |
+
</div>
|
| 486 |
+
|
| 487 |
+
<div class="bg-space-dark bg-opacity-70 p-4 rounded-xl border border-blue-500">
|
| 488 |
+
<h2 class="text-xl font-bold mb-3 text-center text-blue-300">SHIP SELECT</h2>
|
| 489 |
+
<div class="relative h-32 bg-black bg-opacity-50 rounded-lg mb-4 border border-blue-700">
|
| 490 |
+
<div id="radar" class="absolute inset-0"></div>
|
| 491 |
+
<div class="absolute top-1/2 left-1/2 w-2 h-2 bg-red-500 rounded-full transform -translate-x-1/2 -translate-y-1/2"></div>
|
| 492 |
+
</div>
|
| 493 |
+
|
| 494 |
+
<div class="grid grid-cols-4 gap-1">
|
| 495 |
+
<!-- Original 8 ships -->
|
| 496 |
+
<div class="ship-icon bg-ship-red ship-selected" data-ship="1">
|
| 497 |
+
<i class="fas fa-fighter-jet"></i>
|
| 498 |
+
</div>
|
| 499 |
+
<div class="ship-icon bg-ship-green" data-ship="2">
|
| 500 |
+
<i class="fas fa-space-shuttle"></i>
|
| 501 |
+
</div>
|
| 502 |
+
<div class="ship-icon bg-ship-blue" data-ship="3">
|
| 503 |
+
<i class="fas fa-rocket"></i>
|
| 504 |
+
</div>
|
| 505 |
+
<div class="ship-icon bg-ship-yellow" data-ship="4">
|
| 506 |
+
<i class="fas fa-shield-alt"></i>
|
| 507 |
+
</div>
|
| 508 |
+
<div class="ship-icon bg-ship-purple" data-ship="5">
|
| 509 |
+
<i class="fas fa-star"></i>
|
| 510 |
+
</div>
|
| 511 |
+
<div class="ship-icon bg-ship-orange" data-ship="6">
|
| 512 |
+
<i class="fas fa-bolt"></i>
|
| 513 |
+
</div>
|
| 514 |
+
<div class="ship-icon bg-ship-cyan" data-ship="7">
|
| 515 |
+
<i class="fas fa-wind"></i>
|
| 516 |
+
</div>
|
| 517 |
+
<div class="ship-icon bg-ship-pink" data-ship="8">
|
| 518 |
+
<i class="fas fa-moon"></i>
|
| 519 |
+
</div>
|
| 520 |
+
<!-- New 8 ships -->
|
| 521 |
+
<div class="ship-icon bg-gray-500" data-ship="9">
|
| 522 |
+
<i class="fas fa-ghost"></i>
|
| 523 |
+
</div>
|
| 524 |
+
<div class="ship-icon bg-green-500" data-ship="10">
|
| 525 |
+
<i class="fas fa-dragon"></i>
|
| 526 |
+
</div>
|
| 527 |
+
<div class="ship-icon bg-blue-300" data-ship="11">
|
| 528 |
+
<i class="fas fa-snowflake"></i>
|
| 529 |
+
</div>
|
| 530 |
+
<div class="ship-icon bg-yellow-600" data-ship="12">
|
| 531 |
+
<i class="fas fa-sun"></i>
|
| 532 |
+
</div>
|
| 533 |
+
<div class="ship-icon bg-purple-700" data-ship="13">
|
| 534 |
+
<i class="fas fa-crown"></i>
|
| 535 |
+
</div>
|
| 536 |
+
<div class="ship-icon bg-red-700" data-ship="14">
|
| 537 |
+
<i class="fas fa-skull"></i>
|
| 538 |
+
</div>
|
| 539 |
+
<div class="ship-icon bg-indigo-500" data-ship="15">
|
| 540 |
+
<i class="fas fa-hat-wizard"></i>
|
| 541 |
+
</div>
|
| 542 |
+
<div class="ship-icon bg-pink-500" data-ship="16">
|
| 543 |
+
<i class="fas fa-heart"></i>
|
| 544 |
+
</div>
|
| 545 |
+
</div>
|
| 546 |
+
</div>
|
| 547 |
+
</div>
|
| 548 |
+
</div>
|
| 549 |
+
|
| 550 |
+
<script>
|
| 551 |
+
// Game variables
|
| 552 |
+
const gameContainer = document.getElementById('gameContainer');
|
| 553 |
+
const radar = document.getElementById('radar');
|
| 554 |
+
const scoreElement = document.getElementById('score');
|
| 555 |
+
const energyBar = document.getElementById('energyBar');
|
| 556 |
+
const energyValue = document.getElementById('energyValue');
|
| 557 |
+
const fpsElement = document.getElementById('fps');
|
| 558 |
+
const zoneMenu = document.getElementById('zoneMenu');
|
| 559 |
+
const closeZoneMenu = document.getElementById('closeZoneMenu');
|
| 560 |
+
|
| 561 |
+
let playerShip = null;
|
| 562 |
+
let ships = [];
|
| 563 |
+
let bullets = [];
|
| 564 |
+
let stars = [];
|
| 565 |
+
let powerups = [];
|
| 566 |
+
let explosions = [];
|
| 567 |
+
let score = 0;
|
| 568 |
+
let energy = 100;
|
| 569 |
+
let selectedWeapon = 1;
|
| 570 |
+
let selectedShip = 1;
|
| 571 |
+
let keys = {};
|
| 572 |
+
let lastTime = 0;
|
| 573 |
+
let frameCount = 0;
|
| 574 |
+
let lastFpsUpdate = 0;
|
| 575 |
+
let fps = 60;
|
| 576 |
+
let currentZone = 'normal';
|
| 577 |
+
let zoneTimer = 0;
|
| 578 |
+
let asteroids = [];
|
| 579 |
+
let nebulaClouds = [];
|
| 580 |
+
let iceCrystals = [];
|
| 581 |
+
let vortexes = [];
|
| 582 |
+
let electricFields = [];
|
| 583 |
+
let gravityWells = [];
|
| 584 |
+
let plasmaStorms = [];
|
| 585 |
+
let wormholes = [];
|
| 586 |
+
|
| 587 |
+
// Create stars
|
| 588 |
+
function createStars() {
|
| 589 |
+
for (let i = 0; i < 200; i++) {
|
| 590 |
+
const star = document.createElement('div');
|
| 591 |
+
star.className = 'star';
|
| 592 |
+
star.style.width = `${Math.random() * 3}px`;
|
| 593 |
+
star.style.height = star.style.width;
|
| 594 |
+
star.style.left = `${Math.random() * 100}%`;
|
| 595 |
+
star.style.top = `${Math.random() * 100}%`;
|
| 596 |
+
star.style.opacity = Math.random();
|
| 597 |
+
gameContainer.appendChild(star);
|
| 598 |
+
stars.push(star);
|
| 599 |
+
}
|
| 600 |
+
}
|
| 601 |
+
|
| 602 |
+
// Create zone elements
|
| 603 |
+
function createZoneElements() {
|
| 604 |
+
// Clear existing zone elements
|
| 605 |
+
asteroids.forEach(a => a.element.remove());
|
| 606 |
+
nebulaClouds.forEach(n => n.element.remove());
|
| 607 |
+
iceCrystals.forEach(i => i.element.remove());
|
| 608 |
+
asteroids = [];
|
| 609 |
+
nebulaClouds = [];
|
| 610 |
+
iceCrystals = [];
|
| 611 |
+
|
| 612 |
+
// Create new elements based on zone
|
| 613 |
+
switch(currentZone) {
|
| 614 |
+
case 'asteroid':
|
| 615 |
+
for (let i = 0; i < 30; i++) {
|
| 616 |
+
const asteroid = {
|
| 617 |
+
x: Math.random() * gameContainer.offsetWidth,
|
| 618 |
+
y: Math.random() * gameContainer.offsetHeight,
|
| 619 |
+
size: Math.random() * 50 + 20,
|
| 620 |
+
element: null
|
| 621 |
+
};
|
| 622 |
+
|
| 623 |
+
const element = document.createElement('div');
|
| 624 |
+
element.style.position = 'absolute';
|
| 625 |
+
element.style.left = `${asteroid.x}px`;
|
| 626 |
+
element.style.top = `${asteroid.y}px`;
|
| 627 |
+
element.style.width = `${asteroid.size}px`;
|
| 628 |
+
element.style.height = `${asteroid.size}px`;
|
| 629 |
+
element.style.backgroundColor = '#8B4513';
|
| 630 |
+
element.style.borderRadius = '50%';
|
| 631 |
+
element.style.boxShadow = '0 0 20px #8B4513';
|
| 632 |
+
gameContainer.appendChild(element);
|
| 633 |
+
|
| 634 |
+
asteroid.element = element;
|
| 635 |
+
asteroids.push(asteroid);
|
| 636 |
+
}
|
| 637 |
+
break;
|
| 638 |
+
|
| 639 |
+
case 'nebula':
|
| 640 |
+
for (let i = 0; i < 20; i++) {
|
| 641 |
+
const nebula = {
|
| 642 |
+
x: Math.random() * gameContainer.offsetWidth,
|
| 643 |
+
y: Math.random() * gameContainer.offsetHeight,
|
| 644 |
+
size: Math.random() * 200 + 100,
|
| 645 |
+
element: null
|
| 646 |
+
};
|
| 647 |
+
|
| 648 |
+
const element = document.createElement('div');
|
| 649 |
+
element.style.position = 'absolute';
|
| 650 |
+
element.style.left = `${nebula.x}px`;
|
| 651 |
+
element.style.top = `${nebula.y}px`;
|
| 652 |
+
element.style.width = `${nebula.size}px`;
|
| 653 |
+
element.style.height = `${nebula.size}px`;
|
| 654 |
+
element.style.backgroundColor = 'rgba(255, 105, 180, 0.3)';
|
| 655 |
+
element.style.borderRadius = '50%';
|
| 656 |
+
element.style.boxShadow = '0 0 50px rgba(255, 105, 180, 0.6)';
|
| 657 |
+
gameContainer.appendChild(element);
|
| 658 |
+
|
| 659 |
+
nebula.element = element;
|
| 660 |
+
nebulaClouds.push(nebula);
|
| 661 |
+
}
|
| 662 |
+
break;
|
| 663 |
+
|
| 664 |
+
case 'ice':
|
| 665 |
+
for (let i = 0; i < 40; i++) {
|
| 666 |
+
const crystal = {
|
| 667 |
+
x: Math.random() * gameContainer.offsetWidth,
|
| 668 |
+
y: Math.random() * gameContainer.offsetHeight,
|
| 669 |
+
size: Math.random() * 25 + 10,
|
| 670 |
+
element: null
|
| 671 |
+
};
|
| 672 |
+
|
| 673 |
+
const element = document.createElement('div');
|
| 674 |
+
element.style.position = 'absolute';
|
| 675 |
+
element.style.left = `${crystal.x}px`;
|
| 676 |
+
element.style.top = `${crystal.y}px`;
|
| 677 |
+
element.style.width = `${crystal.size}px`;
|
| 678 |
+
element.style.height = `${crystal.size}px`;
|
| 679 |
+
element.style.backgroundColor = '#87CEEB';
|
| 680 |
+
element.style.clipPath = 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)';
|
| 681 |
+
element.style.boxShadow = '0 0 15px #87CEEB';
|
| 682 |
+
gameContainer.appendChild(element);
|
| 683 |
+
|
| 684 |
+
crystal.element = element;
|
| 685 |
+
iceCrystals.push(crystal);
|
| 686 |
+
}
|
| 687 |
+
break;
|
| 688 |
+
}
|
| 689 |
+
}
|
| 690 |
+
|
| 691 |
+
// Update zone display
|
| 692 |
+
function updateZoneDisplay() {
|
| 693 |
+
const zoneName = document.getElementById('zoneName');
|
| 694 |
+
const zoneDescription = document.getElementById('zoneDescription');
|
| 695 |
+
|
| 696 |
+
switch(currentZone) {
|
| 697 |
+
case 'normal':
|
| 698 |
+
zoneName.textContent = 'NORMAL SPACE';
|
| 699 |
+
zoneDescription.textContent = 'Standard combat zone';
|
| 700 |
+
gameContainer.className = 'game-container';
|
| 701 |
+
break;
|
| 702 |
+
case 'asteroid':
|
| 703 |
+
zoneName.textContent = 'ASTEROID FIELD';
|
| 704 |
+
zoneDescription.textContent = 'Navigate through space rocks';
|
| 705 |
+
gameContainer.className = 'game-container zone-asteroid';
|
| 706 |
+
break;
|
| 707 |
+
case 'nebula':
|
| 708 |
+
zoneName.textContent = 'NEBULA ZONE';
|
| 709 |
+
zoneDescription.textContent = 'Reduced visibility area';
|
| 710 |
+
gameContainer.className = 'game-container zone-nebula';
|
| 711 |
+
break;
|
| 712 |
+
case 'ice':
|
| 713 |
+
zoneName.textContent = 'ICE SECTOR';
|
| 714 |
+
zoneDescription.textContent = 'Slippery movement conditions';
|
| 715 |
+
gameContainer.className = 'game-container zone-ice';
|
| 716 |
+
break;
|
| 717 |
+
case 'vortex':
|
| 718 |
+
zoneName.textContent = 'VORTEX ZONE';
|
| 719 |
+
zoneDescription.textContent = 'Distorted space-time effects';
|
| 720 |
+
gameContainer.className = 'game-container zone-vortex';
|
| 721 |
+
break;
|
| 722 |
+
case 'electric':
|
| 723 |
+
zoneName.textContent = 'ELECTRIC FIELD';
|
| 724 |
+
zoneDescription.textContent = 'High energy interference';
|
| 725 |
+
gameContainer.className = 'game-container zone-electric';
|
| 726 |
+
break;
|
| 727 |
+
case 'gravity':
|
| 728 |
+
zoneName.textContent = 'GRAVITY WELL';
|
| 729 |
+
zoneDescription.textContent = 'Strong gravitational pull';
|
| 730 |
+
gameContainer.className = 'game-container zone-gravity';
|
| 731 |
+
break;
|
| 732 |
+
case 'plasma':
|
| 733 |
+
zoneName.textContent = 'PLASMA STORM';
|
| 734 |
+
zoneDescription.textContent = 'Ionized particle chaos';
|
| 735 |
+
gameContainer.className = 'game-container zone-plasma';
|
| 736 |
+
break;
|
| 737 |
+
case 'wormhole':
|
| 738 |
+
zoneName.textContent = 'WORMHOLE SPACE';
|
| 739 |
+
zoneDescription.textContent = 'Spacetime tunneling zone';
|
| 740 |
+
gameContainer.className = 'game-container zone-wormhole';
|
| 741 |
+
break;
|
| 742 |
+
}
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
// Create player ship
|
| 746 |
+
function createPlayerShip() {
|
| 747 |
+
playerShip = {
|
| 748 |
+
x: gameContainer.offsetWidth / 2,
|
| 749 |
+
y: gameContainer.offsetHeight / 2,
|
| 750 |
+
width: 30,
|
| 751 |
+
height: 30,
|
| 752 |
+
speed: 0,
|
| 753 |
+
angle: 0,
|
| 754 |
+
rotationSpeed: 0,
|
| 755 |
+
thrust: 0,
|
| 756 |
+
maxSpeed: 5,
|
| 757 |
+
friction: 0.95,
|
| 758 |
+
trail: [],
|
| 759 |
+
lastShot: 0,
|
| 760 |
+
lastBomb: 0,
|
| 761 |
+
weapon: 1,
|
| 762 |
+
handling: 1.0 // For zone effects
|
| 763 |
+
};
|
| 764 |
+
|
| 765 |
+
const shipElement = document.createElement('div');
|
| 766 |
+
shipElement.className = 'ship';
|
| 767 |
+
shipElement.innerHTML = '<i class="fas fa-fighter-jet text-2xl"></i>';
|
| 768 |
+
shipElement.style.color = '#ff4d4d';
|
| 769 |
+
gameContainer.appendChild(shipElement);
|
| 770 |
+
playerShip.element = shipElement;
|
| 771 |
+
updateShipPosition();
|
| 772 |
+
}
|
| 773 |
+
|
| 774 |
+
// Update ship position
|
| 775 |
+
function updateShipPosition() {
|
| 776 |
+
if (!playerShip) return;
|
| 777 |
+
|
| 778 |
+
playerShip.element.style.left = `${playerShip.x - playerShip.width/2}px`;
|
| 779 |
+
playerShip.element.style.top = `${playerShip.y - playerShip.height/2}px`;
|
| 780 |
+
playerShip.element.style.transform = `rotate(${playerShip.angle}deg)`;
|
| 781 |
+
|
| 782 |
+
// Add trail effect
|
| 783 |
+
if (playerShip.thrust > 0) {
|
| 784 |
+
const trail = document.createElement('div');
|
| 785 |
+
trail.className = 'ship-trail';
|
| 786 |
+
trail.style.left = `${playerShip.x - 5}px`;
|
| 787 |
+
trail.style.top = `${playerShip.y + 10}px`;
|
| 788 |
+
gameContainer.appendChild(trail);
|
| 789 |
+
playerShip.trail.push(trail);
|
| 790 |
+
|
| 791 |
+
// Remove old trails
|
| 792 |
+
if (playerShip.trail.length > 10) {
|
| 793 |
+
const oldTrail = playerShip.trail.shift();
|
| 794 |
+
if (oldTrail.parentNode) {
|
| 795 |
+
oldTrail.parentNode.removeChild(oldTrail);
|
| 796 |
+
}
|
| 797 |
+
}
|
| 798 |
+
}
|
| 799 |
+
|
| 800 |
+
// Fade out trails
|
| 801 |
+
playerShip.trail.forEach((trail, index) => {
|
| 802 |
+
const opacity = parseFloat(trail.style.opacity || 1);
|
| 803 |
+
if (opacity <= 0) {
|
| 804 |
+
if (trail.parentNode) {
|
| 805 |
+
trail.parentNode.removeChild(trail);
|
| 806 |
+
}
|
| 807 |
+
playerShip.trail.splice(index, 1);
|
| 808 |
+
} else {
|
| 809 |
+
trail.style.opacity = opacity - 0.1;
|
| 810 |
+
}
|
| 811 |
+
});
|
| 812 |
+
}
|
| 813 |
+
|
| 814 |
+
// Create enemy ship
|
| 815 |
+
function createEnemyShip() {
|
| 816 |
+
const shipType = Math.floor(Math.random() * 16) + 1;
|
| 817 |
+
const ship = {
|
| 818 |
+
x: Math.random() * gameContainer.offsetWidth,
|
| 819 |
+
y: Math.random() * gameContainer.offsetHeight,
|
| 820 |
+
width: 25,
|
| 821 |
+
height: 25,
|
| 822 |
+
speed: Math.random() * 2 + 1,
|
| 823 |
+
angle: Math.random() * 360,
|
| 824 |
+
rotationSpeed: (Math.random() - 0.5) * 5,
|
| 825 |
+
color: `hsl(${Math.random() * 360}, 70%, 60%)`,
|
| 826 |
+
lastShot: 0,
|
| 827 |
+
health: 100,
|
| 828 |
+
type: shipType
|
| 829 |
+
};
|
| 830 |
+
|
| 831 |
+
const shipElement = document.createElement('div');
|
| 832 |
+
shipElement.className = 'ship';
|
| 833 |
+
|
| 834 |
+
// Set ship icon based on type
|
| 835 |
+
switch(shipType) {
|
| 836 |
+
case 1: shipElement.innerHTML = '<i class="fas fa-fighter-jet text-xl"></i>'; break;
|
| 837 |
+
case 2: shipElement.innerHTML = '<i class="fas fa-space-shuttle text-xl"></i>'; break;
|
| 838 |
+
case 3: shipElement.innerHTML = '<i class="fas fa-rocket text-xl"></i>'; break;
|
| 839 |
+
case 4: shipElement.innerHTML = '<i class="fas fa-shield-alt text-xl"></i>'; break;
|
| 840 |
+
case 5: shipElement.innerHTML = '<i class="fas fa-star text-xl"></i>'; break;
|
| 841 |
+
case 6: shipElement.innerHTML = '<i class="fas fa-bolt text-xl"></i>'; break;
|
| 842 |
+
case 7: shipElement.innerHTML = '<i class="fas fa-wind text-xl"></i>'; break;
|
| 843 |
+
case 8: shipElement.innerHTML = '<i class="fas fa-moon text-xl"></i>'; break;
|
| 844 |
+
case 9: shipElement.innerHTML = '<i class="fas fa-ghost text-xl"></i>'; break;
|
| 845 |
+
case 10: shipElement.innerHTML = '<i class="fas fa-dragon text-xl"></i>'; break;
|
| 846 |
+
case 11: shipElement.innerHTML = '<i class="fas fa-snowflake text-xl"></i>'; break;
|
| 847 |
+
case 12: shipElement.innerHTML = '<i class="fas fa-sun text-xl"></i>'; break;
|
| 848 |
+
case 13: shipElement.innerHTML = '<i class="fas fa-crown text-xl"></i>'; break;
|
| 849 |
+
case 14: shipElement.innerHTML = '<i class="fas fa-skull text-xl"></i>'; break;
|
| 850 |
+
case 15: shipElement.innerHTML = '<i class="fas fa-hat-wizard text-xl"></i>'; break;
|
| 851 |
+
case 16: shipElement.innerHTML = '<i class="fas fa-heart text-xl"></i>'; break;
|
| 852 |
+
default: shipElement.innerHTML = '<i class="fas fa-space-shuttle text-xl"></i>';
|
| 853 |
+
}
|
| 854 |
+
|
| 855 |
+
shipElement.style.color = ship.color;
|
| 856 |
+
gameContainer.appendChild(shipElement);
|
| 857 |
+
ship.element = shipElement;
|
| 858 |
+
|
| 859 |
+
ships.push(ship);
|
| 860 |
+
updateEnemyPosition(ship);
|
| 861 |
+
}
|
| 862 |
+
|
| 863 |
+
// Update enemy position
|
| 864 |
+
function updateEnemyPosition(ship) {
|
| 865 |
+
ship.element.style.left = `${ship.x - ship.width/2}px`;
|
| 866 |
+
ship.element.style.top = `${ship.y - ship.height/2}px`;
|
| 867 |
+
ship.element.style.transform = `rotate(${ship.angle}deg)`;
|
| 868 |
+
}
|
| 869 |
+
|
| 870 |
+
// Create bullet
|
| 871 |
+
function createBullet(x, y, angle, isPlayer = true) {
|
| 872 |
+
const bullet = {
|
| 873 |
+
x: x,
|
| 874 |
+
y: y,
|
| 875 |
+
angle: angle,
|
| 876 |
+
speed: 10,
|
| 877 |
+
isPlayer: isPlayer,
|
| 878 |
+
life: 100
|
| 879 |
+
};
|
| 880 |
+
|
| 881 |
+
const bulletElement = document.createElement('div');
|
| 882 |
+
bulletElement.className = 'bullet';
|
| 883 |
+
bulletElement.style.backgroundColor = isPlayer ? '#ffff00' : '#ff6600';
|
| 884 |
+
gameContainer.appendChild(bulletElement);
|
| 885 |
+
bullet.element = bulletElement;
|
| 886 |
+
|
| 887 |
+
bullets.push(bullet);
|
| 888 |
+
updateBulletPosition(bullet);
|
| 889 |
+
}
|
| 890 |
+
|
| 891 |
+
// Update bullet position
|
| 892 |
+
function updateBulletPosition(bullet) {
|
| 893 |
+
bullet.element.style.left = `${bullet.x - 2}px`;
|
| 894 |
+
bullet.element.style.top = `${bullet.y - 5}px`;
|
| 895 |
+
}
|
| 896 |
+
|
| 897 |
+
// Create explosion
|
| 898 |
+
function createExplosion(x, y) {
|
| 899 |
+
const explosion = document.createElement('div');
|
| 900 |
+
explosion.className = 'explosion';
|
| 901 |
+
explosion.style.left = `${x - 15}px`;
|
| 902 |
+
explosion.style.top = `${y - 15}px`;
|
| 903 |
+
gameContainer.appendChild(explosion);
|
| 904 |
+
|
| 905 |
+
explosions.push(explosion);
|
| 906 |
+
|
| 907 |
+
// Remove explosion after animation
|
| 908 |
+
setTimeout(() => {
|
| 909 |
+
if (explosion.parentNode) {
|
| 910 |
+
explosion.parentNode.removeChild(explosion);
|
| 911 |
+
}
|
| 912 |
+
explosions.splice(explosions.indexOf(explosion), 1);
|
| 913 |
+
}, 500);
|
| 914 |
+
}
|
| 915 |
+
|
| 916 |
+
// Create powerup
|
| 917 |
+
function createPowerup() {
|
| 918 |
+
const powerup = {
|
| 919 |
+
x: Math.random() * (gameContainer.offsetWidth - 40) + 20,
|
| 920 |
+
y: Math.random() * (gameContainer.offsetHeight - 40) + 20,
|
| 921 |
+
type: Math.floor(Math.random() * 3) + 1, // 1: energy, 2: weapon, 3: shield
|
| 922 |
+
element: null
|
| 923 |
+
};
|
| 924 |
+
|
| 925 |
+
const powerupElement = document.createElement('div');
|
| 926 |
+
powerupElement.className = 'powerup';
|
| 927 |
+
powerupElement.style.left = `${powerup.x - 10}px`;
|
| 928 |
+
powerupElement.style.top = `${powerup.y - 10}px`;
|
| 929 |
+
|
| 930 |
+
switch(powerup.type) {
|
| 931 |
+
case 1:
|
| 932 |
+
powerupElement.style.background = 'radial-gradient(circle, #00ff00, #008800)';
|
| 933 |
+
break;
|
| 934 |
+
case 2:
|
| 935 |
+
powerupElement.style.background = 'radial-gradient(circle, #ffff00, #ffaa00)';
|
| 936 |
+
break;
|
| 937 |
+
case 3:
|
| 938 |
+
powerupElement.style.background = 'radial-gradient(circle, #00aaff, #0066cc)';
|
| 939 |
+
break;
|
| 940 |
+
}
|
| 941 |
+
|
| 942 |
+
gameContainer.appendChild(powerupElement);
|
| 943 |
+
powerup.element = powerupElement;
|
| 944 |
+
|
| 945 |
+
powerups.push(powerup);
|
| 946 |
+
}
|
| 947 |
+
|
| 948 |
+
// Update radar
|
| 949 |
+
function updateRadar() {
|
| 950 |
+
radar.innerHTML = '';
|
| 951 |
+
|
| 952 |
+
// Draw player dot
|
| 953 |
+
const playerDot = document.createElement('div');
|
| 954 |
+
playerDot.className = 'radar-dot';
|
| 955 |
+
playerDot.style.backgroundColor = '#ff0000';
|
| 956 |
+
playerDot.style.left = '50%';
|
| 957 |
+
playerDot.style.top = '50%';
|
| 958 |
+
radar.appendChild(playerDot);
|
| 959 |
+
|
| 960 |
+
// Draw enemy dots
|
| 961 |
+
ships.forEach(ship => {
|
| 962 |
+
const relX = (ship.x - playerShip.x) / 50;
|
| 963 |
+
const relY = (ship.y - playerShip.y) / 50;
|
| 964 |
+
|
| 965 |
+
if (Math.abs(relX) < 1 && Math.abs(relY) < 1) {
|
| 966 |
+
const dot = document.createElement('div');
|
| 967 |
+
dot.className = 'radar-dot';
|
| 968 |
+
dot.style.left = `${50 + relX * 50}%`;
|
| 969 |
+
dot.style.top = `${50 + relY * 50}%`;
|
| 970 |
+
radar.appendChild(dot);
|
| 971 |
+
}
|
| 972 |
+
});
|
| 973 |
+
}
|
| 974 |
+
|
| 975 |
+
// Handle collisions
|
| 976 |
+
function checkCollisions() {
|
| 977 |
+
// Bullet-enemy collisions
|
| 978 |
+
for (let i = bullets.length - 1; i >= 0; i--) {
|
| 979 |
+
const bullet = bullets[i];
|
| 980 |
+
if (!bullet.isPlayer) continue;
|
| 981 |
+
|
| 982 |
+
for (let j = ships.length - 1; j >= 0; j--) {
|
| 983 |
+
const ship = ships[j];
|
| 984 |
+
|
| 985 |
+
const dx = bullet.x - ship.x;
|
| 986 |
+
const dy = bullet.y - ship.y;
|
| 987 |
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 988 |
+
|
| 989 |
+
if (distance < 20) {
|
| 990 |
+
// Hit!
|
| 991 |
+
createExplosion(ship.x, ship.y);
|
| 992 |
+
ship.health -= 25;
|
| 993 |
+
|
| 994 |
+
if (ship.health <= 0) {
|
| 995 |
+
// Destroy ship
|
| 996 |
+
if (ship.element.parentNode) {
|
| 997 |
+
ship.element.parentNode.removeChild(ship.element);
|
| 998 |
+
}
|
| 999 |
+
ships.splice(j, 1);
|
| 1000 |
+
score += 100;
|
| 1001 |
+
scoreElement.textContent = score;
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
// Remove bullet
|
| 1005 |
+
if (bullet.element.parentNode) {
|
| 1006 |
+
bullet.element.parentNode.removeChild(bullet.element);
|
| 1007 |
+
}
|
| 1008 |
+
bullets.splice(i, 1);
|
| 1009 |
+
break;
|
| 1010 |
+
}
|
| 1011 |
+
}
|
| 1012 |
+
}
|
| 1013 |
+
|
| 1014 |
+
// Player-enemy collisions
|
| 1015 |
+
ships.forEach(ship => {
|
| 1016 |
+
const dx = playerShip.x - ship.x;
|
| 1017 |
+
const dy = playerShip.y - ship.y;
|
| 1018 |
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 1019 |
+
|
| 1020 |
+
if (distance < 25) {
|
| 1021 |
+
// Collision!
|
| 1022 |
+
createExplosion(playerShip.x, playerShip.y);
|
| 1023 |
+
energy -= 20;
|
| 1024 |
+
energyBar.style.width = `${energy}%`;
|
| 1025 |
+
energyValue.textContent = `${Math.floor(energy)}%`;
|
| 1026 |
+
|
| 1027 |
+
// Push ships apart
|
| 1028 |
+
const angle = Math.atan2(dy, dx);
|
| 1029 |
+
playerShip.x += Math.cos(angle) * 10;
|
| 1030 |
+
playerShip.y += Math.sin(angle) * 10;
|
| 1031 |
+
ship.x -= Math.cos(angle) * 10;
|
| 1032 |
+
ship.y -= Math.sin(angle) * 10;
|
| 1033 |
+
}
|
| 1034 |
+
});
|
| 1035 |
+
|
| 1036 |
+
// Player-powerup collisions
|
| 1037 |
+
for (let i = powerups.length - 1; i >= 0; i--) {
|
| 1038 |
+
const powerup = powerups[i];
|
| 1039 |
+
const dx = playerShip.x - powerup.x;
|
| 1040 |
+
const dy = playerShip.y - powerup.y;
|
| 1041 |
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 1042 |
+
|
| 1043 |
+
if (distance < 25) {
|
| 1044 |
+
// Collect powerup
|
| 1045 |
+
switch(powerup.type) {
|
| 1046 |
+
case 1: // Energy
|
| 1047 |
+
energy = Math.min(100, energy + 25);
|
| 1048 |
+
break;
|
| 1049 |
+
case 2: // Weapon
|
| 1050 |
+
selectedWeapon = (selectedWeapon % 4) + 1;
|
| 1051 |
+
updateWeaponSelection();
|
| 1052 |
+
break;
|
| 1053 |
+
case 3: // Shield
|
| 1054 |
+
energy = Math.min(100, energy + 10);
|
| 1055 |
+
break;
|
| 1056 |
+
}
|
| 1057 |
+
|
| 1058 |
+
energyBar.style.width = `${energy}%`;
|
| 1059 |
+
energyValue.textContent = `${Math.floor(energy)}%`;
|
| 1060 |
+
|
| 1061 |
+
if (powerup.element.parentNode) {
|
| 1062 |
+
powerup.element.parentNode.removeChild(powerup.element);
|
| 1063 |
+
}
|
| 1064 |
+
powerups.splice(i, 1);
|
| 1065 |
+
}
|
| 1066 |
+
}
|
| 1067 |
+
|
| 1068 |
+
// Player-zone element collisions
|
| 1069 |
+
switch(currentZone) {
|
| 1070 |
+
case 'asteroid':
|
| 1071 |
+
asteroids.forEach(asteroid => {
|
| 1072 |
+
const dx = playerShip.x - asteroid.x;
|
| 1073 |
+
const dy = playerShip.y - asteroid.y;
|
| 1074 |
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 1075 |
+
|
| 1076 |
+
if (distance < asteroid.size/2 + 15) {
|
| 1077 |
+
// Collision with asteroid
|
| 1078 |
+
createExplosion(playerShip.x, playerShip.y);
|
| 1079 |
+
energy -= 10;
|
| 1080 |
+
energyBar.style.width = `${energy}%`;
|
| 1081 |
+
energyValue.textContent = `${Math.floor(energy)}%`;
|
| 1082 |
+
|
| 1083 |
+
// Push player away
|
| 1084 |
+
const angle = Math.atan2(dy, dx);
|
| 1085 |
+
playerShip.x += Math.cos(angle) * 15;
|
| 1086 |
+
playerShip.y += Math.sin(angle) * 15;
|
| 1087 |
+
}
|
| 1088 |
+
});
|
| 1089 |
+
break;
|
| 1090 |
+
}
|
| 1091 |
+
}
|
| 1092 |
+
|
| 1093 |
+
// Update weapon selection UI
|
| 1094 |
+
function updateWeaponSelection() {
|
| 1095 |
+
document.querySelectorAll('.weapon-icon').forEach(icon => {
|
| 1096 |
+
icon.classList.remove('active');
|
| 1097 |
+
});
|
| 1098 |
+
document.querySelector(`.weapon-icon[data-weapon="${selectedWeapon}"]`).classList.add('active');
|
| 1099 |
+
}
|
| 1100 |
+
|
| 1101 |
+
// Update ship selection UI
|
| 1102 |
+
function updateShipSelection() {
|
| 1103 |
+
document.querySelectorAll('.ship-icon').forEach(icon => {
|
| 1104 |
+
icon.classList.remove('ship-selected');
|
| 1105 |
+
});
|
| 1106 |
+
document.querySelector(`.ship-icon[data-ship="${selectedShip}"]`).classList.add('ship-selected');
|
| 1107 |
+
}
|
| 1108 |
+
|
| 1109 |
+
// Game loop
|
| 1110 |
+
function gameLoop(timestamp) {
|
| 1111 |
+
// Calculate FPS
|
| 1112 |
+
frameCount++;
|
| 1113 |
+
if (timestamp >= lastFpsUpdate + 1000) {
|
| 1114 |
+
fps = frameCount;
|
| 1115 |
+
frameCount = 0;
|
| 1116 |
+
lastFpsUpdate = timestamp;
|
| 1117 |
+
fpsElement.textContent = fps;
|
| 1118 |
+
}
|
| 1119 |
+
|
| 1120 |
+
// Delta time for smooth movement
|
| 1121 |
+
const deltaTime = timestamp - lastTime;
|
| 1122 |
+
lastTime = timestamp;
|
| 1123 |
+
|
| 1124 |
+
// Zone management
|
| 1125 |
+
zoneTimer += deltaTime;
|
| 1126 |
+
if (zoneTimer > 15000) { // Change zone every 15 seconds
|
| 1127 |
+
const zones = ['normal', 'asteroid', 'nebula', 'ice'];
|
| 1128 |
+
const newZone = zones[Math.floor(Math.random() * zones.length)];
|
| 1129 |
+
if (newZone !== currentZone) {
|
| 1130 |
+
currentZone = newZone;
|
| 1131 |
+
updateZoneDisplay();
|
| 1132 |
+
createZoneElements();
|
| 1133 |
+
}
|
| 1134 |
+
zoneTimer = 0;
|
| 1135 |
+
}
|
| 1136 |
+
|
| 1137 |
+
// Handle input
|
| 1138 |
+
if (keys['ArrowLeft'] || keys['a'] || keys['A']) {
|
| 1139 |
+
playerShip.rotationSpeed = -4 * playerShip.handling;
|
| 1140 |
+
} else if (keys['ArrowRight'] || keys['d'] || keys['D']) {
|
| 1141 |
+
playerShip.rotationSpeed = 4 * playerShip.handling;
|
| 1142 |
+
} else {
|
| 1143 |
+
playerShip.rotationSpeed = 0;
|
| 1144 |
+
}
|
| 1145 |
+
|
| 1146 |
+
if (keys['ArrowUp'] || keys['w'] || keys['W']) {
|
| 1147 |
+
playerShip.thrust = 0.2;
|
| 1148 |
+
playerShip.speed = Math.min(playerShip.maxSpeed, playerShip.speed + playerShip.thrust);
|
| 1149 |
+
} else {
|
| 1150 |
+
playerShip.thrust = 0;
|
| 1151 |
+
}
|
| 1152 |
+
|
| 1153 |
+
if (keys[' '] && timestamp - playerShip.lastShot > 150) {
|
| 1154 |
+
// Shoot bullet
|
| 1155 |
+
createBullet(
|
| 1156 |
+
playerShip.x + Math.cos(playerShip.angle * Math.PI/180) * 20,
|
| 1157 |
+
playerShip.y + Math.sin(playerShip.angle * Math.PI/180) * 20,
|
| 1158 |
+
playerShip.angle
|
| 1159 |
+
);
|
| 1160 |
+
playerShip.lastShot = timestamp;
|
| 1161 |
+
}
|
| 1162 |
+
|
| 1163 |
+
if ((keys['ArrowDown'] || keys['s'] || keys['S']) && timestamp - playerShip.lastBomb > 1000) {
|
| 1164 |
+
// Drop bomb (simplified as area attack)
|
| 1165 |
+
ships.forEach(ship => {
|
| 1166 |
+
const dx = playerShip.x - ship.x;
|
| 1167 |
+
const dy = playerShip.y - ship.y;
|
| 1168 |
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 1169 |
+
|
| 1170 |
+
if (distance < 150) {
|
| 1171 |
+
ship.health -= 30;
|
| 1172 |
+
createExplosion(ship.x, ship.y);
|
| 1173 |
+
|
| 1174 |
+
if (ship.health <= 0) {
|
| 1175 |
+
if (ship.element.parentNode) {
|
| 1176 |
+
ship.element.parentNode.removeChild(ship.element);
|
| 1177 |
+
}
|
| 1178 |
+
ships.splice(ships.indexOf(ship), 1);
|
| 1179 |
+
score += 100;
|
| 1180 |
+
scoreElement.textContent = score;
|
| 1181 |
+
}
|
| 1182 |
+
}
|
| 1183 |
+
});
|
| 1184 |
+
|
| 1185 |
+
playerShip.lastBomb = timestamp;
|
| 1186 |
+
}
|
| 1187 |
+
|
| 1188 |
+
// Update player ship
|
| 1189 |
+
playerShip.angle += playerShip.rotationSpeed;
|
| 1190 |
+
|
| 1191 |
+
// Apply zone effects
|
| 1192 |
+
let speedModifier = 1;
|
| 1193 |
+
let frictionModifier = playerShip.friction;
|
| 1194 |
+
|
| 1195 |
+
switch(currentZone) {
|
| 1196 |
+
case 'ice':
|
| 1197 |
+
speedModifier = 1.2;
|
| 1198 |
+
frictionModifier = 0.98;
|
| 1199 |
+
break;
|
| 1200 |
+
case 'nebula':
|
| 1201 |
+
speedModifier = 0.8;
|
| 1202 |
+
break;
|
| 1203 |
+
}
|
| 1204 |
+
|
| 1205 |
+
playerShip.x += Math.cos(playerShip.angle * Math.PI/180) * playerShip.speed * speedModifier;
|
| 1206 |
+
playerShip.y += Math.sin(playerShip.angle * Math.PI/180) * playerShip.speed * speedModifier;
|
| 1207 |
+
|
| 1208 |
+
// Apply friction
|
| 1209 |
+
playerShip.speed *= frictionModifier;
|
| 1210 |
+
|
| 1211 |
+
// Boundary checks
|
| 1212 |
+
if (playerShip.x < 0) playerShip.x = gameContainer.offsetWidth;
|
| 1213 |
+
if (playerShip.x > gameContainer.offsetWidth) playerShip.x = 0;
|
| 1214 |
+
if (playerShip.y < 0) playerShip.y = gameContainer.offsetHeight;
|
| 1215 |
+
if (playerShip.y > gameContainer.offsetHeight) playerShip.y = 0;
|
| 1216 |
+
|
| 1217 |
+
updateShipPosition();
|
| 1218 |
+
|
| 1219 |
+
// Update enemy ships
|
| 1220 |
+
ships.forEach(ship => {
|
| 1221 |
+
// Simple AI - move towards player
|
| 1222 |
+
const dx = playerShip.x - ship.x;
|
| 1223 |
+
const dy = playerShip.y - ship.y;
|
| 1224 |
+
const angle = Math.atan2(dy, dx);
|
| 1225 |
+
|
| 1226 |
+
ship.angle = angle * 180/Math.PI;
|
| 1227 |
+
ship.x += Math.cos(angle) * ship.speed;
|
| 1228 |
+
ship.y += Math.sin(angle) * ship.speed;
|
| 1229 |
+
|
| 1230 |
+
// Boundary checks
|
| 1231 |
+
if (ship.x < 0) ship.x = gameContainer.offsetWidth;
|
| 1232 |
+
if (ship.x > gameContainer.offsetWidth) ship.x = 0;
|
| 1233 |
+
if (ship.y < 0) ship.y = gameContainer.offsetHeight;
|
| 1234 |
+
if (ship.y > gameContainer.offsetHeight) ship.y = 0;
|
| 1235 |
+
|
| 1236 |
+
updateEnemyPosition(ship);
|
| 1237 |
+
|
| 1238 |
+
// Enemy shooting
|
| 1239 |
+
if (timestamp - ship.lastShot > 1000 + Math.random() * 2000) {
|
| 1240 |
+
createBullet(
|
| 1241 |
+
ship.x + Math.cos(ship.angle * Math.PI/180) * 20,
|
| 1242 |
+
ship.y + Math.sin(ship.angle * Math.PI/180) * 20,
|
| 1243 |
+
ship.angle,
|
| 1244 |
+
false
|
| 1245 |
+
);
|
| 1246 |
+
ship.lastShot = timestamp;
|
| 1247 |
+
}
|
| 1248 |
+
});
|
| 1249 |
+
|
| 1250 |
+
// Update bullets
|
| 1251 |
+
for (let i = bullets.length - 1; i >= 0; i--) {
|
| 1252 |
+
const bullet = bullets[i];
|
| 1253 |
+
bullet.x += Math.cos(bullet.angle * Math.PI/180) * bullet.speed;
|
| 1254 |
+
bullet.y += Math.sin(bullet.angle * Math.PI/180) * bullet.speed;
|
| 1255 |
+
bullet.life--;
|
| 1256 |
+
|
| 1257 |
+
// Boundary checks
|
| 1258 |
+
if (bullet.x < 0 || bullet.x > gameContainer.offsetWidth ||
|
| 1259 |
+
bullet.y < 0 || bullet.y > gameContainer.offsetHeight ||
|
| 1260 |
+
bullet.life <= 0) {
|
| 1261 |
+
if (bullet.element.parentNode) {
|
| 1262 |
+
bullet.element.parentNode.removeChild(bullet.element);
|
| 1263 |
+
}
|
| 1264 |
+
bullets.splice(i, 1);
|
| 1265 |
+
continue;
|
| 1266 |
+
}
|
| 1267 |
+
|
| 1268 |
+
updateBulletPosition(bullet);
|
| 1269 |
+
}
|
| 1270 |
+
|
| 1271 |
+
// Update energy
|
| 1272 |
+
energy = Math.min(100, energy + 0.05);
|
| 1273 |
+
energyBar.style.width = `${energy}%`;
|
| 1274 |
+
energyValue.textContent = `${Math.floor(energy)}%`;
|
| 1275 |
+
|
| 1276 |
+
// Check collisions
|
| 1277 |
+
checkCollisions();
|
| 1278 |
+
|
| 1279 |
+
// Update radar
|
| 1280 |
+
updateRadar();
|
| 1281 |
+
|
| 1282 |
+
// Spawn enemies
|
| 1283 |
+
if (ships.length < 8 && Math.random() < 0.03) {
|
| 1284 |
+
createEnemyShip();
|
| 1285 |
+
}
|
| 1286 |
+
|
| 1287 |
+
// Spawn powerups
|
| 1288 |
+
if (powerups.length < 3 && Math.random() < 0.007) {
|
| 1289 |
+
createPowerup();
|
| 1290 |
+
}
|
| 1291 |
+
|
| 1292 |
+
requestAnimationFrame(gameLoop);
|
| 1293 |
+
}
|
| 1294 |
+
|
| 1295 |
+
// Event listeners
|
| 1296 |
+
window.addEventListener('keydown', (e) => {
|
| 1297 |
+
keys[e.key] = true;
|
| 1298 |
+
});
|
| 1299 |
+
|
| 1300 |
+
window.addEventListener('keyup', (e) => {
|
| 1301 |
+
keys[e.key] = false;
|
| 1302 |
+
});
|
| 1303 |
+
|
| 1304 |
+
// Weapon selection
|
| 1305 |
+
document.querySelectorAll('.weapon-icon').forEach(icon => {
|
| 1306 |
+
icon.addEventListener('click', () => {
|
| 1307 |
+
selectedWeapon = parseInt(icon.dataset.weapon);
|
| 1308 |
+
updateWeaponSelection();
|
| 1309 |
+
});
|
| 1310 |
+
});
|
| 1311 |
+
|
| 1312 |
+
// Ship selection
|
| 1313 |
+
document.querySelectorAll('.ship-icon').forEach(icon => {
|
| 1314 |
+
icon.addEventListener('click', () => {
|
| 1315 |
+
selectedShip = parseInt(icon.dataset.ship);
|
| 1316 |
+
updateShipSelection();
|
| 1317 |
+
|
| 1318 |
+
// Change ship appearance
|
| 1319 |
+
switch(selectedShip) {
|
| 1320 |
+
case 1:
|
| 1321 |
+
playerShip.element.innerHTML = '<i class="fas fa-fighter-jet text-2xl"></i>';
|
| 1322 |
+
playerShip.element.style.color = '#ff4d4d';
|
| 1323 |
+
break;
|
| 1324 |
+
case 2:
|
| 1325 |
+
playerShip.element.innerHTML = '<i class="fas fa-space-shuttle text-2xl"></i>';
|
| 1326 |
+
playerShip.element.style.color = '#4dff4d';
|
| 1327 |
+
break;
|
| 1328 |
+
case 3:
|
| 1329 |
+
playerShip.element.innerHTML = '<i class="fas fa-rocket text-2xl"></i>';
|
| 1330 |
+
playerShip.element.style.color = '#4d4dff';
|
| 1331 |
+
break;
|
| 1332 |
+
case 4:
|
| 1333 |
+
playerShip.element.innerHTML = '<i class="fas fa-shield-alt text-2xl"></i>';
|
| 1334 |
+
playerShip.element.style.color = '#ffff4d';
|
| 1335 |
+
break;
|
| 1336 |
+
case 5:
|
| 1337 |
+
playerShip.element.innerHTML = '<i class="fas fa-star text-2xl"></i>';
|
| 1338 |
+
playerShip.element.style.color = '#bd4dff';
|
| 1339 |
+
break;
|
| 1340 |
+
case 6:
|
| 1341 |
+
playerShip.element.innerHTML = '<i class="fas fa-bolt text-2xl"></i>';
|
| 1342 |
+
playerShip.element.style.color = '#ff9d4d';
|
| 1343 |
+
break;
|
| 1344 |
+
case 7:
|
| 1345 |
+
playerShip.element.innerHTML = '<i class="fas fa-wind text-2xl"></i>';
|
| 1346 |
+
playerShip.element.style.color = '#4dffff';
|
| 1347 |
+
break;
|
| 1348 |
+
case 8:
|
| 1349 |
+
playerShip.element.innerHTML = '<i class="fas fa-moon text-2xl"></i>';
|
| 1350 |
+
playerShip.element.style.color = '#ff4dd2';
|
| 1351 |
+
break;
|
| 1352 |
+
case 9:
|
| 1353 |
+
playerShip.element.innerHTML = '<i class="fas fa-ghost text-2xl"></i>';
|
| 1354 |
+
playerShip.element.style.color = '#a0a0a0';
|
| 1355 |
+
break;
|
| 1356 |
+
case 10:
|
| 1357 |
+
playerShip.element.innerHTML = '<i class="fas fa-dragon text-2xl"></i>';
|
| 1358 |
+
playerShip.element.style.color = '#00ff00';
|
| 1359 |
+
break;
|
| 1360 |
+
case 11:
|
| 1361 |
+
playerShip.element.innerHTML = '<i class="fas fa-snowflake text-2xl"></i>';
|
| 1362 |
+
playerShip.element.style.color = '#87ceeb';
|
| 1363 |
+
break;
|
| 1364 |
+
case 12:
|
| 1365 |
+
playerShip.element.innerHTML = '<i class="fas fa-sun text-2xl"></i>';
|
| 1366 |
+
playerShip.element.style.color = '#ffff00';
|
| 1367 |
+
break;
|
| 1368 |
+
case 13:
|
| 1369 |
+
playerShip.element.innerHTML = '<i class="fas fa-crown text-2xl"></i>';
|
| 1370 |
+
playerShip.element.style.color = '#ff00ff';
|
| 1371 |
+
break;
|
| 1372 |
+
case 14:
|
| 1373 |
+
playerShip.element.innerHTML = '<i class="fas fa-skull text-2xl"></i>';
|
| 1374 |
+
playerShip.element.style.color = '#404040';
|
| 1375 |
+
break;
|
| 1376 |
+
case 15:
|
| 1377 |
+
playerShip.element.innerHTML = '<i class="fas fa-hat-wizard text-2xl"></i>';
|
| 1378 |
+
playerShip.element.style.color = '#8000ff';
|
| 1379 |
+
break;
|
| 1380 |
+
case 16:
|
| 1381 |
+
playerShip.element.innerHTML = '<i class="fas fa-heart text-2xl"></i>';
|
| 1382 |
+
playerShip.element.style.color = '#ff69b4';
|
| 1383 |
+
break;
|
| 1384 |
+
}
|
| 1385 |
+
});
|
| 1386 |
+
});
|
| 1387 |
+
|
| 1388 |
+
// Initialize game
|
| 1389 |
+
window.addEventListener('load', () => {
|
| 1390 |
+
createStars();
|
| 1391 |
+
createShipMenu();
|
| 1392 |
+
showShipMenu();
|
| 1393 |
+
updateWeaponSelection();
|
| 1394 |
+
updateShipSelection();
|
| 1395 |
+
|
| 1396 |
+
// Create initial enemies
|
| 1397 |
+
for (let i = 0; i < 3; i++) {
|
| 1398 |
+
createEnemyShip();
|
| 1399 |
+
}
|
| 1400 |
+
|
| 1401 |
+
// Start game loop
|
| 1402 |
+
requestAnimationFrame(gameLoop);
|
| 1403 |
+
});
|
| 1404 |
+
</script>
|
| 1405 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=defaultdolphin/subspace-2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1406 |
+
</html>
|