Let players change settings from inside a game

Ouverte
#45 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
58/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript, vite

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
TypeScript
Étoiles
3
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TMHSDigital/GH-Arcade

Toutes les issues de TMHSDigital/GH-Arcade

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.