正文
增加 29 行删除 12 行
209 行未改动全部展开2102112122132142152162172182192202212222232242252262277 行未改动23523623723823924024124246 行未改动28929029129229329429529641 行未改动338339340341342343344345346347348349204 行未改动全部展开209 行未改动全部展开<script>(function() {const LEVELS = [{ name: "Common", value: 1, color: "#7EEF6D", textColor: "white" },{ name: "Unusual", value: 2, color: "#FFE65D", textColor: "white" },{ name: "Rare", value: 4, color: "#4D52E3", textColor: "white" },{ name: "Epic", value: 8, color: "#861FDE", textColor: "white" },{ name: "Legendary", value: 16, color: "#DE1F1F", textColor: "white" },{ name: "Mythic", value: 32, color: "#1FDBDE", textColor: "white" },{ name: "Ultra", value: 64, color: "#FF2B75", textColor: "white" },{ name: "Super", value: 128, color: "#2BFFA3", textColor: "black" },{ name: "Eternal", value: 256, color: "#F1F1F1", textColor: "black" },{ name: "Unique", value: 512, color: "#666666", textColor: "white" }];const LEVEL_MAP = new Map();LEVELS.forEach(lvl => LEVEL_MAP.set(lvl.value, { ...lvl }));7 行未改动const MAX_HISTORY = 1500;let achievementUltraShown = false;let achievementSuperShown = false;const gridContainer = document.getElementById('gridContainer');const scoreDisplay = document.getElementById('scoreDisplay');const undoButton = document.getElementById('undoButton');46 行未改动uniqueReached = false;history = [];achievementUltraShown = false;achievementSuperShown = false;achievementContainer.innerHTML = '';addRandomTile();addRandomTile();updateScoreUI();41 行未改动if (mergedValue === 128 && !achievementSuperShown) {achievementSuperShown = true;showAchievementToast("合成高手:合成Super!", "#2BFFA3", "black");}if (mergedValue === 256) {showAchievementToast("永恒的光芒!", "#F1F1F1", "black");}if (mergedValue === 512) {uniqueReached = true;gameOver = true;showAchievementToast("Unique!", "#666666", "white");restartButton.classList.add('show');204 行未改动全部展开209 行未改动全部展开2102112122132142152162172182192202212222232242252262272282297 行未改动23723823924024124224324424524624746 行未改动29429529629729829930030130230330441 行未改动346347348349350351352353354355356357358359360361362363364365366204 行未改动全部展开209 行未改动全部展开<script>(function() {const LEVELS = [{ name: "Common", value: 1, color: "#7EEF6D", textColor: "white" },{ name: "Unusual", value: 2, color: "#FFE65D", textColor: "white" },{ name: "Rare", value: 4, color: "#4D52E3", textColor: "white" },{ name: "Epic", value: 8, color: "#861FDE", textColor: "white" },{ name: "Legendary", value: 16, color: "#DE1F1F", textColor: "white" },{ name: "Mythic", value: 32, color: "#1FDBDE", textColor: "white" },{ name: "Ultra", value: 64, color: "#FF2B75", textColor: "white" },{ name: "Super", value: 128, color: "#2BFFA3", textColor: "black" },{ name: "Eternal", value: 256, color: "#F1F1F1", textColor: "black" },{ name: "Omega", value: 512, color: "#F53CE4", textColor: "white" },{ name: "Hyper", value: 1024, color: "#2253B0", textColor: "white" },{ name: "Unique", value: 2048, color: "#666666", textColor: "white" }];const LEVEL_MAP = new Map();LEVELS.forEach(lvl => LEVEL_MAP.set(lvl.value, { ...lvl }));7 行未改动const MAX_HISTORY = 1500;let achievementUltraShown = false;let achievementSuperShown = false;let achievementEternalShown = false;let achievementOmegaShown = false;let achievementHyperShown = false;const gridContainer = document.getElementById('gridContainer');const scoreDisplay = document.getElementById('scoreDisplay');const undoButton = document.getElementById('undoButton');46 行未改动uniqueReached = false;history = [];achievementUltraShown = false;achievementSuperShown = false;achievementEternalShown = false;achievementOmegaShown = false;achievementHyperShown = false;achievementContainer.innerHTML = '';addRandomTile();addRandomTile();updateScoreUI();41 行未改动if (mergedValue === 128 && !achievementSuperShown) {achievementSuperShown = true;showAchievementToast("合成高手:合成Super!", "#2BFFA3", "black");}if (mergedValue === 256 && !achievementEternalShown) {achievementEternalShown = true;showAchievementToast("永恒的光芒!", "#F1F1F1", "black");}if (mergedValue === 512 && !achievementOmegaShown) {achievementOmegaShown = true;showAchievementToast("合成大师:合成Omega!", "#F53CE4", "white");}if (mergedValue === 1024 && !achievementHyperShown) {achievementHyperShown = true;showAchievementToast("人上人:合成Hyper!", "#2253B0", "white");}if (mergedValue === 2048) {uniqueReached = true;gameOver = true;showAchievementToast("Unique!", "#666666", "white");restartButton.classList.add('show');204 行未改动全部展开