refactor(nds): normalize local storage keys
This commit is contained in:
@@ -64,7 +64,7 @@ let targetX = 31;
|
||||
let targetY = 31;
|
||||
let horizontalFirst = false;
|
||||
|
||||
const highScore = useLocalStorage("taptap_high_score", 0);
|
||||
const highScore = useLocalStorage("nds-taptap-high-score", 0);
|
||||
let score = 0;
|
||||
let isNewBest = false;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const { onRender } = useScreen();
|
||||
const { assets: atlas } = useAssets();
|
||||
const assets = atlas.images.settings.bottomScreen;
|
||||
|
||||
const highScore = useLocalStorage("snake_high_score", 0);
|
||||
const highScore = useLocalStorage("nds-snake-high-score", 0);
|
||||
|
||||
const BOARD_SLIDE_OFFSET = 96;
|
||||
const BOARD_SLIDE_DURATION = 0.25;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
|
||||
const STORAGE_ID = "achievements";
|
||||
const STORAGE_ID = "nds-achievements";
|
||||
|
||||
export const ACHIEVEMENTS = [
|
||||
{ id: "boot", secret: false },
|
||||
|
||||
@@ -16,7 +16,7 @@ export const APP_COLORS = [
|
||||
["#000092", "#8a00d3", "#d300eb", "#fb0092"],
|
||||
];
|
||||
|
||||
const STORAGE_ID = "app_settings";
|
||||
const STORAGE_ID = "nds-settings";
|
||||
|
||||
const settingsSchema = z.object({
|
||||
color: z.object({
|
||||
|
||||
Reference in New Issue
Block a user