Skip to content

divyangchauhan/fps-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser-based Multiplayer FPS Game

A simple multiplayer first-person shooter game that runs in the web browser, built with Three.js and Socket.IO.

Features

  • 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)

Prerequisites

  • Node.js (v12.0.0 or higher)
  • npm (comes with Node.js)

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/fps-game.git
cd fps-game
  1. Install dependencies:
npm install

Running the Game

  1. Start the server:
npm start
  1. Open your web browser and navigate to:
http://localhost:3000

Controls

  • 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

Development

To run the server in development mode with auto-restart:

npm run dev

About

This is vibe coded first person shooter game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published