@combos-fun/plugin-renderer-sprite-animation 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/agent-skill.md +4 -9
  2. package/package.json +12 -7
package/agent-skill.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # `@combos-fun/plugin-renderer-sprite-animation` — Agent notes
2
2
 
3
- Frame-based sprite animation for the 2D pipeline. Plays an ordered set of
4
- frames from a Texture Packer atlas as a flipbook animation.
3
+ Frame-based sprite animation for the 2D pipeline. Plays an ordered set of frames from a Texture Packer atlas as a flipbook animation.
5
4
 
6
5
  ## When to read
7
6
 
8
- Read for any frame-by-frame animation: character idle / run / attack
9
- loops, FX, particle bursts.
7
+ Read for any frame-by-frame animation: character idle / run / attack loops, FX, particle bursts.
10
8
 
11
9
  ## Public API
12
10
 
@@ -25,12 +23,9 @@ import { SpriteAnimation, SpriteAnimationSystem, type SpriteAnimationParams } fr
25
23
  | `speed` | `number?` | `100` | Milliseconds per frame |
26
24
  | `forwards` | `boolean?` | `true` | Direction |
27
25
 
28
- Methods: `play(times?)`, `stop()`, `gotoAndPlay(frame)`, `gotoAndStop(frame)`.
29
- Read-only getters: `currentFrame`, `totalFrames`. Events:
30
- `'complete'`, `'loop'`, `'frameChange'`.
26
+ Methods: `play(times?)`, `stop()`, `gotoAndPlay(frame)`, `gotoAndStop(frame)`. Read-only getters: `currentFrame`, `totalFrames`. Events: `'complete'`, `'loop'`, `'frameChange'`.
31
27
 
32
- Side effect: importing this package registers
33
- `SPRITE_ANIMATION` resource handlers on the engine `resource` singleton.
28
+ Side effect: importing this package registers `SPRITE_ANIMATION` resource handlers on the engine `resource` singleton.
34
29
 
35
30
  ## Required setup
36
31
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@combos-fun/plugin-renderer-sprite-animation",
3
- "version": "0.0.7",
4
- "description": "@combos-fun/plugin-renderer-sprite-animation",
3
+ "version": "0.0.9",
4
+ "description": "Frame-based sprite animation",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-sprite-animation.esm.js",
7
7
  "bundle": "CombosFun.plugin.renderer.spriteAnimation",
@@ -27,15 +27,20 @@
27
27
  "types": "dist/plugin-renderer-sprite-animation.d.ts",
28
28
  "keywords": [
29
29
  "combos-fun",
30
- "game"
30
+ "sprite",
31
+ "animation",
32
+ "flipbook",
33
+ "atlas",
34
+ "frame",
35
+ "2d"
31
36
  ],
32
37
  "author": "sun668 <q947692259@gmail.com>",
33
38
  "dependencies": {
34
39
  "pixi.js": "^8.18.1",
35
- "@combos-fun/engine": "0.0.7",
36
- "@combos-fun/plugin-renderer": "0.0.7",
37
- "@combos-fun/renderer-adapter": "0.0.7",
38
- "@combos-fun/inspector-decorator": "0.0.7"
40
+ "@combos-fun/plugin-renderer": "0.0.9",
41
+ "@combos-fun/renderer-adapter": "0.0.9",
42
+ "@combos-fun/engine": "0.0.9",
43
+ "@combos-fun/inspector-decorator": "0.0.9"
39
44
  },
40
45
  "scripts": {
41
46
  "build": "node ../../scripts/build-package.mjs"