leave properly
This commit is contained in:
parent
6dcab420fd
commit
b04686495b
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user