AdventureGame
Welcome to AdventureGame, a simple command-line text-based game where you battle different enemies and manage your health potions. Enjoy the thrill of combat and make strategic decisions to survive!
Features
- Exciting text-based adventure game with combat scenarios
- Dynamic enemy encounters with varying health and attack damage
- Health potions to heal and continue the battle
- Interactive CLI interface with user-friendly prompts
- Animated attack sequences for an engaging experience
- Game loop allowing continuous battles or exit options
- Display of player and enemy health during combat
- Multiple enemy types, adding diversity to encounters
- Randomized events, such as enemy dropping a bomb or health potion
- Instructions displayed at the start for user guidance
- Object-oriented design for clean and maintainable code
- Game restart option for ongoing adventures
- Health potion drop chance to enhance gameplay
- Clear and concise victory or defeat messages
- Colorful console output for a visually appealing interface
Dependencies
AdventureGame relies on the following dependencies:
- inquirer: A powerful library for handling interactive command-line prompts.
How to Use
- Choose actions from the presented list during encounters.
- Engage in battles, use health potions wisely, and strategize your moves.
- React to randomized events like enemies dropping bombs or health potions.
- Decide whether to continue fighting or exit the game.
- Explore various enemy types and experience different scenarios in each battle.
Installation & Usage
- Clone the repository:
git clone https://github.com/mubeendev3/typescript-projects.git - Change into the project directory:
cd 11-AdventureGameProject - Install dependencies:
npm install - Compile the Adventure Game CLI into .js by using this command :
tsc - Run the game.js file using:
node game.js - Follow the prompts to enjoy the game!.
Example
npx mubeen-adventuregame
Issues
If you encounter any issues or have suggestions, please report them on the GitHub repository.
Follow Me:
Connect with Mubeen on LinkedIn
Explore Mubeen's projects on GitHub
Follow Mubeen's creative journey on Instagram
Stay updated with Mubeen on Twitter
Discover Mubeen's design portfolio on Behance