yazdaabdul commited on
Commit
4e45fa9
·
verified ·
1 Parent(s): a78356b

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +5 -5
  2. prompts.txt +2 -1
index.html CHANGED
@@ -84,7 +84,7 @@
84
  left: 0;
85
  width: 100%;
86
  height: 100%;
87
- background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%;
88
  animation: fogScroll 20s linear infinite;
89
  }
90
 
@@ -225,7 +225,7 @@
225
  <!-- Player Stats Section -->
226
  <div class="w-full md:w-1/4 bg-black bg-opacity-70 p-4 rounded-lg border border-yellow-700">
227
  <div class="flex flex-col items-center mb-6">
228
- <img src="https://i.imgur.com/3JQZ3aE.png" alt="Elf Huntress" class="w-32 h-32 object-cover rounded-full border-2 border-yellow-500 mb-2 anime-character">
229
  <h2 class="text-xl font-bold text-yellow-400">Aelindra Swiftarrow</h2>
230
  <p class="text-sm text-gray-300">Level 1 Elf Huntress</p>
231
  </div>
@@ -317,7 +317,7 @@
317
  <div class="forest-path mb-4 relative">
318
  <div class="fog"></div>
319
  <div class="absolute bottom-4 left-1/2 transform -translate-x-1/2">
320
- <img id="player" src="https://i.imgur.com/3JQZ3aE.png" alt="Player" class="w-24 h-24 object-cover anime-character player-character">
321
  </div>
322
  <div id="enemy-container" class="absolute bottom-4 right-8 hidden">
323
  <img id="enemy" src="https://i.imgur.com/5XQmW9j.png" alt="Goblin" class="enemy w-20 h-20 object-cover anime-character">
@@ -370,7 +370,7 @@
370
  <div id="victory-screen" class="victory-screen">
371
  <div class="victory-content">
372
  <h2 class="text-4xl font-bold text-yellow-400 mb-4">Victory!</h2>
373
- <img src="https://i.imgur.com/3JQZ3aE.png" alt="Elf Huntress" class="w-48 h-48 object-cover rounded-full border-4 border-yellow-500 mx-auto mb-6 anime-character">
374
  <p class="text-xl text-white mb-6">You have defeated 10 goblins and cleansed the Whispering Woods of their threat!</p>
375
  <p class="text-lg text-yellow-300 mb-8">The forest is safe once more thanks to your bravery, Aelindra Swiftarrow.</p>
376
  <button id="restart-btn" class="bg-yellow-600 hover:bg-yellow-500 text-black font-bold py-3 px-6 rounded-lg text-lg transition-all transform hover:scale-105">
@@ -1081,7 +1081,7 @@
1081
  healBtn.classList.add('hidden');
1082
  fleeBtn.classList.add('hidden');
1083
  continueBtn.classList.remove('hidden');
1084
- } else {
1085
  writeText(`You attempt to flee but the ${gameState.enemy.name} blocks your escape!`, "red");
1086
  addToLog(`Failed to flee from ${gameState.enemy.name}.`);
1087
 
 
84
  left: 0;
85
  width: 100%;
86
  height: 100%;
87
+ background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
88
  animation: fogScroll 20s linear infinite;
89
  }
90
 
 
225
  <!-- Player Stats Section -->
226
  <div class="w-full md:w-1/4 bg-black bg-opacity-70 p-4 rounded-lg border border-yellow-700">
227
  <div class="flex flex-col items-center mb-6">
228
+ <img src="https://i.imgur.com/JQZ3aE2.png" alt="Elf Huntress" class="w-32 h-32 object-cover rounded-full border-2 border-yellow-500 mb-2 anime-character">
229
  <h2 class="text-xl font-bold text-yellow-400">Aelindra Swiftarrow</h2>
230
  <p class="text-sm text-gray-300">Level 1 Elf Huntress</p>
231
  </div>
 
317
  <div class="forest-path mb-4 relative">
318
  <div class="fog"></div>
319
  <div class="absolute bottom-4 left-1/2 transform -translate-x-1/2">
320
+ <img id="player" src="https://i.imgur.com/JQZ3aE2.png" alt="Player" class="w-24 h-24 object-cover anime-character player-character">
321
  </div>
322
  <div id="enemy-container" class="absolute bottom-4 right-8 hidden">
323
  <img id="enemy" src="https://i.imgur.com/5XQmW9j.png" alt="Goblin" class="enemy w-20 h-20 object-cover anime-character">
 
370
  <div id="victory-screen" class="victory-screen">
371
  <div class="victory-content">
372
  <h2 class="text-4xl font-bold text-yellow-400 mb-4">Victory!</h2>
373
+ <img src="https://i.imgur.com/JQZ3aE2.png" alt="Elf Huntress" class="w-48 h-48 object-cover rounded-full border-4 border-yellow-500 mx-auto mb-6 anime-character">
374
  <p class="text-xl text-white mb-6">You have defeated 10 goblins and cleansed the Whispering Woods of their threat!</p>
375
  <p class="text-lg text-yellow-300 mb-8">The forest is safe once more thanks to your bravery, Aelindra Swiftarrow.</p>
376
  <button id="restart-btn" class="bg-yellow-600 hover:bg-yellow-500 text-black font-bold py-3 px-6 rounded-lg text-lg transition-all transform hover:scale-105">
 
1081
  healBtn.classList.add('hidden');
1082
  fleeBtn.classList.add('hidden');
1083
  continueBtn.classList.remove('hidden');
1084
+ else {
1085
  writeText(`You attempt to flee but the ${gameState.enemy.name} blocks your escape!`, "red");
1086
  addToLog(`Failed to flee from ${gameState.enemy.name}.`);
1087
 
prompts.txt CHANGED
@@ -2,4 +2,5 @@ create a fantasy role playing game featuring an Elf huntress armed with bow and
2
  add images of the elf huntress and the goblin enemy to the game. anime style
3
  add a goal. You win after you defeat 10 goblins
4
  add a second chapter. the goal is again to slay 10 goblins but he final enemy is a Level 5 Boss.
5
- add a bow doing double damage as a reward for completing chapter 1
 
 
2
  add images of the elf huntress and the goblin enemy to the game. anime style
3
  add a goal. You win after you defeat 10 goblins
4
  add a second chapter. the goal is again to slay 10 goblins but he final enemy is a Level 5 Boss.
5
+ add a bow doing double damage as a reward for completing chapter 1
6
+ create image of elf huntress using image generator and add it to the game