Add a second Neon Pinball table

未关闭
#102 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
game-dev

调研方向

Start with games/pinball/table.ts, where the table data is exported as module-level constants, and with games/maze/maze.ts (LAYOUTS and useLayout) as the pattern to copy. Group the exports into a Table object and export TABLES, then have games/pinball/scenes/GameScene.ts read the active table. Extend games/pinball/table.test.ts to check every table, and run npm test. Done means the menu offers at least two tables, the tests pass, and the README roadmap is updated. The collision code overlaps with #86, so check with that work first.

由索引模型根据 Issue 内容生成。

描述

enhancement severity: medium

Summary

Add a second Neon Pinball table, the way Neon Maze just gained a second layout.

Where

  • README.md:373 (roadmap: "More pinball tables")
  • games/pinball/table.ts:35-86 (one set of module-level exports: WALLS, SLINGS, FLIPPER_PIVOTS, BUMPERS, POSTS, LANES, TARGETS, STANDUPS)
  • games/maze/maze.ts:62-77 (LAYOUTS and useLayout(index), from #85)

Details

Pinball is the one game whose content never changes between runs. Maze solved the same problem with a LAYOUTS list.

Proposal

Group the exports into a Table object, export TABLES: Table[], and have the scene take the active table from its init data or a menu mode (for example CLASSIC and a new name). Extend the existing table invariant tests to every table. Keeping one high score and letting the menu choose is simplest; per-table scores are an open question. The collision code in the scene is part of #86, so coordinate with it.

Who benefits

Pinball players looking for variety without new mechanics.

Acceptance criteria

  • The menu offers at least two tables.
  • games/pinball/table.test.ts checks invariants for every table.
  • README roadmap updated.

Getting started

  • Relevant files: games/pinball/table.ts, games/pinball/table.test.ts, games/pinball/scenes/GameScene.ts, games/maze/maze.ts (pattern)
  • How to run tests: npm test
  • Related: #85, #86

Filed by repo-audit/full-audit at de2b25b. Severity: medium. Effort: L. audit-key: enhancement|games/pinball/table.ts|tables

主要语言
TypeScript
星标
3
派生
3
平均合并
10 小时 22 分钟
30 天内合并 PR
6

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/GH-Arcade 的其他 Issue

查看 TMHSDigital/GH-Arcade 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。