@combos-fun/plugin-renderer-3d-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 +5 -11
  2. package/package.json +14 -5
package/agent-skill.md CHANGED
@@ -1,13 +1,10 @@
1
1
  # `@combos-fun/plugin-renderer-3d-sprite-animation` — Agent notes
2
2
 
3
- Spritesheet animation projected onto a `PlaneGeometry` in 3D space.
4
- Animates UV offsets each frame to flip through frames from a Texture Packer
5
- JSON sheet.
3
+ Spritesheet animation projected onto a `PlaneGeometry` in 3D space. Animates UV offsets each frame to flip through frames from a Texture Packer JSON sheet.
6
4
 
7
5
  ## When to read
8
6
 
9
- Read for any 2D-styled animation in a 3D scene: power-up effects, FX
10
- sprites, animated billboards, decals.
7
+ Read for any 2D-styled animation in a 3D scene: power-up effects, FX sprites, animated billboards, decals.
11
8
 
12
9
  ## Public API
13
10
 
@@ -15,8 +12,7 @@ sprites, animated billboards, decals.
15
12
  import { SpriteAnimation3D, SpriteAnimation3DSystem, type SpriteAnimation3DParams } from '@combos-fun/plugin-renderer-3d-sprite-animation';
16
13
  ```
17
14
 
18
- `componentName = 'SpriteAnimation3D'`,
19
- `systemName = 'SpriteAnimation3DSystem'`.
15
+ `componentName = 'SpriteAnimation3D'`, `systemName = 'SpriteAnimation3DSystem'`.
20
16
 
21
17
  ### `SpriteAnimation3DParams`
22
18
 
@@ -29,13 +25,11 @@ import { SpriteAnimation3D, SpriteAnimation3DSystem, type SpriteAnimation3DParam
29
25
  | `rotationX` / `Y` / `Z` | `number` | `0` |
30
26
  | `scaleX` / `Y` | `number` | `1` (no `scaleZ` — plane is 2D) |
31
27
 
32
- The system loads the spritesheet JSON (array or hash format) and resolves
33
- the image URL **relative to the JSON path**.
28
+ The system loads the spritesheet JSON (array or hash format) and resolves the image URL **relative to the JSON path**.
34
29
 
35
30
  ## Required setup
36
31
 
37
- `Renderer3DSystem` then `SpriteAnimation3DSystem`. The JSON must reference
38
- a co-located image file.
32
+ `Renderer3DSystem` then `SpriteAnimation3DSystem`. The JSON must reference a co-located image file.
39
33
 
40
34
  ## Common pitfalls
41
35
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@combos-fun/plugin-renderer-3d-sprite-animation",
3
- "version": "0.0.7",
4
- "description": "@combos-fun/plugin-renderer-3d-sprite-animation",
3
+ "version": "0.0.9",
4
+ "description": "Spritesheet animation projected onto a PlaneGeometry in 3D space",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-3d-sprite-animation.esm.js",
7
7
  "bundle": "CombosFun.plugin.renderer.3d.sprite.animation",
@@ -27,10 +27,19 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "three": "^0.172.0",
30
- "@combos-fun/engine": "0.0.7",
31
- "@combos-fun/inspector-decorator": "0.0.7",
32
- "@combos-fun/plugin-renderer-3d": "0.0.7"
30
+ "@combos-fun/engine": "0.0.9",
31
+ "@combos-fun/plugin-renderer-3d": "0.0.9",
32
+ "@combos-fun/inspector-decorator": "0.0.9"
33
33
  },
34
+ "keywords": [
35
+ "combos-fun",
36
+ "3d",
37
+ "sprite",
38
+ "animation",
39
+ "spritesheet",
40
+ "uv",
41
+ "billboard"
42
+ ],
34
43
  "scripts": {
35
44
  "build": "node ../../scripts/build-package.mjs"
36
45
  }