Skip to content

maudlin/rpg-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wizards vs Robots

Wizards vs Robots is a turn-based combat game that runs in a browser. You can play as a wizard or a robot and engage in combat with a non-player character (NPC) robot.

Features

  • Choose your character: Play as a wizard or a robot, each with unique attributes like health, attack speed, chance to hit, and damage range.
  • Real-time combat: Enjoy turn-based combat with an NPC robot. The health bars and combat log update in real time during combat.
  • Detailed combat log: Keep track of each round with a combat log that records hits, misses, and defeats.
  • Easy to play: Simply click the "Attack" button to initiate combat.
  • End of game messages: Once the combat ends, a styled message appears over the game indicating "You Win!" or "You Lose!" depending on the outcome.

Getting Started

To play the game, clone this repository and open the index.html file in your web browser. No additional setup is required.

How to Play

  1. Choose your character: Select either the wizard or the robot as your character.
  2. Click the "Attack" button to begin combat.
  3. Watch the combat log and health bars for updates on each attack.
  4. Combat continues until either the player or the NPC robot's health reaches zero.
  5. A "You Win!" or "You Lose" message will appear on the game screen, indicating the result of the combat.

Testing

This project uses Jasmine for unit testing. To run the tests, open the SpecRunner.html file in your browser.

Future Improvements

  • Add more character options, each with their own unique abilities.
  • Implement a leveling system where characters can gain experience and level up.
  • Add a variety of different enemies to fight against.
  • Implement a more complex combat system, with options for different types of attacks, defense moves, and special abilities.

Contributing

If you'd like to contribute to this project, please feel free to submit a pull request or open an issue with your suggestions or bug reports.

License

This project is licensed under the MIT License.

Author

This game is developed using the ChatGPT model by OpenAI.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published