diff --git a/Readme.md b/Readme.md index b490a29..0b9fde4 100644 --- a/Readme.md +++ b/Readme.md @@ -25,7 +25,9 @@ languages, I may add features again. # Changelog ## To do -- auto-detect device performance at first startup and adjust settings accordingly +- allow loading newer save in outdated app (for rollback) +- level editor :english only, web only, link to test level, same link needs to be shared to discord +- auto-detect device performance at first startup and adjust settings accordingly ## Done @@ -472,4 +474,5 @@ Breakout 71 can be installed and work offline in many ways: # System requirements The game should perform well even on low-end devices. It's very lean and does not take much storage space (Roughly 0.1MB). The web version is supposed to work on iOS safari, Firefox ESR and chrome, on desktop and mobile. -If the app stutters, turn on "fast mode" in the settings to render a simplified view that should be faster. You can adjust many aspects of the game there, go have a look ! \ No newline at end of file +If the app stutters, turn on "fast mode" in the settings to render a simplified view that should be faster. You can adjust many aspects of the game there, go have a look ! + diff --git a/dist/index.html b/dist/index.html index 72bc0f1..0b8ffa4 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1139,7 +1139,13 @@ async function openSettingsMenu() { }); const { fileType, appVersion: fileVersion, signedPayload, key } = JSON.parse(content); if (fileType !== "B71-save-file") throw new Error("Not a B71 save file"); - if (fileVersion > (0, _loadGameData.appVersion)) throw new Error("Please update your app first, this file is for version " + fileVersion + " or newer."); + // Actually, loading a save file to an older version is pretty useful + // if (fileVersion > appVersion) + // throw new Error( + // "Please update your app first, this file is for version " + + // fileVersion + + // " or newer.", + // ); if (key !== (0, _getLevelBackground.hashCode)("Security by obscurity, but really the game is oss so eh" + signedPayload)) throw new Error("Key does not match content."); const localStorageContent = JSON.parse(signedPayload); localStorage.clear(); diff --git a/src/game.ts b/src/game.ts index 9ad68d7..21aace1 100644 --- a/src/game.ts +++ b/src/game.ts @@ -705,12 +705,13 @@ async function openSettingsMenu() { } = JSON.parse(content); if (fileType !== "B71-save-file") throw new Error("Not a B71 save file"); - if (fileVersion > appVersion) - throw new Error( - "Please update your app first, this file is for version " + - fileVersion + - " or newer.", - ); + // Actually, loading a save file to an older version is pretty useful + // if (fileVersion > appVersion) + // throw new Error( + // "Please update your app first, this file is for version " + + // fileVersion + + // " or newer.", + // ); if ( key !==