Add a game speed assist setting

Aperta
#114 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
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vite
Ambito
frontend, game-dev

Direzione di ricerca

Start with the settings model in shared/settings.ts, then see how games/astro/scenes/GameScene.ts derives its step from the frame delta in update(). Add a gameSpeed field and a simDelta helper, wire the setting into the hub and shared/pause.ts, and check shared/scenes.ts for where the game-over screen is built. Done when the setting appears in both places, one game honours it, assisted runs show ASSIST and skip records, and npm test passes.

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

Descrizione

accessibility enhancement severity: low

Summary

Add a game speed assist setting that slows play down for players who need more reaction time.

Where

  • shared/settings.ts:85-100 (settings cover volume, mute, reduced motion, palette, bindings, rumble and touch layout, but nothing about speed)
  • games/astro/scenes/GameScene.ts:215-218 (games step their simulation from the frame delta, for example Math.min(deltaMs, 50) / 1000)

Details

Reduced motion removes effects but not speed. Because games already step from the frame delta, one scale factor applied there would slow a game evenly.

Proposal

Add gameSpeed: 1 | 0.85 | 0.7 to Settings and a shared simDelta(deltaMs) helper that applies it, then adopt it one game at a time (the delta line in update, plus this.time.timeScale for timers). Runs at reduced speed show "ASSIST" on the game-over screen and skip high scores, dailies and trophies. This fits naturally with the shared frame-delta helper proposed in the cleanups issue.

Who benefits

Players with slower reactions or motor impairments, who are currently locked out of the faster games (Runner, Astro, late Stack levels).

Acceptance criteria

  • The setting is on the hub and in the pause settings page.
  • At least one game honours it, and assisted runs are marked and kept out of records.

Getting started

  • Relevant files: shared/settings.ts, shared/pause.ts, shared/scenes.ts, any game's update()
  • How to run tests: npm test

Filed by repo-audit/full-audit at de2b25b. Severity: low. Effort: L. audit-key: enhancement|shared/settings.ts|gameSpeed

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

  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.