Welcome to the Three.js FPS Game! This project is a first-person shooter (FPS) game built using React and Three.js. In this README, you'll find information on how to set up and run the game, as well as some additional details about the project.
three-js-fps.mp4
Before you can run the game, ensure you have the following dependencies installed on your system:
- Node.js: You can download it from nodejs.org.
- Clone this repository to your local machine:
git clone https://github.com/Frederik353/three_js_fps_game.git
- Navigate to the project directory:
cd three_js_fps_game
- Install the project dependencies using npm or yarn:
npm install # or yarn install
Once you've completed the installation, you can run the game locally:
- Start the development server:
npm start # or yarn start
- Open your web browser and navigate to
http://localhost:8080
to play the game.
- WASD: To move around
- Space: Jump
- Mouse movement: Look around
- Left Mouse Button: Shoot
- R: Reload
- 1, 2, 3, etc.: Switch weapons
- Esc: Pause/Menu