feat(nds): add audio in all menus
This commit is contained in:
@@ -32,6 +32,15 @@ export const useIntroStore = defineStore("intro", {
|
||||
this.isIntro = false;
|
||||
},
|
||||
})
|
||||
.call(
|
||||
() => {
|
||||
const now = new Date();
|
||||
const isBirthday = now.getMonth() === 3 && now.getDate() === 25;
|
||||
(isBirthday ? assets.audio.birthdayStartup : assets.audio.startUp).play();
|
||||
},
|
||||
undefined,
|
||||
delay,
|
||||
)
|
||||
.to(
|
||||
this.intro,
|
||||
{
|
||||
@@ -59,6 +68,9 @@ export const useIntroStore = defineStore("intro", {
|
||||
animateOutro() {
|
||||
this.isOutro = true;
|
||||
|
||||
const { assets } = useAssets();
|
||||
assets.audio.tinyClick.play(0.8);
|
||||
|
||||
gsap
|
||||
.timeline()
|
||||
.to(this.outro, {
|
||||
|
||||
Reference in New Issue
Block a user