Installation Clone the repository: git clone https://github.com/your-username/fighting-game.git
Navigate to the project directory: cd fighting-game-main
Install dependencies: npm install
Running the Game Start the HTTP server: http-server This will start the server and provide the local URLs where the game is accessible.
Open your web browser: Open your preferred web browser (e.g., Chrome, Firefox). Enter the URL provided by http-server (e.g., http://127.0.0.1:8081) in the address bar.
Play the Game: Once the game is loaded in the browser, interact with it using the keyboard controls: Use A and D keys for player movement. Use W key to jump. Use Spacebar to attack. Use Arrow keys for enemy movement and attack.