Skip to content

Compositr/suroi15

Repository files navigation

Suroi

About

Suroi is an open-source 2D battle royale game inspired by surviv.io. It is currently a work in progress.

Suroi15 is a mod of the original Suroi project.

Play the game!

suroi15.dafox.box.ca

Join the Discord!

Discord Server

Installation and setup

Start by installing Node.js (v18.x.x) and pnpm.

Next, clone the repository:

git clone https://github.com/Compositr/suroi15.git

To install dependencies, open a terminal in the project root, and run this command:

pnpm install

This will create a node_modules directory in all three folders (client, common, and server) and link the packages there.

Development

To run the game locally, open a terminal in the project root and run the following:

pnpm dev

To open the game, go to http:https://127.0.0.1:63333 in your browser.

Production

To build for production, run this command in the project root:

pnpm build

To start the WebSocket server, run this command:

pnpm start

Production builds are served using NGINX. A sample configuration file can be found here.