File size: 19,335 Bytes
b336cae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mage Duel: Arcane Clash</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Poppins:wght@300;400;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #0f172a;
color: #e2e8f0;
overflow: hidden;
}
.title-font {
font-family: 'MedievalSharp', cursive;
}
.spell-card {
transition: all 0.3s ease;
transform-style: preserve-3d;
}
.spell-card:hover {
transform: translateY(-10px) rotateX(10deg);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.loading-bar {
width: 0%;
transition: width 0.5s ease;
}
.mana-orb {
box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.5);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.floating {
animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-15px); }
100% { transform: translateY(0px); }
}
/* New styles for the battlefield */
.battlefield {
perspective: 1000px;
position: relative;
height: 100%;
}
.player-mage {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
z-index: 20;
}
.opponent-mage {
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%) scale(0.7);
z-index: 10;
filter: blur(1px);
}
.battlefield-cards {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 15;
width: 80%;
}
.battlefield-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #1e1b4b 0%, #4c1d95 50%, #7e22ce 100%);
z-index: 5;
}
.battlefield-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
z-index: 6;
}
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Loading Screen -->
<div id="loadingScreen" class="fixed inset-0 bg-indigo-950/90 backdrop-blur-sm z-50 flex flex-col items-center justify-center transition-opacity duration-1000">
<div class="text-center mb-12">
<h1 class="title-font text-6xl md:text-8xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 via-pink-500 to-red-500 mb-4">
Mage Duel
</h1>
<p class="text-xl text-indigo-200">Arcane Clash</p>
</div>
<div class="w-64 md:w-96 h-4 bg-indigo-900 rounded-full mb-8 overflow-hidden">
<div id="loadingBar" class="loading-bar h-full bg-gradient-to-r from-purple-500 to-pink-500 rounded-full"></div>
</div>
<div class="flex space-x-4">
<div class="w-16 h-16 rounded-full bg-purple-600 flex items-center justify-center floating" style="animation-delay: 0s;">
<i class="fas fa-hat-wizard text-2xl text-white"></i>
</div>
<div class="w-16 h-16 rounded-full bg-pink-600 flex items-center justify-center floating" style="animation-delay: 0.5s;">
<i class="fas fa-fire text-2xl text-white"></i>
</div>
<div class="w-16 h-16 rounded-full bg-indigo-600 flex items-center justify-center floating" style="animation-delay: 1s;">
<i class="fas fa-shield-alt text-2xl text-white"></i>
</div>
</div>
<p class="mt-8 text-indigo-300 text-sm">Preparing the arcane battlefield...</p>
</div>
<!-- Main Game Container (hidden initially) -->
<div id="gameContainer" class="hidden flex-1 flex flex-col">
<!-- Game Header -->
<header class="bg-gradient-to-r from-indigo-900 to-purple-900 py-4 px-6 shadow-lg">
<div class="flex justify-between items-center">
<h1 class="title-font text-2xl md:text-3xl font-bold text-white">Mage Duel: Arcane Clash</h1>
<button id="menuBtn" class="text-white hover:text-pink-300 transition">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</header>
<!-- Game Area -->
<main class="flex-1 relative overflow-hidden">
<!-- Battlefield Background -->
<div class="battlefield-background"></div>
<div class="battlefield-overlay"></div>
<!-- Player Mage (back view) -->
<div class="player-mage">
<div class="relative">
<div class="w-32 h-32 bg-blue-600 rounded-full flex items-center justify-center shadow-xl">
<i class="fas fa-hat-wizard text-5xl text-white transform rotate-180"></i>
</div>
<div class="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-40 h-4 bg-blue-800 rounded-full blur-sm"></div>
<div class="absolute -bottom-4 left-1/2 transform -translate-x-1/2 w-48 h-2 bg-blue-900 rounded-full blur-sm"></div>
</div>
</div>
<!-- Opponent Mage (in the distance) -->
<div class="opponent-mage">
<div class="relative">
<div class="w-24 h-24 bg-red-600 rounded-full flex items-center justify-center shadow-lg">
<i class="fas fa-skull text-4xl text-white"></i>
</div>
<div class="absolute -bottom-1 left-1/2 transform -translate-x-1/2 w-32 h-3 bg-red-800 rounded-full blur-sm"></div>
<div class="absolute -bottom-3 left-1/2 transform -translate-x-1/2 w-40 h-2 bg-red-900 rounded-full blur-sm"></div>
</div>
</div>
<!-- Battlefield Cards Area -->
<div class="battlefield-cards">
<div class="bg-indigo-900/30 rounded-xl p-4 border border-indigo-700 shadow-lg backdrop-blur-sm">
<h3 class="text-center text-purple-300 font-bold mb-2">Battlefield</h3>
<div class="grid grid-cols-3 gap-4 min-h-32">
<!-- Empty slots for cards to be placed -->
<div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center">
<i class="fas fa-plus text-indigo-500"></i>
</div>
<div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center">
<i class="fas fa-plus text-indigo-500"></i>
</div>
<div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center">
<i class="fas fa-plus text-indigo-500"></i>
</div>
</div>
</div>
</div>
</main>
<!-- Player Info and Cards -->
<div class="bg-purple-900/30 p-4 border-t border-purple-700">
<div class="flex justify-between items-center mb-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center shadow-lg">
<i class="fas fa-hat-wizard text-lg text-white"></i>
</div>
<div class="ml-3">
<h3 class="font-bold text-blue-300">Arcane Mage</h3>
<div class="flex items-center">
<div class="w-20 h-2 bg-gray-700 rounded-full overflow-hidden">
<div class="h-full bg-blue-500 rounded-full" style="width: 100%"></div>
</div>
<span class="ml-2 text-xs">100/100</span>
</div>
</div>
</div>
<div class="flex space-x-2">
<div class="w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center mana-orb">
<span class="text-xs font-bold">5</span>
</div>
<div class="w-6 h-6 rounded-full bg-blue-400 flex items-center justify-center">
<span class="text-xs font-bold">+2</span>
</div>
</div>
</div>
<!-- Player Hand -->
<div class="flex justify-center space-x-2">
<!-- Sample spell cards -->
<div class="spell-card w-16 h-24 bg-gradient-to-br from-blue-600 to-blue-800 rounded-lg shadow-lg border border-blue-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform">
<div class="bg-blue-700 py-1 text-center">
<span class="text-xs font-bold text-white">2</span>
</div>
<div class="flex-1 flex flex-col items-center justify-center p-1">
<i class="fas fa-bolt text-yellow-300 text-xl mb-1"></i>
<span class="text-xs font-bold text-white text-center">Lightning</span>
</div>
</div>
<div class="spell-card w-16 h-24 bg-gradient-to-br from-purple-600 to-purple-800 rounded-lg shadow-lg border border-purple-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform">
<div class="bg-purple-700 py-1 text-center">
<span class="text-xs font-bold text-white">3</span>
</div>
<div class="flex-1 flex flex-col items-center justify-center p-1">
<i class="fas fa-shield-alt text-blue-200 text-xl mb-1"></i>
<span class="text-xs font-bold text-white text-center">Shield</span>
</div>
</div>
<div class="spell-card w-16 h-24 bg-gradient-to-br from-red-600 to-red-800 rounded-lg shadow-lg border border-red-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform">
<div class="bg-red-700 py-1 text-center">
<span class="text-xs font-bold text-white">4</span>
</div>
<div class="flex-1 flex flex-col items-center justify-center p-1">
<i class="fas fa-fire text-orange-300 text-xl mb-1"></i>
<span class="text-xs font-bold text-white text-center">Fireball</span>
</div>
</div>
<div class="spell-card w-16 h-24 bg-gradient-to-br from-green-600 to-green-800 rounded-lg shadow-lg border border-green-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform">
<div class="bg-green-700 py-1 text-center">
<span class="text-xs font-bold text-white">1</span>
</div>
<div class="flex-1 flex flex-col items-center justify-center p-1">
<i class="fas fa-leaf text-green-200 text-xl mb-1"></i>
<span class="text-xs font-bold text-white text-center">Heal</span>
</div>
</div>
</div>
</div>
<!-- Game Footer -->
<footer class="bg-gradient-to-r from-indigo-900 to-purple-900 py-3 px-6 shadow-lg">
<div class="flex justify-between items-center">
<button class="bg-pink-600 hover:bg-pink-700 text-white px-4 py-2 rounded-lg font-bold transition">
<i class="fas fa-play mr-2"></i> Cast Spells
</button>
<div class="text-indigo-300 text-sm">
<span id="turnCounter">Turn: 5</span>
</div>
</div>
</footer>
</div>
<!-- Game Menu (hidden initially) -->
<div id="gameMenu" class="fixed inset-0 bg-black/80 z-50 hidden flex items-center justify-center">
<div class="bg-gradient-to-b from-indigo-900 to-purple-900 rounded-xl p-6 w-full max-w-md shadow-2xl border border-indigo-700">
<div class="flex justify-between items-center mb-6">
<h2 class="title-font text-2xl text-white">Game Menu</h2>
<button id="closeMenuBtn" class="text-white hover:text-pink-300 transition">
<i class="fas fa-times text-2xl"></i>
</button>
</div>
<div class="space-y-4">
<button class="w-full bg-indigo-700 hover:bg-indigo-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center">
<i class="fas fa-book mr-3"></i> How to Play
</button>
<button class="w-full bg-purple-700 hover:bg-purple-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center">
<i class="fas fa-cog mr-3"></i> Settings
</button>
<button class="w-full bg-pink-700 hover:bg-pink-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center">
<i class="fas fa-trophy mr-3"></i> Leaderboards
</button>
<button class="w-full bg-red-700 hover:bg-red-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center">
<i class="fas fa-sign-out-alt mr-3"></i> Exit Game
</button>
</div>
</div>
</div>
<script>
// Simulate loading
document.addEventListener('DOMContentLoaded', function() {
const loadingBar = document.getElementById('loadingBar');
const loadingScreen = document.getElementById('loadingScreen');
const gameContainer = document.getElementById('gameContainer');
const gameMenu = document.getElementById('gameMenu');
const menuBtn = document.getElementById('menuBtn');
const closeMenuBtn = document.getElementById('closeMenuBtn');
// Animate loading bar
let width = 0;
const interval = setInterval(() => {
width += Math.random() * 15;
if (width >= 100) {
width = 100;
clearInterval(interval);
// Hide loading screen after a delay
setTimeout(() => {
loadingScreen.classList.add('opacity-0');
setTimeout(() => {
loadingScreen.classList.add('hidden');
gameContainer.classList.remove('hidden');
}, 1000);
}, 500);
}
loadingBar.style.width = width + '%';
}, 200);
// Menu toggle
menuBtn.addEventListener('click', () => {
gameMenu.classList.remove('hidden');
});
closeMenuBtn.addEventListener('click', () => {
gameMenu.classList.add('hidden');
});
// Card drag and drop functionality
const spellCards = document.querySelectorAll('.spell-card');
const battlefieldSlots = document.querySelectorAll('.battlefield-cards .bg-indigo-800/20');
spellCards.forEach(card => {
card.addEventListener('click', function() {
// Find first empty slot
const emptySlot = Array.from(battlefieldSlots).find(slot =>
slot.querySelector('.fas.fa-plus')
);
if (emptySlot) {
// Clone the card and add to battlefield
const clonedCard = this.cloneNode(true);
clonedCard.classList.remove('hover:scale-110');
clonedCard.classList.add('scale-90');
// Clear the slot and add the card
emptySlot.innerHTML = '';
emptySlot.appendChild(clonedCard);
// Add remove button
const removeBtn = document.createElement('button');
removeBtn.className = 'absolute -top-2 -right-2 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-white text-xs';
removeBtn.innerHTML = '<i class="fas fa-times"></i>';
removeBtn.addEventListener('click', (e) => {
e.stopPropagation();
emptySlot.innerHTML = '<i class="fas fa-plus text-indigo-500"></i>';
});
clonedCard.appendChild(removeBtn);
}
});
});
});
</script>
<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=F4st/dsafd" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |