function drawChapterTitle() { const bgColor = game.currentLevel === 1 ? 'rgba(10, 10, 26, 0.95)' : 'rgba(20, 20, 20, 0.95)'; // 第二關更黑 ctx.fillStyle = bgColor; ctx.fillRect(0, 0, W, H); const title = game.currentLevel === 1 ? '一個月前' : '三個月前'; const alpha = Math.min(game.chapterTitleTimer / 60, 1); ctx.fillStyle = `rgba(255, 255, 255, ${alpha})`; ctx.font = `bold ${Math.min(42 * scale, 42)}px serif`; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(title, W / 2, H / 2); game.chapterTitleTimer++; // 停留 3 秒後進入遊戲 if (game.chapterTitleTimer > 180) { game.state = STATE.GAMEPLAY; game.player.w = 35 * scale; game.player.h = 35 * scale; game.player.x = W / 2; game.player.y = H - 80 * scale; game.targetX = W / 2; game.health = 100; game.gameTime = 0; game.memoryScore = 0; game.words = []; game.narrativeIndex = 0; game.chapterTitleTimer = 0; } } 回憶的飛行 - A Journey Through Memory

📖 使用說明

✅ 將此檔案另存為 game.html

✅ 雙擊開啟即可遊玩

✅ 圖片會正常顯示

✅ 手機/電腦都支援