feat(achievements): implement unlocking, saving and notification

This commit is contained in:
2026-01-18 22:50:35 +01:00
parent ca9d0a2b55
commit 41eea74cc0
13 changed files with 269 additions and 2 deletions

View File

@@ -41,6 +41,22 @@ export const useAppStore = defineStore("app", {
navigateTo(screen: AppScreen) {
this.screen = screen;
const achievements = useAchievementsStore();
switch (screen) {
case "projects":
achievements.unlock("projects_visit");
break;
case "gallery":
achievements.unlock("gallery_visit");
break;
case "contact":
achievements.unlock("contact_visit");
break;
}
},
setCamera(camera: THREE.Camera) {