Offer an alternating-turns two-player mode in the solo games
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- game-dev
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 3
- Fork
- 3
- Merge medio
- 8h 13m
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/GH-Arcade
-
ci good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
TMHSDigital/GH-Arcade#111 ·
-
bug good first issue severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
TMHSDigital/GH-Arcade#105 ·
-
bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
TMHSDigital/GH-Arcade#104 ·
-
bug good first issue severity: medium
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 84/100
TMHSDigital/GH-Arcade#88 ·
-
accessibility enhancement severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
TMHSDigital/GH-Arcade#114 ·
Tutte le issue di TMHSDigital/GH-Arcade
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
steelbrain/node-ssh#487 ·
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
lingdojo/kana-dojo#34127 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
osmlab/name-suggestion-index#13104 ·
I maintainer di solito rispondono entro 1 giorno