DanielCender / colyseus-babylonjs-boilerplate

BabylonJS + Colyseus: Multiplayer Boilerpate

Home Page:https://babylonjs-multiplayer.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project archived. For an up-to-date example, please check:


BabylonJS + Colyseus: Multiplayer Boilerplate

This is a project setup to use BabylonJS 4.x with Colyseus 0.14.x.

Tooling

Deploy | Live demo

Requires NodeJS v12.0.0+

How to use

Check out this repository.

git clone https://github.com/endel/colyseus-babylonjs-boilerplate.git

Inside this repository, there's two separate applications. The client (babylonjs + colyseus client) and the server (nodejs + colyseus server).

Client application

To be able to build the client application, you'll need to enter in the folder, and install its dependencies first.

cd colyseus-babylonjs-boilerplate/client
npm install

Now you can build and run it by running:

npm start

It will spawn the webpack-dev-server, listening on http://localhost:8080.

Server application

For the server, the steps are exactly the same. Install the dependencies:

cd colyseus-babylonjs-boilerplate/server
npm install

Now you can build and run it by running:

npm start

It will spawn a web socket server, listening on ws://localhost:2657.

Documentation

License

Apache License 2.0

About

BabylonJS + Colyseus: Multiplayer Boilerpate

https://babylonjs-multiplayer.herokuapp.com/

License:Apache License 2.0


Languages

Language:TypeScript 81.0%Language:JavaScript 15.6%Language:HTML 2.1%Language:CSS 1.2%