Skip to content

Luis-is-coder/Dragon-Repeller-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dragon Repeller Game

Dragon Repeller is a beginner-friendly browser RPG built with HTML, CSS, and JavaScript as a learning project from freeCodeCamp.

About

In this game, you start in a town square with a small amount of health, gold, and experience. You can:

  • Visit the store to buy health or upgrade your weapon
  • Explore the cave to fight weaker monsters
  • Challenge the dragon to win the game

The game uses button-driven choices and displays updated stats and monster information dynamically.

How to Play

  1. Open dragon_repeller.html in a web browser.
  2. Use the on-screen buttons to move between town, store, and cave.
  3. Buy health or weapons with gold to improve your chances.
  4. Fight monsters and gain XP and gold.
  5. Face the dragon and defeat it to win.

Files

  • dragon_repeller.html — main game page and UI structure
  • dragon_repeller.css — styling for the game layout and buttons
  • dragon_repeller.js — game logic, combat, inventory, and navigation

Learning Goals

This project was created to practice:

  • HTML page structure for a simple game UI
  • CSS styling for a compact in-browser game layout
  • JavaScript event handling and game state management
  • Basic RPG mechanics like health, weapons, inventory, and combat

Notes

This game is a small, self-contained demo suitable for experimenting with JavaScript and learning how interactive browser games work.

About

Dragon Repeller is a simple browser RPG where you buy gear, fight monsters, and defeat a dragon using button-based choices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors