bangis commited on
Commit
79fd433
·
verified ·
1 Parent(s): 5102f8b

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +921 -19
  3. prompts.txt +23 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Myyyy
3
- emoji: 👁
4
- colorFrom: yellow
5
- colorTo: red
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: myyyy
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: gray
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,921 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Battle Arena - Sign In</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
+ <style>
10
+ @keyframes pulse {
11
+ 0%, 100% { transform: scale(1); }
12
+ 50% { transform: scale(1.05); }
13
+ }
14
+ @keyframes shake {
15
+ 0%, 100% { transform: translateX(0); }
16
+ 25% { transform: translateX(-5px); }
17
+ 50% { transform: translateX(5px); }
18
+ 75% { transform: translateX(-5px); }
19
+ }
20
+ @keyframes hit {
21
+ 0% { transform: scale(1); }
22
+ 50% { transform: scale(1.1); }
23
+ 100% { transform: scale(1); }
24
+ }
25
+ @keyframes divineGlow {
26
+ 0% { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5); }
27
+ 50% { box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.7); }
28
+ 100% { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5); }
29
+ }
30
+ @keyframes ragePulse {
31
+ 0%, 100% { transform: scale(1); background-color: #DC2626; }
32
+ 50% { transform: scale(1.05); background-color: #B91C1C; }
33
+ }
34
+ @keyframes float {
35
+ 0%, 100% { transform: translateY(0); }
36
+ 50% { transform: translateY(-10px); }
37
+ }
38
+ @keyframes chaosGlow {
39
+ 0% { background-color: #8B5CF6; }
40
+ 20% { background-color: #EC4899; }
41
+ 40% { background-color: #F59E0B; }
42
+ 60% { background-color: #10B981; }
43
+ 80% { background-color: #3B82F6; }
44
+ 100% { background-color: #8B5CF6; }
45
+ }
46
+ @keyframes distort {
47
+ 0%, 100% { transform: skew(0deg, 0deg); }
48
+ 20% { transform: skew(5deg, 5deg); }
49
+ 40% { transform: skew(-5deg, -5deg); }
50
+ 60% { transform: skew(8deg, 8deg); }
51
+ 80% { transform: skew(-8deg, -8deg); }
52
+ }
53
+ .health-bar {
54
+ transition: width 0.3s ease;
55
+ }
56
+ .on-cooldown {
57
+ opacity: 0.6;
58
+ cursor: not-allowed;
59
+ }
60
+ .divine-glow {
61
+ animation: divineGlow 2s infinite;
62
+ }
63
+ .rage-pulse {
64
+ animation: ragePulse 0.5s infinite;
65
+ }
66
+ .chaos-glow {
67
+ animation: chaosGlow 1s infinite, distort 2s infinite;
68
+ }
69
+ .coin-animation {
70
+ animation: bounceIn 0.5s;
71
+ }
72
+ .difficulty-card:hover {
73
+ transform: translateY(-5px);
74
+ }
75
+ .hero-float {
76
+ animation: float 3s ease-in-out infinite;
77
+ }
78
+ @keyframes bounceIn {
79
+ 0% { transform: scale(0.5); opacity: 0; }
80
+ 70% { transform: scale(1.1); opacity: 1; }
81
+ 100% { transform: scale(1); }
82
+ }
83
+ .modal {
84
+ transition: all 0.3s ease;
85
+ }
86
+ .modal.hidden {
87
+ opacity: 0;
88
+ visibility: hidden;
89
+ }
90
+ .shop-item:hover {
91
+ transform: translateY(-5px);
92
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
93
+ }
94
+ .screen {
95
+ position: absolute;
96
+ width: 100%;
97
+ height: 100%;
98
+ transition: opacity 0.5s ease;
99
+ }
100
+ .screen.hidden {
101
+ opacity: 0;
102
+ pointer-events: none;
103
+ }
104
+ .how-to-play::-webkit-scrollbar {
105
+ width: 8px;
106
+ }
107
+ .how-to-play::-webkit-scrollbar-track {
108
+ background: rgba(255, 255, 255, 0.1);
109
+ border-radius: 10px;
110
+ }
111
+ .how-to-play::-webkit-scrollbar-thumb {
112
+ background: rgba(255, 255, 255, 0.3);
113
+ border-radius: 10px;
114
+ }
115
+ .how-to-play::-webkit-scrollbar-thumb:hover {
116
+ background: rgba(255, 255, 255, 0.5);
117
+ }
118
+ .quick-start-container {
119
+ max-height: calc(100vh - 200px);
120
+ overflow-y: auto;
121
+ }
122
+ .character-dropdown {
123
+ max-height: 300px;
124
+ overflow-y: auto;
125
+ }
126
+ .login-form {
127
+ background: rgba(0, 0, 0, 0.8);
128
+ backdrop-filter: blur(10px);
129
+ }
130
+ .battle-arena-container {
131
+ position: absolute;
132
+ top: 20%;
133
+ left: 50%;
134
+ transform: translateX(-50%);
135
+ width: 500px;
136
+ max-width: 90%;
137
+ }
138
+ .login-screen {
139
+ position: absolute;
140
+ width: 100%;
141
+ height: 100%;
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ z-index: 100;
146
+ background-color: rgba(0, 0, 0, 0.8);
147
+ }
148
+ .password-container {
149
+ position: relative;
150
+ }
151
+ .toggle-password {
152
+ position: absolute;
153
+ right: 10px;
154
+ top: 50%;
155
+ transform: translateY(-50%);
156
+ cursor: pointer;
157
+ color: #9CA3AF;
158
+ }
159
+ .toggle-password:hover {
160
+ color: #D1D5DB;
161
+ }
162
+ .game-title {
163
+ position: absolute;
164
+ top: 10%;
165
+ left: 50%;
166
+ transform: translateX(-50%);
167
+ font-size: 4rem;
168
+ background: linear-gradient(to right, #4facfe, #00f2fe);
169
+ -webkit-background-clip: text;
170
+ background-clip: text;
171
+ color: transparent;
172
+ text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
173
+ }
174
+ .difficulty-container {
175
+ position: absolute;
176
+ bottom: 10%;
177
+ left: 0;
178
+ right: 0;
179
+ padding: 20px;
180
+ }
181
+ </style>
182
+ </head>
183
+ <body class="bg-gradient-to-br from-gray-900 to-black text-white min-h-screen font-sans overflow-hidden">
184
+ <!-- Login Screen (Must complete before playing) -->
185
+ <div id="login-screen" class="login-screen">
186
+ <div class="bg-gray-800 rounded-lg p-8 w-full max-w-md border border-blue-500">
187
+ <h1 class="text-3xl font-bold text-center mb-6 text-blue-400">SIGN IN TO BATTLE</h1>
188
+ <div class="mb-4">
189
+ <label class="block text-gray-300 mb-2" for="player-name">Your Name (2-30 chars)</label>
190
+ <input type="text" id="player-name" class="w-full px-3 py-2 bg-gray-700 border border-gray-600 rounded focus:outline-none focus:border-blue-500" maxlength="30">
191
+ </div>
192
+ <div class="mb-6 password-container">
193
+ <label class="block text-gray-300 mb-2" for="player-password">Password</label>
194
+ <input type="password" id="player-password" class="w-full px-3 py-2 bg-gray-700 border border-gray-600 rounded focus:outline-none focus:border-blue-500 pr-10">
195
+ <i class="fas fa-eye toggle-password" id="toggle-password"></i>
196
+ </div>
197
+ <button id="login-submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition">
198
+ Enter Battle Arena
199
+ </button>
200
+ </div>
201
+ </div>
202
+
203
+ <!-- Lobby Screen -->
204
+ <div id="lobby-screen" class="screen hidden flex flex-col items-center p-4">
205
+ <!-- Character Selection Dropdown (Top Right) -->
206
+ <div class="absolute top-4 right-4 z-30">
207
+ <div class="relative inline-block text-left">
208
+ <div>
209
+ <button type="button" id="character-menu-button" class="inline-flex justify-center w-full rounded-md border border-purple-500 shadow-sm px-4 py-2 bg-purple-900 text-sm font-medium text-white hover:bg-purple-800 focus:outline-none" aria-expanded="true" aria-haspopup="true">
210
+ <i class="fas fa-user mr-2"></i> Select Character
211
+ </button>
212
+ </div>
213
+
214
+ <div id="character-dropdown" class="hidden origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-gray-800 ring-1 ring-purple-500 ring-opacity-50 focus:outline-none character-dropdown">
215
+ <div class="py-1" role="none">
216
+ <div class="flex items-center px-4 py-2 text-sm hover:bg-purple-900 cursor-pointer border-b border-gray-700" onclick="selectCharacter('knight')">
217
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" class="w-8 h-8 mr-3" alt="Knight">
218
+ <span class="flex-1">Knight</span>
219
+ <i class="fas fa-check text-green-400 ml-2 hidden" id="knight-selected"></i>
220
+ </div>
221
+ <div class="flex items-center px-4 py-2 text-sm hover:bg-purple-900 cursor-pointer border-b border-gray-700" onclick="selectCharacter('wizard')">
222
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829149.png" class="w-8 h-8 mr-3" alt="Wizard">
223
+ <span class="flex-1">Wizard</span>
224
+ <i class="fas fa-check text-green-400 ml-2 hidden" id="wizard-selected"></i>
225
+ </div>
226
+ <div class="flex items-center px-4 py-2 text-sm hover:bg-purple-900 cursor-pointer border-b border-gray-700" onclick="selectCharacter('archer')">
227
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829166.png" class="w-8 h-8 mr-3" alt="Archer">
228
+ <span class="flex-1">Archer</span>
229
+ <i class="fas fa-check text-green-400 ml-2 hidden" id="archer-selected"></i>
230
+ </div>
231
+ <div class="flex items-center px-4 py-2 text-sm hover:bg-purple-900 cursor-pointer" onclick="selectCharacter('ninja')">
232
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829114.png" class="w-8 h-8 mr-3" alt="Ninja">
233
+ <span class="flex-1">Ninja</span>
234
+ <i class="fas fa-check text-green-400 ml-2 hidden" id="ninja-selected"></i>
235
+ </div>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+
241
+ <!-- Game Title (Middle Top) -->
242
+ <h1 class="game-title">
243
+ BATTLE ARENA
244
+ </h1>
245
+
246
+ <!-- Hero Character (Under Title) -->
247
+ <div class="flex justify-center mb-10 hero-float absolute top-[30%] left-1/2 transform -translate-x-1/2">
248
+ <img id="selected-character-img" src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" alt="Hero" class="h-40">
249
+ </div>
250
+
251
+ <!-- How to Play Panel (Top Left) -->
252
+ <div class="absolute top-4 left-4 w-80">
253
+ <div class="bg-gray-800 bg-opacity-50 rounded-lg p-4 border border-gray-700 how-to-play" style="max-height: 60vh; overflow-y: auto;">
254
+ <h3 class="text-lg font-semibbold mb-2 sticky top-0 bg-gray-800 py-2">HOW TO PLAY</h3>
255
+ <ul class="text-sm text-gray-300 text-left space-y-2 pr-2">
256
+ <li class="flex items-start">
257
+ <i class="fas fa-fist-raised text-blue-400 mr-2 mt-1"></i>
258
+ <div>
259
+ <strong class="text-blue-300">PUNCH:</strong> Basic attack (10-20 damage)
260
+ <p class="text-xs text-gray-400 mt-1">Cooldown: 2 seconds</p>
261
+ </div>
262
+ </li>
263
+ <li class="flex items-start">
264
+ <i class="fas fa-shield-alt text-blue-40 mr-2 mt-1"></i>
265
+ <div>
266
+ <strong class="text-blue-300">BLOCK:</strong> Protect against next attack for 2 seconds
267
+ <p class="text-xs text-gray-400 mt-1">Cooldown: 3 seconds</p>
268
+ </div>
269
+ </li>
270
+ <li class="flex items-start">
271
+ <i class="fas fa-bolt text-yellow-400 mr-2 mt-1"></i>
272
+ <div>
273
+ <strong class="text-yellow-300">SPECIAL:</strong> Powerful attack (20-40 damage)
274
+ <p class="text-xs text-gray-400 mt-1">Cooldown: 5 seconds</p>
275
+ </div>
276
+ </li>
277
+ <li class="flex items-start">
278
+ <i class="fas fa-star text-purple-400 mr-2 mt-1"></i>
279
+ <div>
280
+ <strong class="text-purple-300">DIVINE ANGEL:</strong> Randomly appears (20% chance) when attacking, deals 40-50 damage
281
+ <p class="text-xs text-gray-400 mt-1">Can only be used once per battle</p>
282
+ </div>
283
+ </li>
284
+ <li class="flex items-start">
285
+ <i class="fas fa-fire text-red-400 mr-2 mt-1"></i>
286
+ <div>
287
+ <strong class="text-red-300">RAGE MODE:</strong> Rarely appears (1% chance) when attacking, deals 90-100 damage
288
+ <p class="text-xs text-gray-400 mt-1">Can only be used once per battle</p>
289
+ </div>
290
+ </li>
291
+ <li class="flex items-start">
292
+ <i class="fas fa-coins text-yellow-400 mr-2 mt-1"></i>
293
+ <div>
294
+ <strong class="text-yellow-300">COINS:</strong> Earn coins by battling opponents
295
+ <p class="text-xs text-gray-400 mt-1">More for harder difficulties</p>
296
+ </div>
297
+ </li>
298
+ <li class="flex items-start">
299
+ <i class="fas fa-fire-alt text-purple-400 mr-2 mt-1"></i>
300
+ <div>
301
+ <strong class="text-purple-300">CHAOS MODE:</strong> Everything random - damage, abilities, cooldowns!
302
+ <p class="text-xs text-gray-400 mt-1">For the truly insane</p>
303
+ </div>
304
+ </li>
305
+ </ul>
306
+ </div>
307
+ </div>
308
+
309
+ <!-- Player Name Display (Top Center) -->
310
+ <div class="absolute top-4 left-1/2 transform -translate-x-1/2 bg-blue-900 rounded-full px-6 py-1 flex items-center border border-blue-400">
311
+ <i class="fas fa-user-circle mr-2"></i>
312
+ <span id="player-display-name" class="font-medium">Player</span>
313
+ </div>
314
+
315
+ <!-- Difficulty Selection (Now at Bottom) -->
316
+ <div class="difficulty-container px-4 w-full max-w-4xl">
317
+ <h2 class="text-2xl font-semibold mb-6 text-center">SELECT DIFFICULTY</h2>
318
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
319
+ <!-- Easy -->
320
+ <div class="difficulty-card bg-gradient-to-br from-green-600 to-green-800 p-6 rounded-xl cursor-pointer transition-all transform hover:scale-105 shadow-lg"
321
+ onclick="startGame('easy')">
322
+ <div class="flex justify-center mb-4">
323
+ <i class="fas fa-feather-alt text-4xl"></i>
324
+ </div>
325
+ <h3 class="text-xl font-bold mb-2">BEGINNER</h3>
326
+ <p class="text-sm opacity-80 mb-3">Learn the basics</p>
327
+ <div class="flex justify-center gap-1">
328
+ <i class="fas fa-shield-alt text-green-300"></i>
329
+ <i class="fas fa-shield-alt text-gray-500"></i>
330
+ <i class="fas fa-shield-alt text-gray-500"></i>
331
+ </div>
332
+ </div>
333
+
334
+ <!-- Medium -->
335
+ <div class="difficulty-card bg-gradient-to-br from-yellow-600 to-yellow-800 p-6 rounded-xl cursor-pointer transition-all transform hover:scale-105 shadow-lg"
336
+ onclick="startGame('medium')">
337
+ <div class="flex justify-center mb-4">
338
+ <i class="fas fa-user-shield text-4xl"></i>
339
+ </div>
340
+ <h3 class="text-xl font-bold mb-2">WARRIOR</h3>
341
+ <p class="text-sm opacity-80 mb-3">Balanced challenge</p>
342
+ <div class="flex justify-center gap-1">
343
+ <i class="fas fa-shield-alt text-yellow-300"></i>
344
+ <i class="fas fa-shield-alt text-yellow-300"></i>
345
+ <i class="fas fa-shield-alt text-gray-500"></i>
346
+ </div>
347
+ </div>
348
+
349
+ <!-- Hard -->
350
+ <div class="difficulty-card bg-gradient-to-br from-red-600 to-red-800 p-6 rounded-xl cursor-pointer transition-all transform hover:scale-105 shadow-lg"
351
+ onclick="startGame('hard')">
352
+ <div class="flex justify-center mb-4">
353
+ <i class="fas fa-skull text-4xl"></i>
354
+ </div>
355
+ <h3 class="text-xl font-bold mb-2">NIGHTMARE</h3>
356
+ <p class="text-sm opacity-80 mb-3">Only for the brave</p>
357
+ <div class="flex justify-center gap-1">
358
+ <i class="fas fa-shield-alt text-red-300"></i>
359
+ <i class="fas fa-shield-alt text-red-300"></i>
360
+ <i class="fas fa-shield-alt text-red-300"></i>
361
+ </div>
362
+ </div>
363
+
364
+ <!-- Chaos Mode -->
365
+ <div class="difficulty-card bg-gradient-to-br from-purple-600 via-pink-600 to-yellow-500 p-6 rounded-xl cursor-pointer transition-all transform hover:scale-105 shadow-lg chaos-glow"
366
+ onclick="startGame('chaos')">
367
+ <div class="flex justify-center mb-4">
368
+ <i class="fas fa-fire-alt text-4xl"></i>
369
+ </div>
370
+ <h3 class="text-xl font-bold mb-2">CHAOS MODE</h3>
371
+ <p class="text-sm opacity-80 mb-3">Unpredictable madness!</p>
372
+ <div class="flex justify-center gap-1">
373
+ <i class="fas fa-skull-crossbones"></i>
374
+ <i class="fas fa-random"></i>
375
+ <i class="fas fa-bolt"></i>
376
+ </div>
377
+ </div>
378
+ </div>
379
+ </div>
380
+
381
+ <!-- Logout Button -->
382
+ <button id="logout-btn" class="absolute bottom-4 right-4 bg-red-700 hover:bg-red-600 text-white px-4 py-2 rounded-lg shadow transition-all flex items-center">
383
+ <i class="fas fa-sign-out-alt mr-2"></i> Logout
384
+ </button>
385
+ </div>
386
+
387
+ <!-- Game Screen -->
388
+ <div id="game-screen" class="screen hidden flex items-center justify-start flex-col p-4">
389
+ <!-- Coin Counter Top Left -->
390
+ <div class="absolute top-4 left-4 flex items-center bg-gray-800 rounded-full px-4 py-2 border border-yellow-400">
391
+ <i class="fas fa-coins text-yellow-400 mr-2"></i>
392
+ <span id="coin-count" class="font-bold">0</span>
393
+ </div>
394
+
395
+ <!-- Back to Lobby Button -->
396
+ <button id="lobby-btn" class="absolute top-4 right-4 bg-gray-800 hover:bg-gray-700 rounded-full px-4 py-2 flex items-center border border-blue-400 transition-transform transform hover:scale-105">
397
+ <i class="fas fa-home text-blue-400 mr-2"></i>
398
+ <span>LOBBY</span>
399
+ </button>
400
+
401
+ <!-- Shop Button -->
402
+ <button id="shop-btn" class="absolute top-16 right-4 bg-gray-800 hover:bg-gray-700 rounded-full px-4 py-2 flex items-center border border-blue-400 transition-transform transform hover:scale-105">
403
+ <i class="fas fa-shopping-cart text-blue-400 mr-2"></i>
404
+ <span>Shop</span>
405
+ </button>
406
+
407
+ <!-- Difficulty Indicator -->
408
+ <div id="difficulty-indicator" class="absolute top-28 right-4 flex items-center bg-gray-800 rounded-full px-4 py-1 border border-gray-600 text-xs">
409
+ Difficulty: <span id="current-difficulty" class="font-bold ml-1">Medium</span>
410
+ </div>
411
+
412
+ <!-- Player Name Display -->
413
+ <div class="absolute top-4 left-1/2 transform -translate-x-1/2 bg-blue-900 rounded-full px-6 py-1 flex items-center border border-blue-400">
414
+ <i class="fas fa-user-circle mr-2"></i>
415
+ <span id="game-player-display-name" class="font-medium">Player</span>
416
+ </div>
417
+
418
+ <!-- Battle Arena Container (Positioned Middle Top) -->
419
+ <div class="battle-arena-container">
420
+ <!-- Player Health Bar -->
421
+ <div class="mb-4">
422
+ <div class="flex justify-between mb-1">
423
+ <span class="font-medium">YOU</span>
424
+ <span id="player-health-text" class="font-bold">200/200</span>
425
+ </div>
426
+ <div class="w-full bg-gray-700 rounded-full h-4">
427
+ <div id="player-health" class="bg-green-500 h-4 rounded-full health-bar" style="width: 100%"></div>
428
+ </div>
429
+ </div>
430
+
431
+ <!-- Enemy Health Bar -->
432
+ <div class="mb-4">
433
+ <div class="flex justify-between mb-1">
434
+ <span class="font-medium" id="enemy-name">ENEMY</span>
435
+ <span id="enemy-health-text" class="font-bold">100/100</span>
436
+ </div>
437
+ <div class="w-full bg-gray-700 rounded-full h-4">
438
+ <div id="enemy-health" class="bg-red-500 h-4 rounded-full health-bar" style="width: 100%"></div>
439
+ </div>
440
+ </div>
441
+
442
+ <div class="flex justify-around mb-8">
443
+ <div class="text-center">
444
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" alt="Hero" class="h-32 mx-auto">
445
+ <span class="mt-2 block">YOU</span>
446
+ </div>
447
+ <div class="text-center">
448
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829166.png" alt="Enemy" class="h-32 mx-auto">
449
+ <span class="mt-2 block">VS</span>
450
+ </div>
451
+ </div>
452
+
453
+ <!-- Battle Controls -->
454
+ <div class="grid grid-cols-1 sm:grid-cols-3 gap-3 mb-8">
455
+ <button id="punch-btn" class="bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg flex flex-col items-center">
456
+ <i class="fas fa-fist-raised text-xl mb-1"></i>
457
+ <span>PUNCH (10-20 DMG)</span>
458
+ <div class="w-full bg-blue-800 h-1 mt-1 rounded-full overflow-hidden">
459
+ <div id="punch-cooldown" class="bg-blue-400 h-full" style="width: 100%"></div>
460
+ </div>
461
+ </button>
462
+ <button id="block-btn" class="bg-yellow-600 hover:bg-yellow-700 text-white py-3 px-4 rounded-lg flex flex-col items-center">
463
+ <i class="fas fa-shield-alt text-xl mb-1"></i>
464
+ <span>BLOCK (2 SEC)</span>
465
+ <div class="w-full bg-yellow-800 h-1 mt-1 rounded-full overflow-hidden">
466
+ <div id="block-cooldown" class="bg-yellow-400 h-full" style="width: 100%"></div>
467
+ </div>
468
+ </button>
469
+ <button id="special-btn" class="bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg flex flex-col items-center">
470
+ <i class="fas fa-bolt text-xl mb-1"></i>
471
+ <span>SPECIAL (20-40 DMG)</span>
472
+ <div class="w-full bg-purple-800 h-1 mt-1 rounded-full overflow-hidden">
473
+ <div id="special-cooldown" class="bg-purple-400 h-full" style="width: 100%"></div>
474
+ </div>
475
+ </button>
476
+ </div>
477
+
478
+ <!-- Divine Angel Button (Randomly Appears) -->
479
+ <button id="divine-btn" class="divine-glow bg-gradient-to-r from-blue-400 to-purple-500 hover:from-blue-500 hover:to-purple-600 text-white font-bold py-3 px-6 rounded-full mb-4 hidden">
480
+ <i class="fas fa-star mr-2"></i> DIVINE ANGEL (40-50 DMG)
481
+ </button>
482
+
483
+ <!-- Rage Mode Button (Rarely Appears) -->
484
+ <button id="rage-btn" class="rage-pulse bg-gradient-to-r from-red-600 to-orange-500 hover:from-red-700 hover:to-orange-600 text-white font-bold py-3 px-6 rounded-full mb-4 hidden">
485
+ <i class="fas fa-fire mr-2"></i> RAGE MODE (90-100 DMG)
486
+ </button>
487
+
488
+ <!-- Battle Log -->
489
+ <div id="battle-log" class="bg-gray-800 bg-opacity-70 rounded-lg p-3 max-h-48 overflow-y-auto text-sm">
490
+ <div class="text-center text-gray-400">Battle log will appear here...</div>
491
+ </div>
492
+ </div>
493
+ </div>
494
+
495
+ <!-- Shop Screen -->
496
+ <div id="shop-screen" class="screen hidden bg-gray-900 bg-opacity-90 flex justify-center items-start pt-12">
497
+ <div class="bg-gray-800 rounded-lg p-6 w-full max-w-4xl">
498
+ <div class="flex justify-between items-center mb-6">
499
+ <h2 class="text-2xl font-bold text-blue-400">ARMORY</h2>
500
+ <div class="flex items-center bg-gray-700 rounded-full px-4 py-2">
501
+ <i class="fas fa-coins text-yellow-400 mr-2"></i>
502
+ <span id="shop-coin-count" class="font-bold">0</span>
503
+ </div>
504
+ </div>
505
+
506
+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8">
507
+ <div class="shop-item bg-gray-700 rounded-lg p-4 cursor-pointer transition-transform border border-transparent hover:border-blue-500">
508
+ <div class="flex items-start">
509
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" class="w-12 h-12 mr-4" alt="Armor">
510
+ <div>
511
+ <h3 class="font-bold text-lg">Steel Armor</h3>
512
+ <p class="text-sm text-gray-300 mb-2">Increase health by 50 points</p>
513
+ <div class="flex justify-between items-center">
514
+ <span class="font-bold text-yellow-400">100 Coins</span>
515
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-sm">
516
+ Buy
517
+ </button>
518
+ </div>
519
+ </div>
520
+ </div>
521
+ </div>
522
+
523
+ <div class="shop-item bg-gray-700 rounded-lg p-4 cursor-pointer transition-transform border border-transparent hover:border-blue-500">
524
+ <div class="flex items-start">
525
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" class="w-12 h-12 mr-4" alt="Sword">
526
+ <div>
527
+ <h3 class="font-bold text-lg">Diamond Sword</h3>
528
+ <p class="text-sm text-gray-300 mb-2">Increase base damage by 5 points</p>
529
+ <div class="flex justify-between items-center">
530
+ <span class="font-bold text-yellow-400">150 Coins</span>
531
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-sm">
532
+ Buy
533
+ </button>
534
+ </div>
535
+ </div>
536
+ </div>
537
+ </div>
538
+
539
+ <div class="shop-item bg-gray-700 rounded-lg p-4 cursor-pointer transition-transform border border-transparent hover:border-blue-500">
540
+ <div class="flex items-start">
541
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" class="w-12 h-12 mr-4" alt="Potion">
542
+ <div>
543
+ <h3 class="font-bold text-lg">Health Potion</h3>
544
+ <p class="text-sm text-gray-300 mb-2">Heal 30 HP during battle</p>
545
+ <div class="flex justify-between items-center">
546
+ <span class="font-bold text-yellow-400">50 Coins</span>
547
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-sm">
548
+ Buy
549
+ </button>
550
+ </div>
551
+ </div>
552
+ </div>
553
+ </div>
554
+
555
+ <div class="shop-item bg-gray-700 rounded-lg p-4 cursor-pointer transition-transform border border-transparent hover:border-blue-500">
556
+ <div class="flex items-start">
557
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" class="w-12 h-12 mr-4" alt="Shield">
558
+ <div>
559
+ <h3 class="font-bold text-lg">Magic Shield</h3>
560
+ <p class="text-sm text-gray-300 mb-2">Block lasts 1 second longer</p>
561
+ <div class="flex justify-between items-center">
562
+ <span class="font-bold text-yellow-400">120 Coins</span>
563
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px 3 py-1 rounded text-sm">
564
+ Buy
565
+ </button>
566
+ </div>
567
+ </div>
568
+ </div>
569
+ </div>
570
+ </div>
571
+
572
+ <div class="flex justify-between">
573
+ <button id="back-to-game-btn" class="bg-gray-700 hover:bg-gray-600 text-white px-6 py-2 rounded-lg flex items-center">
574
+ <i class="fas fa-arrow-left mr-2"></i> Back to Battle
575
+ </button>
576
+ <button id="open-crates-btn" class="bg-gradient-to-r from-purple-600 to-pink-500 hover:from-purple-700 hover:to-pink-600 text-white px-6 py-2 rounded-lg flex items-center font-bold">
577
+ <i class="fas fa-cubes mr-2"></i> Open Crates (50 Coins)
578
+ </button>
579
+ </div>
580
+ </div>
581
+ </div>
582
+
583
+ <!-- Game Over Modal -->
584
+ <div id="game-over-modal" class="modal hidden fixed inset-0 flex items-center justify-center z-50">
585
+ <div class="bg-gray-800 rounded-lg p-8 w-full max-w-md border-4 border-red-500 animate-pulse">
586
+ <h2 class="text-3xl font-bold text-center mb-2 text-red-400">GAME OVER</h2>
587
+ <p id="game-over-text" class="text-center mb-6"></p>
588
+ <div class="grid grid-cols-2 gap-4">
589
+ <button id="retry-btn" class="bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg transition">
590
+ Fight Again
591
+ </button>
592
+ <button id="lobby-btn-2" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition">
593
+ Back to Lobby
594
+ </button>
595
+ </div>
596
+ </div>
597
+ </div>
598
+
599
+ <!-- Victory Modal -->
600
+ <div id="victory-modal" class="modal hidden fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-70">
601
+ <div class="bg-gray-800 rounded-lg p-8 w-full max-w-md border-4 border-yellow-400 animate-pulse">
602
+ <h2 class="text-3xl font-bold text-center mb-2 text-yellow-300">VICTORY!</h2>
603
+ <div class="text-center mb-6">
604
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" alt="Victory" class="h-20 mx-auto mb-4">
605
+ <p id="earned-coins" class="text-xl text-yellow-400 mb-1"></p>
606
+ <p id="victory-text" class="text-sm text-gray-300"></p>
607
+ </div>
608
+ <div class="grid grid-cols-2 gap-4">
609
+ <button id="next-fight-btn" class="bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg transition">
610
+ Next Battle
611
+ </button>
612
+ <button id="lobby-btn-3" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition">
613
+ Back to Lobby
614
+ </button>
615
+ </div>
616
+ </div>
617
+ </div>
618
+
619
+ <!-- Crate Opening Modal -->
620
+ <div id="crate-modal" class="modal hidden fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-80">
621
+ <div class="bg-gray-800 rounded-lg p-6 w-full max-w-sm border-2 border-yellow-400">
622
+ <div class="flex justify-between items-center mb-4">
623
+ <h3 class="text-xl font-bold text-yellow-300">CRATE REWARD</h3>
624
+ <button id="close-crate-btn" class="text-gray-400 hover:text-white">&times;</button>
625
+ </div>
626
+ <div class="text-center">
627
+ <img src="https://cdn-icons-png.flaticon.com/512/3829/3829110.png" alt="Crate" class="h-24 mx-auto mb-4 animate-bounce">
628
+ <p id="crate-reward-text" class="text-lg mb-4">You received: <span class="text-yellow-400 font-bold">50 Coins</span></p>
629
+ <button id="open-another-crate-btn" class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-2 rounded-lg font-bold">
630
+ Open Another (50 Coins)
631
+ </button>
632
+ </div>
633
+ </div>
634
+ </div>
635
+
636
+ <script>
637
+ // DOM Elements
638
+ const loginScreen = document.getElementById('login-screen');
639
+ const lobbyScreen = document.getElementById('lobby-screen');
640
+ const gameScreen = document.getElementById('game-screen');
641
+ const shopScreen = document.getElementById('shop-screen');
642
+
643
+ const playerNameInput = document.getElementById('player-name');
644
+ const playerPasswordInput = document.getElementById('player-password');
645
+ const togglePassword = document.getElementById('toggle-password');
646
+ const loginSubmitBtn = document.getElementById('login-submit');
647
+
648
+ const playerDisplayName = document.getElementById('player-display-name');
649
+ const gamePlayerDisplayName = document.getElementById('game-player-display-name');
650
+
651
+ const characterMenuButton = document.getElementById('character-menu-button');
652
+ const characterDropdown = document.getElementById('character-dropdown');
653
+
654
+ const selectedCharacterImg = document.getElementById('selected-character-img');
655
+
656
+ const coinCount = document.getElementById('coin-count');
657
+ const shopCoinCount = document.getElementById('shop-coin-count');
658
+
659
+ const lobbyBtn = document.getElementById('lobby-btn');
660
+ const lobbyBtn2 = document.getElementById('lobby-btn-2');
661
+ const lobbyBtn3 = document.getElementById('lobby-btn-3');
662
+ const logoutBtn = document.getElementById('logout-btn');
663
+
664
+ const shopBtn = document.getElementById('shop-btn');
665
+ const backToGameBtn = document.getElementById('back-to-game-btn');
666
+
667
+ // Game state
668
+ const gameData = {
669
+ playerName: '',
670
+ character: 'knight',
671
+ coins: 100,
672
+ difficulty: 'medium',
673
+ playerHealth: 200,
674
+ enemyHealth: 100,
675
+ enemyName: 'Goblin',
676
+ enemyHealthMax: 100,
677
+ playerHealthMax: 200,
678
+ cooldowns: {
679
+ punch: 0,
680
+ block: 0,
681
+ special: 0
682
+ },
683
+ gameActive: false,
684
+ blockActive: false,
685
+ divineAngelAvailable: true,
686
+ rageModeAvailable: true
687
+ };
688
+
689
+ // Initialize game
690
+ function initGame() {
691
+ // Add event listeners
692
+ loginSubmitBtn.addEventListener('click', handleLogin);
693
+ togglePassword.addEventListener('click', togglePasswordVisibility);
694
+ characterMenuButton.addEventListener('click', toggleCharacterDropdown);
695
+
696
+ lobbyBtn.addEventListener('click', goToLobby);
697
+ lobbyBtn2.addEventListener('click', goToLobby);
698
+ lobbyBtn3.addEventListener('click', goToLobby);
699
+ logoutBtn.addEventListener('click', logout);
700
+
701
+ shopBtn.addEventListener('click', openShop);
702
+ backToGameBtn.addEventListener('click', closeShop);
703
+
704
+ document.addEventListener('click', (e) => {
705
+ if (!characterMenuButton.contains(e.target) && !characterDropdown.contains(e.target)) {
706
+ characterDropdown.classList.add('hidden');
707
+ }
708
+ });
709
+
710
+ // Set initial UI states
711
+ updateCoinDisplay();
712
+ }
713
+
714
+ // Toggle password visibility
715
+ function togglePasswordVisibility() {
716
+ const type = playerPasswordInput.getAttribute('type') === 'password' ? 'text' : 'password';
717
+ playerPasswordInput.setAttribute('type', type);
718
+ togglePassword.classList.toggle('fa-eye-slash');
719
+ togglePassword.classList.toggle('fa-eye');
720
+ }
721
+
722
+ // Handle login
723
+ function handleLogin() {
724
+ const name = playerNameInput.value.trim();
725
+ const password = playerPasswordInput.value.trim();
726
+
727
+ if (!name) {
728
+ alert('Please enter your name');
729
+ return;
730
+ }
731
+
732
+ if (name.length < 2 || name.length > 30) {
733
+ alert('Name must be between 2 and 30 characters');
734
+ return;
735
+ }
736
+
737
+ if (!password) {
738
+ alert('Please enter a password');
739
+ return;
740
+ }
741
+
742
+ // Save player data
743
+ gameData.playerName = name;
744
+ playerDisplayName.textContent = name;
745
+ gamePlayerDisplayName.textContent = name;
746
+
747
+ // Switch to lobby
748
+ loginScreen.classList.add('hidden');
749
+ lobbyScreen.classList.remove('hidden');
750
+
751
+ // Reset character selection
752
+ selectCharacter('knight');
753
+ }
754
+
755
+ // Toggle character dropdown
756
+ function toggleCharacterDropdown() {
757
+ characterDropdown.classList.toggle('hidden');
758
+ }
759
+
760
+ // Select character
761
+ function selectCharacter(character) {
762
+ gameData.character = character;
763
+
764
+ // Update selected character image
765
+ let characterImg = '';
766
+ switch(character) {
767
+ case 'knight':
768
+ characterImg = 'https://cdn-icons-png.flaticon.com/512/3829/3829110.png';
769
+ break;
770
+ case 'wizard':
771
+ characterImg = 'https://cdn-icons-png.flaticon.com/512/3829/3829149.png';
772
+ break;
773
+ case 'archer':
774
+ characterImg = 'https://cdn-icons-png.flaticon.com/512/3829/3829166.png';
775
+ break;
776
+ case 'ninja':
777
+ characterImg = 'https://cdn-icons-png.flaticon.com/512/3829/3829114.png';
778
+ break;
779
+ default:
780
+ characterImg = 'https://cdn-icons-png.flaticon.com/512/3829/3829110.png';
781
+ }
782
+
783
+ selectedCharacterImg.src = characterImg;
784
+
785
+ // Update checkmarks
786
+ document.getElementById('knight-selected').classList.add('hidden');
787
+ document.getElementById('wizard-selected').classList.add('hidden');
788
+ document.getElementById('archer-selected').classList.add('hidden');
789
+ document.getElementById('ninja-selected').classList.add('hidden');
790
+ document.getElementById(`${character}-selected`).classList.remove('hidden');
791
+
792
+ // Close dropdown
793
+ characterDropdown.classList.add('hidden');
794
+ }
795
+
796
+ // Start game with selected difficulty
797
+ function startGame(difficulty) {
798
+ gameData.difficulty = difficulty;
799
+ gameData.enemyName = getRandomEnemyName(difficulty);
800
+
801
+ // Set health based on difficulty
802
+ switch(difficulty) {
803
+ case 'easy':
804
+ gameData.playerHealth = 200;
805
+ gameData.playerHealthMax = 200;
806
+ gameData.enemyHealth = 100;
807
+ gameData.enemyHealthMax = 100;
808
+ document.getElementById('current-difficulty').textContent = 'Beginner';
809
+ break;
810
+ case 'medium':
811
+ gameData.playerHealth = 200;
812
+ gameData.playerHealthMax = 200;
813
+ gameData.enemyHealth = 150;
814
+ gameData.enemyHealthMax = 150;
815
+ document.getElementById('current-difficulty').textContent = 'Warrior';
816
+ break;
817
+ case 'hard':
818
+ gameData.playerHealth = 200;
819
+ gameData.playerHealthMax = 200;
820
+ gameData.enemyHealth = 200;
821
+ gameData.enemyHealthMax = 200;
822
+ document.getElementById('current-difficulty').textContent = 'Nightmare';
823
+ break;
824
+ case 'chaos':
825
+ gameData.playerHealth = 200;
826
+ gameData.playerHealthMax = 200;
827
+ gameData.enemyHealth = 250;
828
+ gameData.enemyHealthMax = 250;
829
+ document.getElementById('current-difficulty').textContent = 'Chaos';
830
+ break;
831
+ }
832
+
833
+ // Reset cooldowns
834
+ gameData.cooldowns.punch = 0;
835
+ gameData.cooldowns.block = 0;
836
+ gameData.cooldowns.special = 0;
837
+ gameData.gameActive = true;
838
+ gameData.blockActive = false;
839
+ gameData.divineAngelAvailable = true;
840
+ gameData.rageModeAvailable = true;
841
+
842
+ // Update UI
843
+ document.getElementById('enemy-name').textContent = gameData.enemyName;
844
+ updateHealthBars();
845
+ document.getElementById('battle-log').innerHTML = '<div class="text-center text-gray-400">Battle against ' + gameData.enemyName + ' begins!</div>';
846
+
847
+ // Hide special buttons
848
+ document.getElementById('divine-btn').classList.add('hidden');
849
+ document.getElementById('rage-btn').classList.add('hidden');
850
+
851
+ // Switch to game screen
852
+ lobbyScreen.classList.add('hidden');
853
+ gameScreen.classList.remove('hidden');
854
+ }
855
+
856
+ // Update coin display
857
+ function updateCoinDisplay() {
858
+ coinCount.textContent = gameData.coins;
859
+ shopCoinCount.textContent = gameData.coins;
860
+ }
861
+
862
+ // Go to lobby
863
+ function goToLobby() {
864
+ // Close all game screens
865
+ gameScreen.classList.add('hidden');
866
+ shopScreen.classList.add('hidden');
867
+ document.getElementById('game-over-modal').classList.add('hidden');
868
+ document.getElementById('victory-modal').classList.add('hidden');
869
+
870
+ // Show lobby
871
+ lobbyScreen.classList.remove('hidden');
872
+ }
873
+
874
+ // Open shop
875
+ function openShop() {
876
+ gameScreen.classList.add('hidden');
877
+ shopScreen.classList.remove('hidden');
878
+ }
879
+
880
+ // Close shop
881
+ function closeShop() {
882
+ shopScreen.classList.add('hidden');
883
+ gameScreen.classList.remove('hidden');
884
+ }
885
+
886
+ // Logout
887
+ function logout() {
888
+ lobbyScreen.classList.add('hidden');
889
+ loginScreen.classList.remove('hidden');
890
+ }
891
+
892
+ // Get random enemy name
893
+ function getRandomEnemyName(difficulty) {
894
+ const names = {
895
+ easy: ['Goblin', 'Slime', 'Rat', 'Bandit', 'Bat'],
896
+ medium: ['Orc', 'Troll', 'Bandit Leader', 'Skeleton', 'Zombie'],
897
+ hard: ['Dragon', 'Demon', 'Lich', 'Dark Knight', 'Warlock'],
898
+ chaos: ['Chaos Beast', 'Doombringer', 'Abomination', 'Obliterator', 'Annihilator']
899
+ };
900
+
901
+ const pool = names[difficulty] || names.medium;
902
+ return pool[Math.floor(Math.random() * pool.length)];
903
+ }
904
+
905
+ // Update health bars
906
+ function updateHealthBars() {
907
+ const playerHealthPercent = (gameData.playerHealth / gameData.playerHealthMax) * 100;
908
+ const enemyHealthPercent = (gameData.enemyHealth / gameData.enemyHealthMax) * 100;
909
+
910
+ document.getElementById('player-health').style.width = playerHealthPercent + '%';
911
+ document.getElementById('enemy-health').style.width = enemyHealthPercent + '%';
912
+
913
+ document.getElementById('player-health-text').textContent = gameData.playerHealth + '/' + gameData.playerHealthMax;
914
+ document.getElementById('enemy-health-text').textContent = gameData.enemyHealth + '/' + gameData.enemyHealthMax;
915
+ }
916
+
917
+ // Initialize the game
918
+ initGame();
919
+ </script>
920
+ <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=bangis/myyyy" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
921
+ </html>
prompts.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ make a spawn which u can pick levels every level get harder
2
+ change the name to fight showdowns and there is no targets this game about fighting me vs bot we have 200 health but leave thr enter ur name its a great idea
3
+ make a password too and make sign in and log in button right top
4
+ when u enter the name other people cannot use the same name and letters cap is 2-25 letters
5
+ why i cant get in a fight me vs bot when i created a account
6
+ make a shop which u can buy crystal chests for 1 win when u beat bot
7
+ make so u cannot spam the abilytis like punch and make a 20 procent chance to get a ability called divine angen which does 40-50 dmg only 1 use and make a my rage mode which does 90-100 dmg its a 1 procent chance to get only 1 use
8
+ do u see what u done fix it
9
+ where is shop and make the coin left top
10
+ where is the lobby which u can choose the level diffucilty
11
+ make a scroll to see the full list how to play
12
+ make a chaos mode
13
+ make the how to play list left top and make u can click the modes and fight
14
+ the punch ability not work plis fix it and make a charecter selection in lobby top right and make sign in and log in button bottom right
15
+ make when u join u have to enter your name and password than u can fight the bots and make the battle arena middle top
16
+ call it sign in to battle and make there is a button a eye which u can see what u writed in the password
17
+ make the punch do 10-20 damage and make the modes more bottom and make the game name middle top
18
+ make the letter limit 2-30 letters and make the eye middle right not right top
19
+ the eye which shows what u writed not work and i cannot enter the batlle plis fix
20
+ hey can u lower the difficulty modes and delte the knight ,wizard archer but leave the ninja and ninja moves are speed kick doing 15-29 dmg
21
+ delte the knight ,wizard archer but leave the ninja and ninja moves are speed kick doing 15-29 dmg
22
+ delte the knight ,wizard archer but leave the ninja and ninja moves are speed kick doing 15-29 dmg
23
+ delte the knight ,wizard archer but leave the ninja and ninja moves are speed kick doing 15-29 dmg