Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KStrike

KStrike is a fast-paced browser FPS deathmatch built with Three.js and Colyseus.

Made by AltF4 Games — Pradyum Mistry.

Screenshots

D2 deathmatch gameplay

KStrike firefight

KStrike D2 arena

Features

  • Multiplayer deathmatch with public matchmaking and private room codes
  • D2 desert arena and a compact training arena
  • First-person movement with sprinting, crouching, jumping, momentum, and collision
  • AR-01 automatic rifle and switchable SG-12 shotgun
  • Networked blocky player avatars with idle, movement, crouch, jump, fire, and reload animation
  • Kill feed, scoreboard, end-of-match leaderboard, and kill-streak cards
  • Remote-player firing effects, weapon audio, hit markers, bullet decals, and out-of-map recovery

Controls

Action Control
Move WASD
Look / fire Mouse / left click
Sprint Shift
Crouch Ctrl or C
Jump Space
Reload R
Switch weapons 1 / 2 or mouse wheel
Leaderboard Hold Tab
Pause menu Esc

Run locally

Install dependencies once:

npm install
npm --prefix server install

Start the client:

npm run dev

In a second terminal, start the multiplayer server:

npm run dev:server

Open the Vite URL shown in the client terminal. Use a normal window and an incognito window to test a local multiplayer match.

Create a production client build with:

npm run build

Deployment

Deploy the frontend to Vercel. Set VITE_COLYSEUS_URL to the public WebSocket URL of the server, for example:

wss://kstrike-server.onrender.com

Deploy the Colyseus server as a persistent Node web service, such as Render, using render.yaml. The server exposes /health for host health checks.

After deploying the server, redeploy the Vercel frontend with the environment variable set.

Source code

The source is available on GitHub.

Asset attribution

Weapons

Map

About

Repository for Multiplayer FPS Game.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages