Skip to content

Dragon Forge is a simple browser-based RPG where you explore, battle monsters, and upgrade your weapons. Defeat the dragon to win the game, or discover hidden surprises along the way. Built with HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

anandude/RPG-DragonForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dragon Forge

Dragon Forge is a simple, browser-based RPG game where you can explore, fight monsters, and collect treasures. The game is developed using HTML, CSS, and JavaScript.

Table of Contents

Features

  • Explore different locations like the town square, store, and cave.
  • Fight various monsters including slimes, beasts, and a dragon.
  • Upgrade your weapons and manage your inventory.
  • Earn gold and experience points (XP) by defeating monsters.
  • Discover an Easter egg mini-game for extra rewards.

How to Play

  1. Start the Game: The game begins in the town square where you can choose to visit the store, enter the cave, or fight the dragon.
  2. Exploring Locations: Each location has different actions available via buttons. The text will guide you through each step.
  3. Fighting Monsters: Enter the cave or choose to fight the dragon directly. Attack the monsters using your current weapon or dodge their attacks.
  4. Upgrading Weapons: Visit the store to purchase new weapons or sell your old ones.
  5. Winning and Losing: Defeat the dragon to win the game. If your health reaches zero, you lose.

Game Locations

  • Town Square: The starting location. From here, you can go to the store, the cave, or fight the dragon.
  • Store: Buy health or new weapons. The most powerful weapon can be sold for extra gold.
  • Cave: Fight slimes and fanged beasts to earn gold and XP.

Monsters

  • Slime: Level 2, Health 15
  • Fanged Beast: Level 8, Health 60
  • Dragon: Level 20, Health 300

Weapons

  • Stick: Power 5
  • Dagger: Power 30
  • Claw Hammer: Power 50
  • Sword: Power 100

Winning the Game

To win the game, defeat the dragon in battle. You’ll earn the victory and be presented with a special victory message.

Losing the Game

You lose the game if your health reaches zero during a battle. The game can be restarted by clicking the "REPLAY?" button.

Easter Egg

In the game, there is a hidden mini-game where you guess a number. If you guess correctly, you win gold; if not, you lose health.

How to Run

  1. Clone the repository to your local machine.
  2. Open index.html in any modern web browser.
  3. Start playing the game.

Contributing

If you would like to contribute to Dragon Forge, feel free to submit a pull request or open an issue for any bugs or suggestions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Dragon Forge is a simple browser-based RPG where you explore, battle monsters, and upgrade your weapons. Defeat the dragon to win the game, or discover hidden surprises along the way. Built with HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published