Add a game speed assist setting

未关闭
#114 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
40/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript, vite
领域
frontend, game-dev

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
3
派生
3
平均合并
8 小时 13 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/GH-Arcade 的其他 Issue

查看 TMHSDigital/GH-Arcade 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。