Neon Maze: a catch on the tick the last dot is eaten clears the level without losing a life
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 72/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
- 領域
- game-dev
研究方向
從 games/maze/scenes/GameScene.ts 開始,閱讀 tick()(約第 419-427 行),其中 checkCatches() 在 clearLevel() 之前執行。接著閱讀第 460-482 行附近的 die() 和 clearLevel(),了解階段如何被覆寫;再閱讀第 196 行附近的 update(),了解 afterDeath() 在哪裡執行。完成的標準是:在吃掉最後一個點的那一幀被抓到,會扣掉一條命,且不會推進關卡;執行 npm test,如果測試套件有對應的測試工具,就為這種情況新增一項檢查。
由索引模型根據 Issue 內容生成。
描述
Summary
In Neon Maze, if a chaser catches the runner on the same tick that the last dot is eaten, the level clears and the life is never lost.
Where
games/maze/scenes/GameScene.ts:419-427(tick:checkCatches()thenif (this.dots.size === 0) this.clearLevel())games/maze/scenes/GameScene.ts:460-462,:480-482(die()sets phase'dying',clearLevel()overwrites it with'clearing')games/maze/scenes/GameScene.ts:196-204(updateonly callsafterDeath(), which takes the life, from'dying')
Details
tick() moves the runner (eating the dot), moves the chasers, then calls checkCatches(), which can call die(). It then goes on to clearLevel() with no phase check, so the 'dying' phase is replaced by 'clearing' and afterDeath() never runs.
Impact
Rare and in the player's favour: the death effects play over a level clear, no life is lost, and the run can be credited with a clear (and the maze.clear trophy) it should not have.
Steps to reproduce
- Leave one dot next to a chaser's path.
- Eat it just as an unscared chaser reaches the runner.
- The death burst plays, then the next level starts with the same lives.
Suggested fix
In tick(), return after checkCatches() if the phase is no longer 'play', or check this.phase === 'play' before calling clearLevel().
Acceptance criteria
- A catch on the frame of the last dot costs a life and does not advance the level.
Getting started
- Relevant files:
games/maze/scenes/GameScene.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at de2b25b. Severity: low. Effort: S. audit-key: bug|games/maze/scenes/GameScene.ts|tick
- 主要語言
- TypeScript
- 星號
- 3
- 分支
- 3
- 平均合併
- 8 小時 13 分鐘
- 30 天內合併 PR
- 2
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/GH-Arcade 的其他 Issue
-
ci good first issue severity: low
難度 2/5 1-3 小時 新手友好度 68/100
TMHSDigital/GH-Arcade#111 ·
-
bug good first issue severity: low
難度 1/5 1 小時以內 新手友好度 88/100
TMHSDigital/GH-Arcade#105 ·
-
bug good first issue severity: medium
難度 2/5 1 小時以內 新手友好度 84/100
TMHSDigital/GH-Arcade#88 ·
-
accessibility enhancement severity: low
難度 4/5 3-5 天 新手友好度 40/100
TMHSDigital/GH-Arcade#114 ·
-
enhancement severity: low
難度 4/5 3-5 天 新手友好度 35/100
TMHSDigital/GH-Arcade#113 ·
查看 TMHSDigital/GH-Arcade 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 78/100
steelbrain/node-ssh#487 ·
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundaries未關閉
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難度 1/5 1 小時以內 新手友好度 62/100
lingdojo/kana-dojo#34127 · 1 則留言 · 5 個 reaction ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 68/100
osmlab/name-suggestion-index#13104 ·
維護者通常 1 天內回覆