Add Start Button ANd change Help Button Possition

This commit is contained in:
2023-10-17 19:41:18 +05:30
parent e6ede94cd2
commit ae14d20615
67 changed files with 1171 additions and 413 deletions

View File

@@ -140,7 +140,7 @@ import Layout from "../../layouts/Layout.astro";
let hideButton = this.add.text(customWidth / 2 - 65, customHeight / 1.1, "Let`s Do", {
let hideButton = this.add.text(helpButtonWidth, helpButtonHeight, "Let`s Do", {
font: '900 24px quicksand',
fill: '#05b3a4',
backgroundColor: '#7c4c23',
@@ -163,7 +163,7 @@ import Layout from "../../layouts/Layout.astro";
animatedLetter.setVisible(false);
});
hideButton.setVisible(false);
let demoButton = this.add.text(customWidth / 2 - 50, customHeight / 1.1, "Help!", {
let demoButton = this.add.text(helpButtonWidth, helpButtonHeight, "Demo", {
font: '900 24px quicksand',
fill: '#05b3a4',
backgroundColor: '#7c4c23',
@@ -281,8 +281,7 @@ import Layout from "../../layouts/Layout.astro";
this.input.on('pointerdown', function (pointer) {
isDrawing = true;
graphics.moveTo(pointer.x, pointer.y);
console.log("Start Position", pointer.x, pointer.y)
});
});
this.input.on('pointerup', function () {
isDrawing = false;