File size: 15,609 Bytes
f799ef5 1299e70 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blue Sky Empire: Meth Tycoon</title>
<link rel="icon" type="image/x-icon" href="https://static.photos/blue/200x200/42">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<style>
.crystal-animation {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.progress-bar {
transition: width 0.5s ease;
}
</style>
</head>
<body class="bg-gray-900 text-blue-100">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<div class="relative z-10 min-h-screen">
<!-- Header -->
<header class="bg-blue-900/80 backdrop-blur-md border-b border-blue-700">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="alert-triangle" class="text-blue-300"></i>
<h1 class="text-xl font-bold text-blue-100">Blue Sky Empire</h1>
</div>
<div class="flex items-center space-x-4">
<div class="hidden md:flex items-center space-x-2 bg-blue-800/50 px-3 py-1 rounded-full">
<i data-feather="dollar-sign" class="text-blue-200"></i>
<span id="money-counter" class="font-mono">$0</span>
</div>
<div class="hidden md:flex items-center space-x-2 bg-blue-800/50 px-3 py-1 rounded-full">
<i data-feather="activity" class="text-blue-200"></i>
<span id="heat-meter" class="font-mono">0%</span>
</div>
<button id="menu-toggle" class="md:hidden">
<i data-feather="menu"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-6">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column - Production -->
<div class="lg:col-span-2 space-y-6">
<!-- Lab Section -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold text-blue-100">Chemical Lab</h2>
<div class="text-xs bg-blue-800/50 px-2 py-1 rounded-full">
<span id="production-rate">0</span> units/min
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<!-- Equipment Cards -->
<div class="bg-blue-800/50 rounded-lg p-3 border border-blue-700/50 hover:border-blue-500 transition cursor-pointer">
<div class="flex justify-center mb-2">
<i data-feather="flask" class="text-blue-300"></i>
</div>
<h3 class="text-sm font-semibold text-center">Basic Flask</h3>
<p class="text-xs text-blue-200 text-center">+0.1 units/min</p>
<button class="w-full mt-2 bg-blue-700 hover:bg-blue-600 text-xs py-1 rounded">
$100
</button>
</div>
<div class="bg-blue-800/50 rounded-lg p-3 border border-blue-700/50 opacity-50 cursor-not-allowed">
<div class="flex justify-center mb-2">
<i data-feather="wind" class="text-blue-300"></i>
</div>
<h3 class="text-sm font-semibold text-center">Ventilation</h3>
<p class="text-xs text-blue-200 text-center">Unlocks at $500</p>
</div>
<!-- More equipment cards... -->
</div>
</div>
<!-- Sales Section -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4">
<h2 class="text-lg font-bold text-blue-100 mb-4">Distribution Network</h2>
<div class="space-y-3">
<div class="flex items-center justify-between bg-blue-800/40 p-3 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-blue-700 flex items-center justify-center">
<i data-feather="truck" class="text-blue-300"></i>
</div>
<div>
<h3 class="font-medium">Street Sales</h3>
<p class="text-xs text-blue-300">Sell 1 unit for $50</p>
</div>
</div>
<button
id="sell-button"
class="bg-blue-700 hover:bg-blue-600 px-3 py-1 text-sm rounded-full disabled:opacity-50 disabled:cursor-not-allowed"
:disabled="gameState.product < 1"
>
Sell
</button>
</div>
</div>
</div>
<!-- Crew Section -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4">
<h2 class="text-lg font-bold text-blue-100 mb-4">Crew Management</h2>
<div class="space-y-3">
<!-- Crew Member -->
<div class="flex items-center justify-between bg-blue-800/40 p-3 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-blue-700 flex items-center justify-center">
<i data-feather="user" class="text-blue-300"></i>
</div>
<div>
<h3 class="font-medium">Street Dealer</h3>
<p class="text-xs text-blue-300">+5% sales speed</p>
</div>
</div>
<button class="bg-blue-700 hover:bg-blue-600 px-3 py-1 text-sm rounded-full">
$250
</button>
</div>
<!-- More crew members... -->
</div>
</div>
</div>
<!-- Right Column - Stats & Actions -->
<div class="space-y-6">
<!-- Crystal Display -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4 flex flex-col items-center">
<div class="crystal-animation mb-4">
<img src="https://static.photos/blue/200x200/7" alt="Blue Crystal" class="w-24 h-24 object-contain">
</div>
<h2 class="text-xl font-bold text-blue-100 mb-2" id="product-count">0 Units</h2>
<div class="w-full bg-blue-800/50 h-2 rounded-full mb-3">
<div id="production-progress" class="h-full bg-blue-400 rounded-full progress-bar" style="width: 0%"></div>
</div>
<button id="manual-produce" class="bg-blue-600 hover:bg-blue-500 px-6 py-2 rounded-full font-medium flex items-center">
<i data-feather="zap" class="mr-2"></i> Cook Batch
</button>
</div>
<!-- Heat Meter -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4">
<div class="flex justify-between items-center mb-2">
<h2 class="font-bold text-blue-100">DEA Heat</h2>
<span class="text-xs bg-blue-800/50 px-2 py-1 rounded-full">Low Risk</span>
</div>
<div class="w-full bg-blue-800/30 h-4 rounded-full mb-2">
<div id="heat-progress" class="h-full bg-red-500 rounded-full progress-bar" style="width: 5%"></div>
</div>
<p class="text-xs text-blue-300">Produce carefully to avoid detection!</p>
</div>
<!-- Random Events -->
<div class="bg-blue-900/70 backdrop-blur-sm rounded-lg border border-blue-700 p-4">
<h2 class="font-bold text-blue-100 mb-2">Events</h2>
<div class="text-sm text-blue-200 italic">
"Your operation is running smoothly... for now."
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Mobile Bottom Bar -->
<div class="fixed bottom-0 left-0 right-0 bg-blue-900/80 backdrop-blur-md border-t border-blue-700 md:hidden">
<div class="container mx-auto px-4 py-2 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="dollar-sign" class="text-blue-200"></i>
<span id="mobile-money" class="font-mono text-sm">$0</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="activity" class="text-blue-200"></i>
<span id="mobile-heat" class="font-mono text-sm">0%</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="package" class="text-blue-200"></i>
<span id="mobile-product" class="font-mono text-sm">0</span>
</div>
</div>
</div>
<script>
// Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0x111827,
points: 10.00,
maxDistance: 22.00,
spacing: 17.00
});
// Game state
let gameState = {
money: 0,
product: 0,
heat: 0,
productionRate: 0,
autoProduction: 0
};
// DOM elements
const moneyCounter = document.getElementById('money-counter');
const mobileMoney = document.getElementById('mobile-money');
const heatMeter = document.getElementById('heat-meter');
const mobileHeat = document.getElementById('mobile-heat');
const productCount = document.getElementById('product-count');
const mobileProduct = document.getElementById('mobile-product');
const productionRate = document.getElementById('production-rate');
const productionProgress = document.getElementById('production-progress');
const heatProgress = document.getElementById('heat-progress');
const manualProduce = document.getElementById('manual-produce');
// Game loop
function updateUI() {
moneyCounter.textContent = '$' + Math.floor(gameState.money).toLocaleString();
mobileMoney.textContent = '$' + Math.floor(gameState.money).toLocaleString();
heatMeter.textContent = Math.floor(gameState.heat) + '%';
mobileHeat.textContent = Math.floor(gameState.heat) + '%';
productCount.textContent = Math.floor(gameState.product) + ' Units';
mobileProduct.textContent = Math.floor(gameState.product);
productionRate.textContent = gameState.productionRate.toFixed(1);
productionProgress.style.width = (gameState.product % 1) * 100 + '%';
heatProgress.style.width = gameState.heat + '%';
}
// Manual production
manualProduce.addEventListener('click', () => {
gameState.product += 0.2;
gameState.heat += 0.5;
if (gameState.heat > 100) gameState.heat = 100;
updateUI();
// Animation
anime({
targets: manualProduce,
scale: [1, 1.1, 1],
duration: 300,
easing: 'easeInOutQuad'
});
});
// Auto production
setInterval(() => {
if (gameState.productionRate > 0) {
gameState.product += gameState.productionRate / 60;
gameState.heat += gameState.productionRate / 600;
if (gameState.heat > 100) gameState.heat = 100;
updateUI();
}
}, 1000 / 60); // 60fps
// Sell functionality
document.getElementById('sell-button').addEventListener('click', () => {
if (gameState.product >= 1) {
gameState.product -= 1;
gameState.money += 50;
gameState.heat += 2;
if (gameState.heat > 100) gameState.heat = 100;
// Animation
anime({
targets: '#sell-button',
scale: [1, 1.1, 1],
duration: 300,
easing: 'easeInOutQuad'
});
// Money pop effect
const moneyPop = document.createElement('div');
moneyPop.textContent = '+$50';
moneyPop.className = 'absolute text-green-400 font-bold animate-ping';
document.getElementById('sell-button').appendChild(moneyPop);
setTimeout(() => moneyPop.remove(), 1000);
updateUI();
}
});
// Initialize
feather.replace();
updateUI();
// Update sell button state
setInterval(() => {
document.getElementById('sell-button').disabled = gameState.product < 1;
}, 100);
</script>
</body>
</html>
|