The 2D Fighting Game is a two-player fighting game built using vanilla JavaScript and CSS. It features a simple yet engaging combat system where players can choose their characters and battle each other in a classic 2D arena.
- Two-Player Mode: Play against another player on the same device.
- Basic Combat Mechanics: Includes attacks, blocks, and special moves.
- Responsive Controls: Smooth and responsive controls for both players.
- Vanilla JavaScript
- CSS
- HTML
- A modern web browser
-
Clone the repository:
git clone https://github.com/somramnani/2d-fighting-game.git
-
Navigate to the project directory:
cd 2d-fighting-game
-
Open the
index.html
file in your web browser to start the game.
- Player 1 Controls: Use the
W
,A
,S
,D
keys for movement andSpacebar
for attack. - Player 2 Controls: Use the arrow keys for movement and arrow down for attack.