Skip to content
Snippets Groups Projects
Commit fe57929d authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #fe improve glue scenes layout

parent 8f66e018
No related branches found
No related tags found
No related merge requests found
...@@ -26,15 +26,20 @@ export default class PauseScene extends Phaser.Scene { ...@@ -26,15 +26,20 @@ export default class PauseScene extends Phaser.Scene {
} }
drawTitle() { drawTitle() {
const text = "PAUSE"; const text = "PAUSED";
const title = this.add.text(0, 0, text, { const title = this.add.text(0, 0, text, {
font: "bold 64px Courier", fontFamily: "Courier",
color: "#ffffff", fontSize: "64px",
fontStyle: "bold",
color: "white",
stroke: "black",
strokeThickness: 4,
testString: text,
}); });
title.setOrigin(0.5, 0.5); title.setOrigin(0.5, 1);
title.setPosition( title.setPosition(
this.cameras.main.width * 0.5, this.cameras.main.width * 0.5,
this.cameras.main.height * 0.4, this.cameras.main.height * 0.475,
); );
} }
...@@ -43,13 +48,18 @@ export default class PauseScene extends Phaser.Scene { ...@@ -43,13 +48,18 @@ export default class PauseScene extends Phaser.Scene {
? " TAKE A BREATH\nESC key to resume" ? " TAKE A BREATH\nESC key to resume"
: "TAKE A BREATH\ntap to resume"; : "TAKE A BREATH\ntap to resume";
const title = this.add.text(0, 0, text, { const title = this.add.text(0, 0, text, {
font: "bold 24px Courier", fontFamily: "Courier",
color: "#ffffff", fontSize: "32px",
fontStyle: "bold",
color: "white",
stroke: "black",
strokeThickness: 4,
testString: text,
}); });
title.setOrigin(0.5, 0.5); title.setOrigin(0.5, 0);
title.setPosition( title.setPosition(
this.cameras.main.width * 0.5, this.cameras.main.width * 0.5,
this.cameras.main.height * 0.6, this.cameras.main.height * 0.525,
); );
} }
......
...@@ -15,13 +15,18 @@ export default class WelcomeScene extends Phaser.Scene { ...@@ -15,13 +15,18 @@ export default class WelcomeScene extends Phaser.Scene {
drawTitle() { drawTitle() {
const text = "ÖTZI\nGAME"; const text = "ÖTZI\nGAME";
const title = this.add.text(0, 0, text, { const title = this.add.text(0, 0, text, {
font: "bold 64px Courier", fontFamily: "Courier",
color: "#ffffff", fontSize: "64px",
fontStyle: "bold",
color: "white",
stroke: "black",
strokeThickness: 4,
testString: text,
}); });
title.setOrigin(0.5, 0.5); title.setOrigin(0.5, 1);
title.setPosition( title.setPosition(
this.cameras.main.width * 0.5, this.cameras.main.width * 0.5,
this.cameras.main.height * 0.4, this.cameras.main.height * 0.475,
); );
} }
...@@ -30,13 +35,18 @@ export default class WelcomeScene extends Phaser.Scene { ...@@ -30,13 +35,18 @@ export default class WelcomeScene extends Phaser.Scene {
? "any key to begin\nESC key to pause\n TYPE ALL WORDS" ? "any key to begin\nESC key to pause\n TYPE ALL WORDS"
: " tap to begin\n tap to pause\nTYPE ALL WORDS"; : " tap to begin\n tap to pause\nTYPE ALL WORDS";
const cta = this.add.text(0, 0, text, { const cta = this.add.text(0, 0, text, {
font: "bold 32px Courier", fontFamily: "Courier",
color: "#ffffff", fontSize: "32px",
fontStyle: "bold",
color: "white",
stroke: "black",
strokeThickness: 4,
testString: text,
}); });
cta.setOrigin(0.5, 0.5); cta.setOrigin(0.5, 0);
cta.setPosition( cta.setPosition(
this.cameras.main.width * 0.5, this.cameras.main.width * 0.5,
this.cameras.main.height * 0.7, this.cameras.main.height * 0.525,
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment