Skip to content

Commit

Permalink
phaser tutorial: fix 'client' reference. colyseus/colyseus#492
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Jul 5, 2024
1 parent c9149da commit b740b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutomd/phaser/1-basic-player-movement.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b740b70

Please sign in to comment.