leave properly

This commit is contained in:
ntr 2019-03-05 15:45:26 +11:00
parent 6dcab420fd
commit b04686495b

View File

@ -112,7 +112,7 @@ class Combat extends Phaser.Scene {
.rectangle(LEAVE_X, LEAVE_Y, LEAVE_WIDTH, LEAVE_HEIGHT, 0x440000) .rectangle(LEAVE_X, LEAVE_Y, LEAVE_WIDTH, LEAVE_HEIGHT, 0x440000)
.setInteractive() .setInteractive()
.setOrigin(0) .setOrigin(0)
.on('pointerdown', () => this.registry.set('home', true)); .on('pointerdown', leaveGame);
this.add this.add
.text(menu.getCenter().x, menu.getCenter().y, 'Menu', TEXT.HEADER) .text(menu.getCenter().x, menu.getCenter().y, 'Menu', TEXT.HEADER)