feat(achievements): spawn confetti when all achievements are obtained
This commit is contained in:
@@ -88,6 +88,12 @@ export const useAchievementsScreen = defineStore("achievementsScreen", {
|
||||
this.intro.itemOffsets[i] = -ACHIEVEMENTS_LINE_HEIGHT;
|
||||
}
|
||||
|
||||
const achievements = useAchievementsStore();
|
||||
if (achievements.allObtained) {
|
||||
const confetti = useConfetti();
|
||||
confetti.spawn();
|
||||
}
|
||||
|
||||
const tl = gsap.timeline({
|
||||
onComplete: () => {
|
||||
this.isIntro = false;
|
||||
|
||||
Reference in New Issue
Block a user