A simple multiplayer first-person shooter game that runs in the web browser, built with Three.js and Socket.IO.
- Real-time multiplayer gameplay
- First-person perspective with mouse look controls
- Basic shooting mechanics
- Player health system
- Simple respawn system
- Basic movement (WASD/Arrow keys)
- Node.js (v12.0.0 or higher)
- npm (comes with Node.js)
- Clone this repository:
git clone https://github.com/yourusername/fps-game.git
cd fps-game- Install dependencies:
npm install- Start the server:
npm start- Open your web browser and navigate to:
http://localhost:3000
- WASD or Arrow keys: Move
- Mouse: Look around
- Left Click: Shoot
- Space: Jump
- Click on the game window to enable mouse controls
- Press Esc to release mouse controls
To run the server in development mode with auto-restart:
npm run dev