feat(achievements): spawn confetti when all achievements are obtained

This commit is contained in:
2026-01-31 20:37:02 +01:00
parent f6591b9081
commit 8d467c48b0
2 changed files with 13 additions and 0 deletions

View File

@@ -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;