Skip to content

BZFlag-Dev/bzo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Multiplayer Tank Game

A real-time 3D multiplayer tank game built with Three.js and WebSocket, featuring server-side validation.

Features

  • 3D tank avatars with movement controls
  • Real-time multiplayer synchronization
  • Shooting mechanics with projectile physics
  • Server-side validation:
    • Kill detection
    • Shot position validation
    • Movement speed validation
  • Fixed map with boundaries

Installation

npm install

Running the Game

Production Mode

npm start

Then open your browser to http://localhost:3000

Development Mode

npm run dev

Runs the server with auto-restart on file changes using nodemon. Open your browser to http://localhost:3000

Controls

  • W/S - Move forward/backward
  • A/D - Turn left/right
  • Space - Shoot
  • Tab - Jump
  • Mouse - Look around (optional)

Game Rules

  • Each player spawns with a tank
  • Tanks can move and shoot
  • Getting hit respawns you at a random location
  • Server validates all movements and shots to prevent cheating

About

Battlezone Online

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published