Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.68 KB

README.md

File metadata and controls

58 lines (47 loc) · 1.68 KB

Three.js FPS Game

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

Table of Contents

Getting Started

Prerequisites

Before you can run the game, ensure you have the following dependencies installed on your system:

Installation

  1. Clone this repository to your local machine:
    git clone https://github.com/Frederik353/three_js_fps_game.git
  2. Navigate to the project directory:
    cd three_js_fps_game
  3. Install the project dependencies using npm or yarn:
    npm install
    # or
    yarn install

Running the Game

Once you've completed the installation, you can run the game locally:

  1. Start the development server:
    npm start
    # or
    yarn start
  2. Open your web browser and navigate to http://localhost:8080 to play the game.

Controls

  • 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