testing instance join
This commit is contained in:
Regular → Executable
+6
@@ -27,6 +27,12 @@ class MenuNavigation extends Phaser.Scene {
|
||||
.text(play.getCenter().x, play.getCenter().y, 'Play Cryps', TEXT.HEADER)
|
||||
.setOrigin(0.5, 0.5);
|
||||
play.on('pointerdown', () => {
|
||||
const cryps = this.registry.get('cryps');
|
||||
const crypJoinList = [0, 0, 0];
|
||||
for (let i = 0; i <= 2; i += 1) {
|
||||
crypJoinList[i] = cryps[i].id;
|
||||
}
|
||||
ws.sendInstanceJoin(crypJoinList);
|
||||
this.selectMode(ws);
|
||||
play.destroy();
|
||||
playText.destroy();
|
||||
|
||||
Reference in New Issue
Block a user