Move the flame_studio debugging features to flame_devtools

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
dart, flutter
领域
game-dev

调研方向

This is an umbrella proposal; its listed features are split into independent issues #4168–#4175. For context, inspect the prior implementation at commit 50f00635b in packages/flame_studio and compare it with flame_devtools; start with one of the linked child issues. Done means the selected feature is available in flame_devtools; issue #4175 additionally needs a design decision.

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

描述

enhancement
Problem to solve

flame_studio and flame_devtools have grown into two separate debugging tools for running Flame games. They overlap on game loop controls, the component tree, debug mode and transform editing, so features end up split between them.

flame_devtools is the better home: it ships with flame, needs no change to how a game is started, and already has features flame_studio lacks, such as component snapshots, the image cache panel, overlay controls and the behavior tree viewer.

Proposal

Move what flame_studio has and flame_devtools doesn't into flame_devtools. The issues below can be worked on independently.

Small

  • #4168 Anchor picker
  • #4169 Rendering properties (visibility and opacity)
  • #4170 TextComponent text
  • #4171 Component lifecycle state

Medium

  • #4172 Number editing (degrees, drag-to-scrub, tooltips)
  • #4173 Live updates
  • #4174 Extensible component inspectors

Large

  • #4175 Viewport tools (select, move, rotate, scale), which needs a design decision first
Feature comparison
Feature flame_studio flame_devtools
Pause and resume Yes Yes
Step frame Fixed 1/60 s Custom step time, forward and backward
Component tree Live Manual refresh
Priority, position, size, scale, angle Yes Yes
Debug mode Always the subtree One component or the whole game
Anchor, visibility, opacity, text, lifecycle state Yes No
Pluggable inspectors Yes No
Select and transform in the game view Yes No
Snapshots, image cache, overlays, behavior trees No Yes
More information

The current flame_studio code is going to be replaced by a different tool, so the issues describe the behavior directly rather than linking to source files. Its last state before that change can be found at commit 50f00635b, in packages/flame_studio.

Closes: #2319

主要语言
Dart
星标
10.8k
派生
1.1k
平均合并
1 天 21 小时
30 天内合并 PR
50

环境准备

从这里开始

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

flame-engine/flame 的其他 Issue

查看 flame-engine/flame 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

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