Let players change settings from inside a game

Aperta
#45 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vite

Direzione di ricerca

Read shared/pause.ts and shared/chrome.ts to trace the pause menu and toolbar, then inspect src/hub/settings-panel.ts and index.html for the existing settings controls and restart behavior. Run npm run dev to try the game with keyboard, gamepad, and touch. Done means players can change volume and mute while paused, and change reduced motion and palette without returning to the hub; verify with npm run typecheck and npm run build.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted severity: high

Summary

Volume, reduced motion and palette can only be changed on the hub. A player who finds a game too loud or too flashy has to leave, lose the run, change the setting and come back. Touch players have no mute control at all.

Where

  • shared/pause.ts:55-60 (pause menu: RESUME, RESTART, MAIN MENU, ARCADE)
  • shared/pause.ts:76-79 (mute is keyboard or gamepad only)
  • shared/chrome.ts:9-50 (toolbar adds Pause and Fullscreen only)
  • index.html:96 ("apply the next time you start a game")

Proposal

Add a Settings entry to the pause menu, or a settings button in the game toolbar that reuses the hub panel markup. Volume and mute can apply live, since the sound module reads settings on every call. Reduced motion and palette can be labelled "applies on restart", or the page can reload on change.

Who benefits

Every player, most of all touch players and anyone sensitive to flashing or sound.

Open questions

Phaser overlay or DOM dialog. A DOM dialog lets the hub panel be reused.

Acceptance criteria

  • Volume and mute can be changed while paused, by keyboard, gamepad and touch
  • Reduced motion and palette can be changed without returning to the hub

Getting started

  • Relevant files: shared/pause.ts, shared/chrome.ts, src/hub/settings-panel.ts, index.html
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: high. Effort: M. audit-key: enhancement|shared/pause.ts|PauseController.menu

Lingua principale
TypeScript
Stelle
3
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TMHSDigital/GH-Arcade

Tutte le issue di TMHSDigital/GH-Arcade

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.