Add a second Neon Pinball table

Đang mở
#102 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
game-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
3
Fork
3
Merge trung bình
10 giờ 22 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/GH-Arcade

Tất cả issue của TMHSDigital/GH-Arcade

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.