This is a simple 2-player fighting game built with HTML, a bit of CSS, and JavaScript. It features basic movement, attacks, and health systems and a timer.
Player 1: Movement: WASD keysAttack: Spacebar Player 2: Movement: Arrow keys Attack: Down arrow key
Players can move around the screen and attack each other.Each player has a health bar that depletes when attacked.The first player to reduce their opponent's health to zero wins the game.
1.index.html : Contains the HTML structure and links to the JavaScript file.
2.index.js : Contains the JavaScript code that handles game logic, events, and rendering.
3.classes.js : Contains classes for sprites and fighter objects.
4.util.js : Encompasses utility movement for the the players.
This is a very basic implementation of a fighting game.Feel free to modify and extend the code to add more features, such as:
- Different characters with unique moves.
- Special attacks
- CombosSound effects and music
- Visual effectsGame modes (e.g., time attack, survival)