adventure-fighter-game
v1.0.0
Published
A text-based battle game where you, as the player, face off against various opponents like Skeletons, Assassins, and Zombies. Your goal is to manage your resources and defeat your opponents in a thrilling battle.
Downloads
1
Readme
Text-Based Battle Game
A text-based battle game where you, as the player, face off against various opponents like Skeletons, Assassins, and Zombies. Your goal is to manage your resources and defeat your opponents in a thrilling battle.
How to Play
Installation
- Ensure you have Node.js installed on your system.
- Clone this repository to your local machine.
Getting Started
- Open your terminal and navigate to the project directory.
- Run the game by executing the following command:
node game.js
Gameplay
- Enter your name when prompted.
- Select your opponent from the available choices: Skeleton, Assassin, Zombie.
- Engage in a thrilling battle with your chosen opponent.
- You have three actions to choose from:
- Attack: Attempt to strike your opponent. (Chance of missing)
- Drink potion: Replenish your energy. (Limited to 2 uses)
- Run for your life: Decide to escape the battle.
Game Rules
- The outcome of your attack is determined randomly.
- Missing an attack will decrease your fuel.
- Landing a hit on your opponent will increase your fuel.
- You have a limited number of drink portions (2) to recover energy.
- The game ends when either you or your opponent runs out of fuel.
Winning and Losing
- If your opponent's fuel reaches 0, you win the battle.
- If your fuel reaches 0, you lose the battle.
- Choosing to run away may result in a draw or escaping with your life.
Enjoy the Game!
Have fun battling against various opponents and testing your luck and strategy. Good luck, and may the odds be in your favor!
Feel free to provide feedback, report issues, or make contributions to enhance this game.
Happy gaming!