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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>STARFIGHTER ULTIMATE - DOGFIGHT</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.55.2/phaser.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500&display=swap');
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'Orbitron', sans-serif;
|
| 15 |
+
margin: 0;
|
| 16 |
+
padding: 0;
|
| 17 |
+
overflow: hidden;
|
| 18 |
+
background: #000;
|
| 19 |
+
color: #0ff;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
#game-container {
|
| 23 |
+
position: absolute;
|
| 24 |
+
top: 0;
|
| 25 |
+
left: 0;
|
| 26 |
+
width: 100%;
|
| 27 |
+
height: 100%;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.game-hud {
|
| 31 |
+
position: absolute;
|
| 32 |
+
top: 20px;
|
| 33 |
+
left: 20px;
|
| 34 |
+
z-index: 100;
|
| 35 |
+
background: rgba(0, 0, 0, 0.7);
|
| 36 |
+
padding: 10px 20px;
|
| 37 |
+
border-radius: 10px;
|
| 38 |
+
border: 2px solid #0ff;
|
| 39 |
+
box-shadow: 0 0 10px #0ff;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.game-hud span {
|
| 43 |
+
margin-right: 20px;
|
| 44 |
+
font-size: 18px;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.game-hud i {
|
| 48 |
+
margin-right: 5px;
|
| 49 |
+
color: #0ff;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.pause-menu {
|
| 53 |
+
position: absolute;
|
| 54 |
+
top: 50%;
|
| 55 |
+
left: 50%;
|
| 56 |
+
transform: translate(-50%, -50%);
|
| 57 |
+
background: rgba(0, 0, 0, 0.9);
|
| 58 |
+
padding: 30px;
|
| 59 |
+
border-radius: 15px;
|
| 60 |
+
border: 3px solid #f00;
|
| 61 |
+
text-align: center;
|
| 62 |
+
z-index: 200;
|
| 63 |
+
display: none;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.pause-menu h2 {
|
| 67 |
+
font-size: 36px;
|
| 68 |
+
margin-bottom: 20px;
|
| 69 |
+
color: #0ff;
|
| 70 |
+
text-shadow: 0 0 10px #f00;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.pause-menu button {
|
| 74 |
+
background: linear-gradient(45deg, #f00, #0ff);
|
| 75 |
+
border: none;
|
| 76 |
+
color: white;
|
| 77 |
+
padding: 10px 20px;
|
| 78 |
+
margin: 10px;
|
| 79 |
+
border-radius: 5px;
|
| 80 |
+
cursor: pointer;
|
| 81 |
+
font-size: 18px;
|
| 82 |
+
font-family: 'Orbitron', sans-serif;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.radar {
|
| 86 |
+
position: absolute;
|
| 87 |
+
bottom: 20px;
|
| 88 |
+
right: 20px;
|
| 89 |
+
width: 150px;
|
| 90 |
+
height: 150px;
|
| 91 |
+
border-radius: 50%;
|
| 92 |
+
border: 2px solid #0ff;
|
| 93 |
+
background: rgba(0, 0, 0, 0.5);
|
| 94 |
+
z-index: 100;
|
| 95 |
+
}
|
| 96 |
+
</style>
|
| 97 |
+
</head>
|
| 98 |
+
<body>
|
| 99 |
+
<div id="game-container"></div>
|
| 100 |
+
|
| 101 |
+
<div class="game-hud">
|
| 102 |
+
<span><i data-feather="shield"></i> Shields: <span id="shields">100%</span></span>
|
| 103 |
+
<span><i data-feather="zap"></i> Energy: <span id="energy">100%</span></span>
|
| 104 |
+
<span><i data-feather="target"></i> Kills: <span id="kills">0</span></span>
|
| 105 |
+
<button id="pause-btn" style="position: absolute; right: 20px; top: 10px;">
|
| 106 |
+
<i data-feather="pause"></i>
|
| 107 |
+
</button>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<div class="radar"></div>
|
| 111 |
+
|
| 112 |
+
<div class="pause-menu">
|
| 113 |
+
<h2>BATTLE PAUSED</h2>
|
| 114 |
+
<button id="resume-btn"><i data-feather="play"></i> RESUME</button>
|
| 115 |
+
<button id="restart-btn"><i data-feather="refresh-cw"></i> RESTART</button>
|
| 116 |
+
<button id="quit-btn"><i data-feather="home"></i> RETURN TO HANGAR</button>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<script>
|
| 120 |
+
feather.replace();
|
| 121 |
+
|
| 122 |
+
// Starfighter game implementation
|
| 123 |
+
const config = {
|
| 124 |
+
type: Phaser.AUTO,
|
| 125 |
+
width: window.innerWidth,
|
| 126 |
+
height: window.innerHeight,
|
| 127 |
+
backgroundColor: '#000033',
|
| 128 |
+
scene: {
|
| 129 |
+
preload: preload,
|
| 130 |
+
create: create,
|
| 131 |
+
update: update
|
| 132 |
+
},
|
| 133 |
+
physics: {
|
| 134 |
+
default: 'arcade',
|
| 135 |
+
arcade: {
|
| 136 |
+
gravity: { y: 0 },
|
| 137 |
+
debug: false
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
};
|
| 141 |
+
|
| 142 |
+
const game = new Phaser.Game(config);
|
| 143 |
+
let ship, enemies = [], lasers = [], enemyLasers = [];
|
| 144 |
+
let shields = 100, energy = 100, kills = 0;
|
| 145 |
+
let cursors, fireButton, gamePaused = false;
|
| 146 |
+
|
| 147 |
+
function preload() {
|
| 148 |
+
this.load.image('stars', 'http://static.photos/space/1200x630/1');
|
| 149 |
+
this.load.image('ship', 'https://labs.phaser.io/assets/sprites/thrust_ship.png');
|
| 150 |
+
this.load.image('enemy', 'https://labs.phaser.io/assets/sprites/thrust_ship2.png');
|
| 151 |
+
this.load.image('laser', 'https://labs.phaser.io/assets/sprites/bullets/bullet6.png');
|
| 152 |
+
this.load.image('explosion', 'https://labs.phaser.io/assets/sprites/explosion.png');
|
| 153 |
+
this.load.image('powerup', 'https://labs.phaser.io/assets/sprites/asteroid.png');
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
function create() {
|
| 157 |
+
// Create starfield background
|
| 158 |
+
this.add.tileSprite(0, 0, config.width * 2, config.height * 2, 'stars').setOrigin(0, 0);
|
| 159 |
+
|
| 160 |
+
// Create player ship
|
| 161 |
+
ship = this.physics.add.sprite(config.width / 2, config.height / 2, 'ship');
|
| 162 |
+
ship.setCollideWorldBounds(true);
|
| 163 |
+
ship.setScale(0.8);
|
| 164 |
+
ship.setAngle(-90);
|
| 165 |
+
|
| 166 |
+
// Create enemies
|
| 167 |
+
createEnemyWave(this);
|
| 168 |
+
|
| 169 |
+
// Controls
|
| 170 |
+
cursors = this.input.keyboard.createCursorKeys();
|
| 171 |
+
fireButton = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);
|
| 172 |
+
|
| 173 |
+
// Collisions
|
| 174 |
+
this.physics.add.overlap(ship, enemyLasers, hitByLaser, null, this);
|
| 175 |
+
this.physics.add.overlap(lasers, enemies, hitEnemy, null, this);
|
| 176 |
+
|
| 177 |
+
// UI events
|
| 178 |
+
document.getElementById('pause-btn').addEventListener('click', togglePause);
|
| 179 |
+
document.getElementById('resume-btn').addEventListener('click', togglePause);
|
| 180 |
+
document.getElementById('restart-btn').addEventListener('click', restartGame);
|
| 181 |
+
document.getElementById('quit-btn').addEventListener('click', () => {
|
| 182 |
+
window.location.href = 'starfighter.html';
|
| 183 |
+
});
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
function update() {
|
| 187 |
+
if (gamePaused) return;
|
| 188 |
+
|
| 189 |
+
// Player movement
|
| 190 |
+
if (cursors.left.isDown) {
|
| 191 |
+
ship.setVelocityX(-200);
|
| 192 |
+
} else if (cursors.right.isDown) {
|
| 193 |
+
ship.setVelocityX(200);
|
| 194 |
+
} else {
|
| 195 |
+
ship.setVelocityX(0);
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
if (cursors.up.isDown) {
|
| 199 |
+
ship.setVelocityY(-200);
|
| 200 |
+
} else if (cursors.down.isDown) {
|
| 201 |
+
ship.setVelocityY(200);
|
| 202 |
+
} else {
|
| 203 |
+
ship.setVelocityY(0);
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
// Firing
|
| 207 |
+
if (fireButton.isDown && energy > 0) {
|
| 208 |
+
fireLaser(this);
|
| 209 |
+
energy -= 2;
|
| 210 |
+
if (energy < 0) energy = 0;
|
| 211 |
+
document.getElementById('energy').textContent = `${energy}%`;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
// Recharge energy when not firing
|
| 215 |
+
if (fireButton.isUp && energy < 100) {
|
| 216 |
+
energy += 0.5;
|
| 217 |
+
document.getElementById('energy').textContent = `${Math.floor(energy)}%`;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
// Enemy AI
|
| 221 |
+
enemies.forEach(enemy => {
|
| 222 |
+
this.physics.moveToObject(enemy, ship, 100);
|
| 223 |
+
|
| 224 |
+
// Enemy firing logic
|
| 225 |
+
if (Phaser.Math.Between(1, 100) > 98) {
|
| 226 |
+
const angle = Phaser.Math.Angle.Between(
|
| 227 |
+
enemy.x, enemy.y,
|
| 228 |
+
ship.x, ship.y
|
| 229 |
+
);
|
| 230 |
+
|
| 231 |
+
const laser = this.physics.add.sprite(enemy.x, enemy.y, 'laser');
|
| 232 |
+
laser.setVelocity(
|
| 233 |
+
Math.cos(angle) * 300,
|
| 234 |
+
Math.sin(angle) * 300
|
| 235 |
+
);
|
| 236 |
+
laser.setTint(0xff0000);
|
| 237 |
+
enemyLasers.push(laser);
|
| 238 |
+
}
|
| 239 |
+
});
|
| 240 |
+
|
| 241 |
+
// Clean up off-screen lasers
|
| 242 |
+
lasers.forEach(laser => {
|
| 243 |
+
if (laser.y < 0 || laser.y > config.height || laser.x < 0 || laser.x > config.width) {
|
| 244 |
+
laser.destroy();
|
| 245 |
+
lasers.splice(lasers.indexOf(laser), 1);
|
| 246 |
+
}
|
| 247 |
+
});
|
| 248 |
+
|
| 249 |
+
enemyLasers.forEach(laser => {
|
| 250 |
+
if (laser.y < 0 || laser.y > config.height || laser.x < 0 || laser.x > config.width) {
|
| 251 |
+
laser.destroy();
|
| 252 |
+
enemyLasers.splice(enemyLasers.indexOf(laser), 1);
|
| 253 |
+
}
|
| 254 |
+
});
|
| 255 |
+
|
| 256 |
+
// Spawn more enemies if needed
|
| 257 |
+
if (enemies.length < 5) {
|
| 258 |
+
createEnemyWave(this);
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
function createEnemyWave(scene) {
|
| 263 |
+
for (let i = 0; i < 5; i++) {
|
| 264 |
+
const x = Phaser.Math.Between(0, config.width);
|
| 265 |
+
const y = Phaser.Math.Between(0, config.height / 2);
|
| 266 |
+
const enemy = scene.physics.add.sprite(x, y, 'enemy');
|
| 267 |
+
enemy.setScale(0.8);
|
| 268 |
+
enemy.setTint(0xff0000);
|
| 269 |
+
enemies.push(enemy);
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
function fireLaser(scene) {
|
| 274 |
+
const laser = scene.physics.add.sprite(ship.x, ship.y - 20, 'laser');
|
| 275 |
+
laser.setVelocityY(-500);
|
| 276 |
+
laser.setTint(0x00ffff);
|
| 277 |
+
lasers.push(laser);
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
function hitByLaser(player, laser) {
|
| 281 |
+
laser.destroy();
|
| 282 |
+
shields -= 10;
|
| 283 |
+
if (shields < 0) shields = 0;
|
| 284 |
+
document.getElementById('shields').textContent = `${shields}%`;
|
| 285 |
+
|
| 286 |
+
if (shields <= 0) {
|
| 287 |
+
gameOver(scene);
|
| 288 |
+
}
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
function hitEnemy(laser, enemy) {
|
| 292 |
+
laser.destroy();
|
| 293 |
+
enemies.splice(enemies.indexOf(enemy), 1);
|
| 294 |
+
enemy.destroy();
|
| 295 |
+
|
| 296 |
+
// Create explosion
|
| 297 |
+
const explosion = this.add.sprite(enemy.x, enemy.y, 'explosion');
|
| 298 |
+
explosion.setScale(2);
|
| 299 |
+
explosion.play('explode');
|
| 300 |
+
|
| 301 |
+
kills++;
|
| 302 |
+
document.getElementById('kills').textContent = kills;
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
function gameOver(scene) {
|
| 306 |
+
alert(`Mission Failed! You destroyed ${kills} enemy ships.`);
|
| 307 |
+
restartGame();
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
function togglePause() {
|
| 311 |
+
gamePaused = !gamePaused;
|
| 312 |
+
const pauseMenu = document.querySelector('.pause-menu');
|
| 313 |
+
pauseMenu.style.display = gamePaused ? 'block' : 'none';
|
| 314 |
+
if (gamePaused) {
|
| 315 |
+
this.scene.pause();
|
| 316 |
+
} else {
|
| 317 |
+
this.scene.resume();
|
| 318 |
+
}
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
function restartGame() {
|
| 322 |
+
window.location.reload();
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
// Handle window resize
|
| 326 |
+
window.addEventListener('resize', () => {
|
| 327 |
+
game.scale.resize(window.innerWidth, window.innerHeight);
|
| 328 |
+
});
|
| 329 |
+
</script>
|
| 330 |
+
</body>
|
| 331 |
+
</html>
|
index.html
CHANGED
|
@@ -177,9 +177,9 @@
|
|
| 177 |
|
| 178 |
<!-- Footer -->
|
| 179 |
<div class="mt-16 text-center text-gray-400">
|
| 180 |
-
<a href="
|
| 181 |
-
|
| 182 |
-
|
| 183 |
<div class="flex justify-center space-x-6 mb-4">
|
| 184 |
<a href="#" class="hover:text-cyan-400 transition-colors"><i data-feather="twitter"></i></a>
|
| 185 |
<a href="#" class="hover:text-purple-400 transition-colors"><i data-feather="instagram"></i></a>
|
|
|
|
| 177 |
|
| 178 |
<!-- Footer -->
|
| 179 |
<div class="mt-16 text-center text-gray-400">
|
| 180 |
+
<a href="starfighter.html" class="inline-block bg-gradient-to-r from-blue-600 to-cyan-500 text-white px-6 py-2 rounded-full font-bold text-lg hover:opacity-90 transition-all transform hover:scale-105 shadow-lg shadow-cyan-500/30 mb-6">
|
| 181 |
+
STARFIGHTER MODE
|
| 182 |
+
</a>
|
| 183 |
<div class="flex justify-center space-x-6 mb-4">
|
| 184 |
<a href="#" class="hover:text-cyan-400 transition-colors"><i data-feather="twitter"></i></a>
|
| 185 |
<a href="#" class="hover:text-purple-400 transition-colors"><i data-feather="instagram"></i></a>
|
starfighter.html
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>STARFIGHTER ULTIMATE</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500&display=swap');
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'Orbitron', sans-serif;
|
| 15 |
+
overflow-x: hidden;
|
| 16 |
+
background: #000;
|
| 17 |
+
color: #0ff;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.vanta-bg {
|
| 21 |
+
position: fixed;
|
| 22 |
+
top: 0;
|
| 23 |
+
left: 0;
|
| 24 |
+
width: 100%;
|
| 25 |
+
height: 100%;
|
| 26 |
+
z-index: -1;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.neon-text {
|
| 30 |
+
text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.hud-border {
|
| 34 |
+
border: 2px solid #0ff;
|
| 35 |
+
box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.ship-card {
|
| 39 |
+
transition: all 0.3s;
|
| 40 |
+
background: rgba(0, 0, 0, 0.7);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.ship-card:hover {
|
| 44 |
+
transform: scale(1.05);
|
| 45 |
+
box-shadow: 0 0 15px #0ff;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.pulse {
|
| 49 |
+
animation: pulse 2s infinite;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
@keyframes pulse {
|
| 53 |
+
0% { box-shadow: 0 0 5px #0ff; }
|
| 54 |
+
50% { box-shadow: 0 0 20px #0ff; }
|
| 55 |
+
100% { box-shadow: 0 0 5px #0ff; }
|
| 56 |
+
}
|
| 57 |
+
</style>
|
| 58 |
+
</head>
|
| 59 |
+
<body>
|
| 60 |
+
<div id="vanta-bg" class="vanta-bg"></div>
|
| 61 |
+
|
| 62 |
+
<div class="min-h-screen flex flex-col items-center justify-center px-4 py-12">
|
| 63 |
+
<!-- Header -->
|
| 64 |
+
<div class="text-center mb-12">
|
| 65 |
+
<h1 class="text-6xl md:text-8xl font-bold text-white neon-text mb-4">
|
| 66 |
+
STARFIGHTER <span class="text-red-500">ULTIMATE</span>
|
| 67 |
+
</h1>
|
| 68 |
+
<p class="text-xl text-cyan-200 mb-8 font-['Rajdhani']">
|
| 69 |
+
Engage in epic space battles across the galaxy!
|
| 70 |
+
</p>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<!-- Main Content -->
|
| 74 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 w-full max-w-6xl">
|
| 75 |
+
<!-- Left Column - Game Preview -->
|
| 76 |
+
<div class="bg-black bg-opacity-70 rounded-xl p-6 hud-border backdrop-blur-sm">
|
| 77 |
+
<h2 class="text-3xl text-white mb-6 flex items-center">
|
| 78 |
+
<i data-feather="target" class="mr-3 text-red-500"></i> COMBAT PREVIEW
|
| 79 |
+
</h2>
|
| 80 |
+
|
| 81 |
+
<div class="relative overflow-hidden rounded-lg h-64 md:h-96">
|
| 82 |
+
<img src="http://static.photos/space/1024x576/42" alt="Game Screenshot" class="w-full h-full object-cover">
|
| 83 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end justify-center">
|
| 84 |
+
<div class="mb-6 text-center">
|
| 85 |
+
<button onclick="startGame()" class="bg-gradient-to-r from-blue-600 to-cyan-500 text-white px-8 py-3 rounded-full font-bold text-lg hover:opacity-90 transition-all transform hover:scale-105 shadow-lg shadow-cyan-500/30 pulse">
|
| 86 |
+
LAUNCH BATTLE
|
| 87 |
+
</button>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<div class="mt-6 grid grid-cols-3 gap-4">
|
| 93 |
+
<div class="bg-gray-900 bg-opacity-70 p-4 rounded-lg text-center">
|
| 94 |
+
<i data-feather="clock" class="text-cyan-400 w-8 h-8 mx-auto mb-2"></i>
|
| 95 |
+
<p class="text-white font-bold">CAMPAIGN</p>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="bg-gray-900 bg-opacity-70 p-4 rounded-lg text-center">
|
| 98 |
+
<i data-feather="users" class="text-purple-400 w-8 h-8 mx-auto mb-2"></i>
|
| 99 |
+
<p class="text-white font-bold">PVP ARENA</p>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="bg-gray-900 bg-opacity-70 p-4 rounded-lg text-center">
|
| 102 |
+
<i data-feather="award" class="text-yellow-400 w-8 h-8 mx-auto mb-2"></i>
|
| 103 |
+
<p class="text-white font-bold">RANKINGS</p>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<!-- Right Column - Features -->
|
| 109 |
+
<div class="bg-black bg-opacity-70 rounded-xl p-6 hud-border backdrop-blur-sm">
|
| 110 |
+
<h2 class="text-3xl text-white mb-6 flex items-center">
|
| 111 |
+
<i data-feather="star" class="mr-3 text-yellow-400"></i> FEATURES
|
| 112 |
+
</h2>
|
| 113 |
+
|
| 114 |
+
<!-- Feature 1 -->
|
| 115 |
+
<div class="flex mb-6">
|
| 116 |
+
<div class="mr-4">
|
| 117 |
+
<div class="bg-blue-600 rounded-lg p-3">
|
| 118 |
+
<i data-feather="spacecraft" class="text-white w-8 h-8"></i>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
<div>
|
| 122 |
+
<h3 class="text-xl text-white font-bold mb-2">FLEET CUSTOMIZATION</h3>
|
| 123 |
+
<p class="text-gray-300 font-['Rajdhani']">Command over 20 unique starfighters with modular upgrades.</p>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<!-- Feature 2 -->
|
| 128 |
+
<div class="flex mb-6">
|
| 129 |
+
<div class="mr-4">
|
| 130 |
+
<div class="bg-purple-600 rounded-lg p-3">
|
| 131 |
+
<i data-feather="galaxy" class="text-white w-8 h-8"></i>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
<div>
|
| 135 |
+
<h3 class="text-xl text-white font-bold mb-2">DYNAMIC SYSTEMS</h3>
|
| 136 |
+
<p class="text-gray-300 font-['Rajdhani']">Battle across nebulas, asteroid fields and dying stars.</p>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<!-- Feature 3 -->
|
| 141 |
+
<div class="flex mb-6">
|
| 142 |
+
<div class="mr-4">
|
| 143 |
+
<div class="bg-red-600 rounded-lg p-3">
|
| 144 |
+
<i data-feather="zap" class="text-white w-8 h-8"></i>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
<div>
|
| 148 |
+
<h3 class="text-xl text-white font-bold mb-2">WEAPON SYSTEMS</h3>
|
| 149 |
+
<p class="text-gray-300 font-['Rajdhani']">Unlock plasma cannons, photon torpedoes and EMP bursts.</p>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<!-- Ship Selection -->
|
| 154 |
+
<div class="mt-8">
|
| 155 |
+
<h3 class="text-xl text-white font-bold mb-4">SELECT YOUR STARFIGHTER</h3>
|
| 156 |
+
<div class="grid grid-cols-3 gap-4">
|
| 157 |
+
<div class="ship-card p-3 rounded-lg text-center cursor-pointer">
|
| 158 |
+
<div class="bg-gray-800 rounded-lg p-2 mb-2">
|
| 159 |
+
<i data-feather="triangle" class="text-cyan-400 w-8 h-8 mx-auto"></i>
|
| 160 |
+
</div>
|
| 161 |
+
<p class="text-sm">INTERCEPTOR</p>
|
| 162 |
+
</div>
|
| 163 |
+
<div class="ship-card p-3 rounded-lg text-center cursor-pointer">
|
| 164 |
+
<div class="bg-gray-800 rounded-lg p-2 mb-2">
|
| 165 |
+
<i data-feather="box" class="text-red-400 w-8 h-8 mx-auto"></i>
|
| 166 |
+
</div>
|
| 167 |
+
<p class="text-sm">GUNSHIP</p>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="ship-card p-3 rounded-lg text-center cursor-pointer">
|
| 170 |
+
<div class="bg-gray-800 rounded-lg p-2 mb-2">
|
| 171 |
+
<i data-feather="hexagon" class="text-yellow-400 w-8 h-8 mx-auto"></i>
|
| 172 |
+
</div>
|
| 173 |
+
<p class="text-sm">BOMBER</p>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
|
| 180 |
+
<!-- Footer -->
|
| 181 |
+
<div class="mt-16 text-center text-gray-400 font-['Rajdhani']">
|
| 182 |
+
<a href="dogfight.html" class="inline-block bg-gradient-to-r from-blue-600 to-cyan-500 text-white px-6 py-2 rounded-full font-bold text-lg hover:opacity-90 transition-all transform hover:scale-105 shadow-lg shadow-cyan-500/30 mb-6">
|
| 183 |
+
INSTANT DOGFIGHT
|
| 184 |
+
</a>
|
| 185 |
+
<div class="flex justify-center space-x-6 mb-4">
|
| 186 |
+
<a href="#" class="hover:text-cyan-400 transition-colors"><i data-feather="twitter"></i></a>
|
| 187 |
+
<a href="#" class="hover:text-purple-400 transition-colors"><i data-feather="instagram"></i></a>
|
| 188 |
+
<a href="#" class="hover:text-red-400 transition-colors"><i data-feather="youtube"></i></a>
|
| 189 |
+
<a href="#" class="hover:text-blue-400 transition-colors"><i data-feather="discord"></i></a>
|
| 190 |
+
</div>
|
| 191 |
+
<p>© 2023 STARFIGHTER ULTIMATE. All rights reserved.</p>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
|
| 195 |
+
<script>
|
| 196 |
+
// Initialize Vanta.js background
|
| 197 |
+
VANTA.NET({
|
| 198 |
+
el: "#vanta-bg",
|
| 199 |
+
mouseControls: true,
|
| 200 |
+
touchControls: true,
|
| 201 |
+
gyroControls: false,
|
| 202 |
+
minHeight: 200.00,
|
| 203 |
+
minWidth: 200.00,
|
| 204 |
+
scale: 1.00,
|
| 205 |
+
scaleMobile: 1.00,
|
| 206 |
+
color: 0x00ffff,
|
| 207 |
+
backgroundColor: 0x0,
|
| 208 |
+
points: 12.00,
|
| 209 |
+
maxDistance: 22.00,
|
| 210 |
+
spacing: 18.00
|
| 211 |
+
});
|
| 212 |
+
|
| 213 |
+
// Initialize Feather Icons
|
| 214 |
+
feather.replace();
|
| 215 |
+
|
| 216 |
+
// Game functionality
|
| 217 |
+
function startGame() {
|
| 218 |
+
window.location.href = "dogfight.html";
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
// Add spacecraft icon to feather
|
| 222 |
+
feather.replace({
|
| 223 |
+
'spacecraft': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L3 7l9 5 9-5-9-5zM3 7l9 5 9-5M3 7v10l9 5 9-5V7M12 22l9-5-9-5-9 5 9 5z"/></svg>',
|
| 224 |
+
'galaxy': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="4"/><path d="M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M14.83 9.17l3.53-3.53M4.93 19.07l4.24-4.24"/></svg>'
|
| 225 |
+
});
|
| 226 |
+
</script>
|
| 227 |
+
</body>
|
| 228 |
+
</html>
|