Offer an alternating-turns two-player mode in the solo games
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/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 in shared/scenes.ts at endRun, showMatchResult and GameOverData, then read buildMenu to see how menu options are passed into a game's restart data. Pick one game (Stack or Runner) and read its MenuScene and GameScene to see how a run ends. Done means that game shows a TURNS option, plays two runs back to back with a match result, and leaves high scores, dailies and trophies unchanged. Confirm the behaviour with npm test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Offer an alternating-turns two-player mode (pass the controller) in the solo games.
Where
README.md:371(roadmap: "More two-player modes")shared/scenes.ts:127-136(endRun),shared/scenes.ts:163-195(showMatchResult),shared/scenes.ts:197-206(GameOverData)
Details
Only Snake, Pong and Siege have a two-player mode. Every solo game already ends through the shared endRun with a score, and a shared two-player result screen exists, but nothing connects them.
Proposal
Add an opt-in turns: true menu mode in buildMenu. When it is set, endRun stores player 1's score and restarts the game with { ...restartData, turn: 2 } behind a "PLAYER 2 READY" banner; after turn 2 it calls showMatchResult with both scores. Turn runs record a play but skip high scores and trophies, as two-player matches already do. Start with one game (Stack or Runner) to prove it.
Who benefits
Two people sharing one device in the seven games with no two-player option (Breakout, Stack, Astro, Runner, Hop, Maze, Pinball).
Acceptance criteria
- One game offers TURNS, plays two runs back to back and shows a match result.
- Turn runs do not change high scores, dailies or trophies.
Getting started
- Relevant files:
shared/scenes.ts, one game's MenuScene and GameScene - How to run tests:
npm test
Filed by repo-audit/full-audit at de2b25b. Severity: low. Effort: L. audit-key: enhancement|shared/scenes.ts|alternating-turns
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 3
- Merge trung bình
- 8 giờ 13 phút
- Pull request đã merge (30 ngày)
- 2
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/GH-Arcade
-
ci good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
TMHSDigital/GH-Arcade#111 ·
-
bug good first issue severity: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
TMHSDigital/GH-Arcade#105 ·
-
bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/GH-Arcade#104 ·
-
bug good first issue severity: medium
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 84/100
TMHSDigital/GH-Arcade#88 ·
-
Add a game speed assist settingĐang mởaccessibility enhancement severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
TMHSDigital/GH-Arcade#114 ·
Tất cả issue của TMHSDigital/GH-Arcade
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
steelbrain/node-ssh#487 ·
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
lingdojo/kana-dojo#34127 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
osmlab/name-suggestion-index#13104 ·
Maintainer thường phản hồi trong vòng 1 ngày