This is a simple two-player fighting game implemented using JavaScript. The game features health bars for each player and a timer system to determine the winner if no one is knocked out.
- Two-player gameplay: Control two characters and battle against each other.
- Health bars: Each player has a health bar that decreases when hit.
- Timer system: A countdown timer to keep track of the match duration.
- Win/Lose conditions: Players can win by either knocking out their opponent or having more health when the timer runs out.
To get started with the project, follow these steps:
-
Clone the repository:
git clone clone [email protected]:Kazedaa/Clash-of-Legends.git cd Clash-of-Legends
-
Open the game: Open
index.html
in your preferred web browser.
-
Player 1:
- Move left:
A
- Move right:
D
- Jump:
W
- Attack:
S
- Move left:
-
Player 2:
- Move left:
Left Arrow
- Move right:
Right Arrow
- Jump:
Up Arrow
- Attack:
Down Arrow
- Move left:
-
Health Bars:
- Each player starts with a full health bar.
- Health decreases when a player is hit by their opponent.
- The game ends when one player's health reaches zero.
-
Timer System:
- The game features a countdown timer.
- When the timer reaches zero, the player with the most health remaining wins.
- If both players have equal health, the match is a draw.
This project was developed by ..... ~~ Me!:3.
Sprite Assets :
- Oak Wood's-Environment Assets by Brullove
- Ka'Ali Character Sprite by Chierit
- Ha'An Character Sprite by Chieri
Music :
Enjoy the game and have fun battling with your friends!