Colyseus is fully open-source. Please consider donating any amount to support the project ❤️
Best practices with Colyseus¶
Important
This section needs improvement and more examples! Each paragraph needs it's own page with thorough examples and better explanation.
- Keep your room classes as small as possible, without game logic.
- Keep your synchronizeable data structures as small as possible
- Ideally, each class extending
Schema
should only have field definitions. - Custom getters and setters methods can be implemented, as long as you don't have game logic in them.
- Ideally, each class extending
- Your game logic should be handled by other structures, such as:
- See how to use the Command Pattern.
- An Entity-Component System WE NEED ONE THAT WORKS WELL WITH COLYSEUS PLEASE HELP
Colyseus is fully open-source. Please consider donating any amount to support the project ❤️