fix: overlay init
This commit is contained in:
@@ -81,16 +81,16 @@ export class MenuScene extends ReactiveScene {
|
||||
const { button, colors } = MENU_CONFIG;
|
||||
|
||||
this.startButtonBg = this.add.rectangle(
|
||||
center.x,
|
||||
center.y + MENU_CONFIG.positions.buttonY,
|
||||
-button.width/2,
|
||||
-button.height/2,
|
||||
button.width,
|
||||
button.height,
|
||||
colors.buttonBg
|
||||
).setInteractive({ useHandCursor: true });
|
||||
).setOrigin(0.5).setInteractive({ useHandCursor: true });
|
||||
|
||||
this.startButtonText = this.add.text(
|
||||
center.x,
|
||||
center.y + MENU_CONFIG.positions.buttonY,
|
||||
-button.width/2,
|
||||
-button.height/2,
|
||||
'Start Game',
|
||||
{
|
||||
fontSize: MENU_CONFIG.fontSize.button,
|
||||
|
||||
Reference in New Issue
Block a user