Skip to content

felixgren/three-arena

Repository files navigation

Three Arena

Join now on three-arena.vercel.app

An arena shooter created in three.js. Shoot your friends in this socket.io multiplayer game. You can open chat by pressing t.

It features a vanilla built movement system, collisions (with the help of octrees), chat & shooting. Backend is an express socket.io server which gathers and sends out all player data (movement, directions, chat, rocket fire events) to the clients. The clients then react by generating and updating the players & events, the client is completely trusted. Best part is that it's all in one file... but would be very easy to break out & expand upon if you have some time.

If you've found this repo valuable, do give it a star.

This game was created using the following technologies:

Installation

Prerequisites

Setting up project

git clone https://github.com/felixgren/three-arena.git
cd three-arena
npm install
cd server
npm install

Run project

// Start client
npm run dev

// Start server
npm run server

In case of errors, verify that socket.io client in game.js is targeted at matching localhost port inside /server/main.js.

Changelog