-
Hi, I am having the same issue as this person: https://discuss.colyseus.io/topic/957/issue-with-phaser-tutorial This is the step where I am getting the error: Following the phaser tutorial, I am getting the error:
I am using both client and server colyseus.js and colyseus 0.16.1. Any recommendations here please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
HI @AlonsoGD, I hope you're doing great! The tutorials from the docs hasn't been updated to match latest version (0.16) yet. You can check out the sources using version 0.16 here: https://github.com/colyseus/tutorial-phaser/blob/b9459544ab7bf5f907df88edd7f828f51a45a9b6/client/src/scenes/Part1Scene.ts#L43-L45 (The callbacks have been decoupled from the Please let me know if you have any other issues 🙏 |
Beta Was this translation helpful? Give feedback.
HI @AlonsoGD, I hope you're doing great!
The tutorials from the docs hasn't been updated to match latest version (0.16) yet. You can check out the sources using version 0.16 here: https://github.com/colyseus/tutorial-phaser/blob/b9459544ab7bf5f907df88edd7f828f51a45a9b6/client/src/scenes/Part1Scene.ts#L43-L45
(The callbacks have been decoupled from the
Schema
instances on 0.16. I'm still not 100% happy with the callback API - it is now possible to come up with your own callback style if you'd like to, but the default should serve everyone's needs 🙌)Please let me know if you have any other issues 🙏