change logic from start button demo visibility

This commit is contained in:
2023-11-08 19:18:48 +05:30
parent 43b8725c92
commit f6d46a8abd
62 changed files with 312 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ import Layout from "../../layouts/Layout.astro";
textY = isMobile ? customHeight / 5 : customHeight / 2.4;
const firstTextLayer = this.add.text(textX, textY, '1. Slant',{ font: '700 40px quicksand', fill: '#05b3a4'});
const audioOneAudio = this.sound.add('audioOne');
audioOneAudio.play();
// audioOneAudio.play();
firstLayer.setDepth(1);
firstLayer.setAlpha(0.5);
firstLayer.setInteractive({ draggable: true });
@@ -316,6 +316,11 @@ import Layout from "../../layouts/Layout.astro";
startButton.setInteractive().on('pointerdown', () => {
audioOneAudio.play();
firstTextLayer.setVisible(true);
animatedLetter.setVisible(false); firstScreen.setVisible(false);
graphics.setVisible(true);
hideButton.setVisible(false);
demoButton.setVisible(true);
startButton.setVisible(false);
})
}