Suroi is an open-source 2D battle royale game inspired by surviv.io. It is currently a work in progress.
Start by installing Node.js and pnpm.
Next, click here to download the repo, or use the following command to clone it:
git clone https://github.com/HasangerGames/suroi.gitTo install dependencies, open a terminal in the project root, and run this command:
pnpm installThis will create a node_modules directory in all three folders (client, common, and server) and link the packages there.
To run the game locally, open a terminal in the project root and run the following:
pnpm devTo open the game, go to http://127.0.0.1:3000 in your browser.
To build for production, run this command in the project root:
pnpm buildTo start the WebSocket server, run this command:
pnpm startProduction builds are served using NGINX. A sample configuration file can be found here.
Visit the wiki for details on how to self-host.
