Add a game speed assist setting

Aberta
#114 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
40/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript, vite
Domínio
frontend, game-dev

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
3
Forks
3
Merge médio
8h 13min
PRs com merge (30d)
2

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/GH-Arcade

Todas as issues de TMHSDigital/GH-Arcade

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.