Neon Crates: play pasted levels in standard box-pushing notation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- game-dev
调研方向
Read games/crates/rules.ts lines 45–69 to understand parseLevel, then trace level selection in games/crates/scenes/SelectScene.ts and progress handling in games/crates/progress.ts. Check how existing tests are organized before running npm test. Done means valid pasted levels can be played, invalid input explains why it was rejected, and tests cover board-size and crate/target checks.
由索引模型根据 Issue 内容生成。
描述
Summary
Neon Crates ships 15 levels, and its level parser already reads the standard box-pushing text notation. Letting players paste a level in that notation would give them something to play after level 15.
Where
games/crates/rules.ts:45-69(parseLevel): accepts# . $ * @ + space -, and throws on anything else or a missing or doubled robotgames/crates/levels.ts:3-8,games/crates/scenes/SelectScene.tsgames/crates/progress.ts:33-43: progress is keyed by level name
Proposal
- Add a CUSTOM entry to the select screen that takes pasted text, through a textarea overlay or a clipboard read on a user gesture.
- Parse the text with
parseLevel, and reject levels over the board size limit or with unequal crate and target counts. - Play custom levels without trophies, and keep their bests under a separate key validated like
cleanProgress. - Treat the text as outside input: cap its length, and never render it as HTML.
Who benefits
Players who finish all 15 levels. Large free collections exist in exactly this notation.
Open questions
- How should multi-level collections be handled (blank-line separated, with
;titles)? - Is clipboard read acceptable on iOS, or is a textarea needed?
Acceptance criteria
- Pasting a valid level plays it, and pasting an invalid one shows why it was rejected.
- Tests cover the size and crate/target checks.
Getting started
- Relevant files:
games/crates/rules.ts,games/crates/scenes/SelectScene.ts,games/crates/progress.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at a93de2e. Severity: low. Effort: M. audit-key: enhancement|games/crates/rules.ts|custom-levels
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 3
- 平均合并
- 10 小时 22 分钟
- 30 天内合并 PR
- 6
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/GH-Arcade 的其他 Issue
-
good first issue performance severity: low
难度 3/5 1-2 天 新手友好度 72/100
TMHSDigital/GH-Arcade#141 ·
维护者通常 1 天内回复
-
enhancement help wanted severity: medium
难度 4/5 3-5 天 新手友好度 56/100
TMHSDigital/GH-Arcade#127 ·
维护者通常 1 天内回复
-
enhancement help wanted severity: medium
难度 4/5 3-5 天 新手友好度 48/100
TMHSDigital/GH-Arcade#126 · 1 条评论 ·
维护者通常 1 天内回复
-
accessibility enhancement severity: low
难度 4/5 3-5 天 新手友好度 40/100
TMHSDigital/GH-Arcade#114 ·
维护者通常 1 天内回复
-
enhancement severity: low
难度 4/5 3-5 天 新手友好度 35/100
TMHSDigital/GH-Arcade#113 ·
维护者通常 1 天内回复
查看 TMHSDigital/GH-Arcade 的全部 Issue
相似的 Issue
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)未关闭
难度 2/5 1-3 小时 新手友好度 62/100
microsoft/playwright#44289 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 半天 新手友好度 65/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
blamechris/chroxy#9272 ·
维护者通常 1 天内回复
-
no-repo-link tool-submission
难度 1/5 1 小时以内 新手友好度 66/100
BraveOPotato/NoSignups#2458 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
drmrd/vernacular#1061 ·
维护者通常 1 天内回复