Repository navigation
Description
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(LAYOUTSanduseLayout(index), from Neon Maze has a single layout on every level #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.tschecks 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: Neon Maze has a single layout on every level #85, Astro, Breakout, Pinball and Siege still keep their rules in the scene #86
Filed by repo-audit/full-audit at de2b25b. Severity: medium. Effort: L. audit-key: enhancement|games/pinball/table.ts|tables
Activity