Offer an alternating-turns two-player mode in the solo games

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

Dieses Issue hat noch niemand übernommen.

Bewertung

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

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement severity: low

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

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
3
Ø Merge
8 Std. 13 Min.
Gemergte PRs (30 T.)
2

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.