thedivergentai/game-design-agentic-skills

bevy-tweening

Bevy ECS skill for tween and juice.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/thedivergentai/game-design-agentic-skills --skill bevy-tweening

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Bevy tweening

When to use

Load this when a value should ease over time. A tween player is yours to build in ECS from elapsed time.

ECS shape

  • Feature: bevy_curve is described as mathematical curves, not a tween player.
  • Components: a tween would be your own start, end, and elapsed fields until a player type is opened.
  • Systems: step elapsed time on Update or the fixed clock (Fixed on bevy::time, already used by character movement).
  • Animation: property animation over a clip is AnimationClip on bevy-animation. That is a clip, not a one-shot UI tween.

Coming from Godot

Godot ideaBevy idiom
Property tweenEither your elapsed component or an AnimationClip. No Tween type was opened.
SequenceChain systems or clip order. No sequence asset was opened.
Callback on finishAn AnimationEvent exists for clips. Check the animation docs for a tween callback type before writing one.

Scope

  • Check the bevy::curve module for curve sample methods before writing them.
  • No tween crate was chosen.

Expert Knowledge Delta

Target: Bevy 0.20+.

Core ECS types: Component, Resource, Query, Commands, Startup, Update, Fixed / FixedMain (bevy::time), .chain(), Plugin, DefaultPlugins, MinimalPlugins. Messages and observers are an ownership slot. See bevy-events-messaging for their APIs. Systems run in parallel unless .chain() orders the ones that conflict.

Who owns state

PieceOwnerWho may mutateSchedule
Data on one entityComponentOne system via QueryUpdate or FixedMain
One value for the whole appResourceOne systemStartup to insert, then the schedule that reads it
SpawnCommandsThe spawning systemStartup for the initial world; later schedules for runtime spawn
Order that must not race.chain()The chained systems onlySame schedule
Plugin boundaryPluginbuild registers systems and resourcesBefore the app runs

Borrow rule: two systems that both mutably query the same component must be ordered (.chain()) or split so only one writes. Unrelated systems stay parallel. That is the ECS page rule, not a guess at a system-set API.

Decision

If you needDo thisDo not
Per-entity dataComponent + QueryA Godot node script
App-wide config or clockResourceCopy the value onto every entity
Stable simulation stepFixedMain and the Fixed clockTie simulation to raw frame Update
Startup spawnCommands in StartupSpawn from a render system
Cross-system notice that is not shared stateMessage or observer slot in bevy-events-messagingA new event type invented in this file
An API outside the documented setCheck the official docs firstA made-up crate or API

Load references/ecs-ownership.md for the ownership table.

NEVER

  • Do not pin /0.20.0/ in docs URLs. WHY: links stay on latest; the 0.20 target is stated once in prose.
  • Do not mutably query the same component from two unordered systems. WHY: the schedule runs systems in parallel unless .chain() orders them.
  • Do not invent a physics, navigation, networking, or XR crate here. WHY: this skill only names documented Bevy crates and modules.
  • No Godot Tween node. WHY: Bevy code stays idiomatic ECS and uses only documented Bevy APIs.
  • No named tween crate as the chosen solution. WHY: Bevy code stays idiomatic ECS and uses only documented Bevy APIs.
  • No Godot types in Bevy code. WHY: Bevy code stays idiomatic ECS and uses only documented Bevy APIs.
  • No invented APIs or unnamed third-party crates as the chosen solver. WHY: Bevy code stays idiomatic ECS and uses only documented Bevy APIs.

Reference

docs.rs links use the unversioned latest permalink. The library pin on bevy-master stays 0.20.0.

Official Documentation

  • Migration guides - Unversioned hop index.
  • bevy crate - API reference and Cargo feature list.
  • Assets - Official asset catalog. No third-party crate was selected.
  • Examples - Example tree on the latest branch.
  • ECS - Component, systems, Query, Startup, Update, and .chain().
  • Plugins - Plugin, DefaultPlugins, MinimalPlugins, and add_plugins.
  • bevy::curve - Curve trait module reference.

Related Skills

Prerequisites

Complements

Downstream / consumers

  • None yet.

Master

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills