phaser-asset-advisor

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Phaser 4 Asset Advisor

Phaser 4 资源顾问

Use this skill to design, implement, or optimize Phaser 4 asset pipelines.
使用此技能来设计、实现或优化Phaser 4资源管线。

Workflow

工作流程

  1. Identify the asset categories: backgrounds, sprites, animations, UI, atlases, tilemaps, audio, fonts, and generated placeholders.
  2. Choose the right load method and format for each asset type.
  3. Decide what belongs in BootScene versus PreloaderScene versus level-specific lazy loading.
  4. Prefer atlases for many sprites, spritesheets for uniform frame grids, individual images for large single-use art, and paired audio formats where browser support requires it.
  5. Keep load keys stable and document them in shared constants when the project already uses key registries.
  6. Include optimization guidance for HTTP requests, GPU texture size, mobile memory, and build output.
  1. 识别资源类别:背景图、精灵、动画、UI、图集、瓦片地图、音频、字体和生成的占位资源。
  2. 为每种资源类型选择合适的加载方法和格式。
  3. 确定哪些内容属于BootScene、PreloaderScene,以及哪些适合关卡特定的懒加载。
  4. 对于大量精灵优先使用图集,对于统一帧网格使用精灵表,大型单次使用的美术资源使用单独图片,在浏览器支持要求的情况下使用配对音频格式。
  5. 保持加载键稳定,当项目已使用键注册表时,将其记录在共享常量中。
  6. 包含针对HTTP请求、GPU纹理尺寸、移动设备内存和构建输出的优化指导。

Common Outputs

常见输出内容

  • Asset folder layout
  • this.load.*
    calls
  • Preloader progress UI
  • Atlas/spritesheet recommendations
  • Audio loading and unlock plan
  • Tilemap/Tiled workflow
  • Asset budget and optimization checklist
  • 资源文件夹布局
  • this.load.*
    调用代码
  • 预加载进度UI
  • 图集/精灵表推荐方案
  • 音频加载与解锁计划
  • 瓦片地图/Tiled工作流程
  • 资源预算与优化检查清单

Full Guidance

完整指导

For the complete asset pipeline playbook, read
references/agent-guidance.md
. It is copied from the Claude subagent definition but should be applied as a portable skill; ignore Claude-only fields such as
model
,
color
, and
tools
.
如需完整的资源管线手册,请阅读
references/agent-guidance.md
。该内容复制自Claude子代理定义,但应作为可移植技能使用;请忽略仅适用于Claude的字段,如
model
color
tools