From b740b70f58fa2cd1ddd5710dbb1f3d2f0526f620 Mon Sep 17 00:00:00 2001 From: Endel Dreyer Date: Thu, 4 Jul 2024 22:54:06 -0300 Subject: [PATCH] phaser tutorial: fix 'client' reference. colyseus/colyseus#492 --- tutomd/phaser/1-basic-player-movement.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutomd/phaser/1-basic-player-movement.md b/tutomd/phaser/1-basic-player-movement.md index d4f6186..580edff 100644 --- a/tutomd/phaser/1-basic-player-movement.md +++ b/tutomd/phaser/1-basic-player-movement.md @@ -213,7 +213,7 @@ export class GameScene extends Phaser.Scene { console.log("Joining room..."); try { - this.room = await client.joinOrCreate("my_room"); + this.room = await this.client.joinOrCreate("my_room"); console.log("Joined successfully!"); } catch (e) {