feat(games): 檔案室改為原地藝廊面板(移除第一人稱走入房間) - #11
Merged
Merged
Conversation
檔案室原本走進門會傳送到世界下方的第一人稱房間走路看文件,但: - 操作模型與主世界(第三人稱)不一致:室內 WASD 變平移、轉向只能靠滑鼠/觸控拖曳、無提示 - 小螢幕搖桿只能平移 → 只能直走或橫走,形同卡住 - 為了點一個 PDF 連結卻要傳送+走路,純摩擦 改為走近入口即原地開一個置中藝廊面板:三份文件做成展示卡(封面+標題+摘要+閱讀 PDF), 點卡在新分頁開 PDF。桌機三欄、手機單欄橫式卡;✕/點背景/Esc 皆可關;開啟即解「檔案管理員」成就。 - 移除:第一人稱相機分支、隱藏室內房間幾何、enter/exitArchive 傳送+淡入淡出、室內走動夾制 - 保留 archiveActive=false 供既有各處 `archiveActive ? …` 分支走室外路徑(避免大改) - 入口建築與小地圖地標不變;新增 i18n archiveIntro(正/簡/英) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Shield of Self-Defense (ocf.tw) <ssd@ocf.tw>
toomore
marked this pull request as ready for review
July 4, 2026 03:54
ocf-ssd
added a commit
that referenced
this pull request
Jul 4, 2026
接續 origin/shield 最新開發線,補回先前基於較舊本地 shield 而漏接的 7 個 commit: 撥草貼身形、#7 CI 快取清除、#8 夜晚美感層、#9 手機面板修正、#10/#12 光影引路、 #11 檔案室改為原地藝廊面板。 衝突僅 main.js 的 animate 迴圈 _busy 一行:#11 移除了 archFade(檔案室改藝廊、 不再第一人稱走入房間),故取 origin/shield 版並保留支線站台的 `|| stations.active` (保留 archFade.on 會 ReferenceError)。 已 headless 驗證:合併後 ?explore=1 零 JS 錯誤開場、五座支線站台仍可完整遊玩 (真實滑鼠 backup 3/3、urlhunt 6/6),origin/shield 的夜晚美感/光影引路/檔案室藝廊等新功能一併就位。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Shield of Self-Defense (ocf.tw) <ssd@ocf.tw>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題(評估結論)
檔案室原本是「走進門 → 傳送到世界下方的第一人稱房間 → 走到文件台前開 PDF」。這個轉場對「從 3 份文件挑一份打開」這種選單/藝廊任務是壞選擇:
main.js舊if (archiveActive)相機分支+只有拖曳改 yaw、鍵盤無轉向鍵)。修法:原地藝廊面板
走近入口即原地開一個置中面板,三份文件做成展示卡(封面+標題+摘要+「閱讀 PDF →」),點卡在新分頁開 PDF。不傳送、不走路、不轉向、不切相機。
met.docs)。移除 / 保留
enter/exitArchive傳送+淡入淡出轉場、室內走動夾制(main.js 淨 −63 行)。archiveActive=false供既有各處archiveActive ? …分支一律走室外路徑(避免大改 30 處);入口建築與小地圖地標不變。archiveIntro(正體/簡體/英)。驗證
Brave headless(桌機 1280×800/手機 390×800)傳送到入口觸發點:
active=false(全程未進第一人稱)、面板開啟、3 張卡、3 個連結皆target=_blank指向 PDF、met=3(成就解鎖 toast 出現)。main.js/ui.js語法通過、無 runtime error。🤖 Generated with Claude Code