Project archived. For an up-to-date example, please check:
- https://doc.babylonjs.com/guidedLearning/multiplayer/Colyseus
- https://github.com/colyseus/tutorial-babylonjs-client
- https://github.com/colyseus/tutorial-babylonjs-server
This is a project setup to use BabylonJS 4.x with Colyseus 0.14.x.
Requires NodeJS v12.0.0
Check out this repository.
git clone https://github.com/endel/babylonjs-multiplayer-boilerplate.git
Inside this repository, there's two separate applications. The client (babylonjs colyseus client) and the server (nodejs colyseus server).
To be able to build the client application, you'll need to enter in the folder, and install its dependencies first.
cd babylonjs-multiplayer-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.
For the server, the steps are exactly the same. Install the dependencies:
cd babylonjs-multiplayer-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.
Apache License 2.0