Show lifetime stats that are already being collected

未关闭 适合新手
#50 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
game-dev

调研方向

阅读shared/achievements.ts第81行和第139行附近的内容,了解totalScore和各游戏计数器的存储方式,然后检查src/hub/trophies-panel.ts第29–34行附近的内容,了解奖杯进度的显示方式。更新奖杯面板,使平均分和终身计数器在奖杯解锁后仍然可见,或删除未显示的已存储统计数据。确认所有已存储的统计数据都已显示或删除,然后运行npm run typecheck和npm run build。

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

描述

enhancement good first issue severity: low

Summary

totalScore is added to on every play but never read, and per-game counters (rocks destroyed, coins, lines) are shown only as progress on a locked trophy and disappear once it unlocks.

Where

  • shared/achievements.ts:81, shared/achievements.ts:139
  • src/hub/trophies-panel.ts:29-34

Proposal

Show average score and the lifetime counters per game in the Trophies panel, and keep showing a counter after its trophy unlocks. Otherwise drop totalScore.

Acceptance criteria

  • Every stored stat is either displayed or removed

Getting started

  • Relevant files: shared/achievements.ts, src/hub/trophies-panel.ts
  • 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: low. Effort: S. audit-key: enhancement|shared/achievements.ts|GameStats.totalScore

主要语言
TypeScript
星标
3
派生
3
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、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 摘要。