Multiplayer 3d Top Down RPG - Babylon.js & Colyseus

Hi there,

First of all, great job to all those who made babylon.js, it’s feels great to use, has a great commmunity, it’s constantly evolving and got many tools to achieve your outcome.

After scouring the forum for a while now, there’s clearly a demand for a simple example of how to use Colyseus with Babylon.js and as I’ve been working for the last 2 months (slow progress) on a simple top down rpg and I thought I might aswell share my progress.

Demo here (slow to load) : DEMO LINK

Current progress:

  • fully authorative movement with client side prediction and server reconciliation (server is king)
  • Server controlled collisions
  • Simple scene management & switching
  • networked animated characters
  • zoning system (ability to teleport to different location)
  • login / character selection/creation scene
  • database persistence
  • global chat


  • client side prediction and server reconciliation done
  • zoning system done done
  • networked collision done
  • right hand click camera rotate around player
  • use assets manager and asset container to load all models including player
  • global / local chat done

No reason I should not share it it can help anyone: GitHub - oriongunning/t5c: Building a basic multiplayer 3d top down rpg using babylon.js and colyseus


Yeah man!!!

Damn that was really hard but I managed to implement client side prediction and server reconcilation as explained here: Client-Server Game Architecture - Gabriel Gambetta

Even with a massive ping, client is moving smoothly!

So happy! :slight_smile:


Great work @oriongu! I’m using Colyseus as well, but less ambitiously with a turn-based game. Still early days though and nothing to show publicly.

It’s good to see how others are using Colyseus with Babylon.js.

We also use Colyseus here -


Thanks mate, appreciate the comment.

I can’t wait to see what you come up with, hehe!

1 Like

This is amazing @PirateJC we need this somewhere in the doc I believe :slight_smile:

1 Like

impressive work @labris


Can’t agree more!

OK, I managed to get the zones working, so now we can seamlessy jump from zone to zone. SO much fun! It’s hard to showcase, but it’s pretty cool :slightly_smiling_face:

I’ll work next on a global chat, and then maybe we can do a larger scale test with a few more people and see how the server holds up.

1 Like

Thanks a lot for the sharing. A real nice contribution :heart_eyes: :heart_eyes: that I think can be very helpful knowing just how much effort it is to master all parts of game creation. There’s always so little about these parts (people tend to prefer showing a full-game and focus on design, faen shaders or gameplay). Where this part is certainly one of the most important (and most frustrating) to build. I think this clearly deserves a mention somewhere in the doc. And also deserves a hug :hugs: for your efforts.


appreciate the kind words @mawa ! I must admit it’s not the most gratifying part of the game building process but I want to have a good enough base before rushing into gameplay and level design. :slight_smile: My goal is to be able to handle correctly ~20 people per zone, anything higher is just too much work (in my opinion) for a single person to build.


Hi there,

A global chat was rather easy to add compare to the other stuff

I started experimenting with unity level export to GLB and it’s giving quite good results (size and quality), and I may just stick to unity for my level design.


I finalized a workflow between unity and babylon which works for me, so I quickly did up 2 basics scenes just for the sake of testing my upcoming collisions system (easy to say, much harder to make)

heres a screenshot for the fun


Quick progress update:

I managed to implement simple server controlled collisions to my game, follow the progress forum post here: How to manage networked collisions (babylon and colyseus) - #15 by oriongu

If that doesnt look great, I dont know what does! :stuck_out_tongue:

(I didnt realize, I had music playing on the video, hope you guys like alpha blondy :grinning: )


love the progress here !!!

1 Like

Hi there,

Just another quick update on character creation / database.

You can now login / registrer, create new character, then click one of the available characters to join the game. Additionnaly, as you move around, your position and zone is saved.

Despite initially wanting to use firebase/similar, I went with SQLite (mysql database in a file) to keep complexity levels low & reducing external services to the minimum.

1 Like

having fun refining game ui :slight_smile: