feat(achievements): implement unlocking, saving and notification
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user