Welcome to the HTML Fighting Game, a simple game built with HTML, CSS, and JavaScript.
The game consists of two fighters: a player and an enemy. The player can attack and defend while the enemy can only attack. The goal is to defeat the enemy before your health runs out.
- Clone the repository to your local machine
- Open
index.html
in your browser - Choose your fighter and click "Start Game"
- Use the buttons to attack and defend
- Watch the enemy's health bar and defend when necessary
- Keep attacking until the enemy's health bar reaches zero
- The player starts with 100 health and the enemy starts with 200 health
- Each attack will cause a random amount of damage between 5 and 20
- The enemy will always attack for a random amount of damage between 10 and 25
- Defending will reduce the damage taken by 50%
- The game ends when either the player or enemy's health reaches zero
- The game can be restarted by clicking the "Restart" button
This game was built with the help of the following resources:
- Fighting game sprites by ArMM1998
- Sound effects by ZapSplat
- Background music by Bensound
This project is licensed under the MIT License - see the LICENCE file for details.