Add a second Neon Pinball table

オープン
#102 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/GH-Arcade のほかの issue

TMHSDigital/GH-Arcade の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。