This repo has moved here!
This repository provides examples of running Colyseus with the Rivet plugin.
First, clone the project:
git clone https://github.com/rivet-gg/plugin-colyseus-examples.git
cd plugin-colyseus-examples
npm install
Set up Rivet game:
- Create a game on the Rivet Developer Dashboard
- Install the Rivet CLI
- Run
rivet init --recommend
to link your game - Run
npm install
- Run the server in one terminal:
npm start
- Serve the static files in another terminal:
npm run serve
- Open http://localhost:2567 in your browser.
- Run
rivet deploy -n prod
- Visit the game in your browser
MIT