Let players change settings from inside a game

Offen
#45 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
58/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vite

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

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.