Add a second Neon Pinball table

Offen
#102 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
game-dev

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
3
Ø Merge
10 Std. 22 Min.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/GH-Arcade

Alle Issues in TMHSDigital/GH-Arcade

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.