/plugin-colyseus-examples

Examples of using the Colyseus Game Server with Rivet

Primary LanguageHTMLMIT LicenseMIT

Rivet Colyseus Plugin Examples

This repo has moved here!

This repository provides examples of running Colyseus with the Rivet plugin.

Live demo

Project setup

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:

  1. Create a game on the Rivet Developer Dashboard
  2. Install the Rivet CLI
  3. Run rivet init --recommend to link your game
  4. Run npm install

Running locally

  1. Run the server in one terminal: npm start
  2. Serve the static files in another terminal: npm run serve
  3. Open http://localhost:2567 in your browser.

Deploying to Rivet

  1. Run rivet deploy -n prod
  2. Visit the game in your browser

License

MIT