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;
|
||||
|
||||
Reference in New Issue
Block a user