@codexo/exojs-aseprite 0.17.0 → 0.18.0

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/README.md +11 -22
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # @codexo/exojs-aseprite
2
2
 
3
- Official ExoJS extension for loading [Aseprite](https://www.aseprite.org) JSON sprite-sheet
4
- exports into a ready-to-animate sprite, with one animation clip per Aseprite frame tag.
3
+ Official ExoJS extension for loading [Aseprite](https://www.aseprite.org) JSON sprite-sheet exports into a ready-to-animate sprite, with one animation clip per Aseprite frame tag.
5
4
 
6
5
  ## Installation
7
6
 
@@ -11,30 +10,23 @@ npm install @codexo/exojs @codexo/exojs-aseprite
11
10
 
12
11
  `@codexo/exojs` is a peer dependency. This package has no other runtime dependencies.
13
12
 
14
- > Export your sprite sheet from Aseprite as a **JSON + PNG** pair (`File → Export Sprite Sheet`,
15
- > _Output → JSON Data_). Either array or hash frame mode works; frame tags become animation clips.
13
+ > Export your sprite sheet from Aseprite as a **JSON + PNG** pair (`File → Export Sprite Sheet`, _Output → JSON Data_). Either array or hash frame mode works; frame tags become animation clips.
16
14
 
17
15
  ## What this package provides
18
16
 
19
- - `AsepriteSheet` — parsed sprite sheet; the result of
20
- `loader.load(Asset.type('asepriteSheet', url))`. Exposes
21
- the underlying `spritesheet`, a `clips` map (one `AnimatedSpriteClipDefinition` per frame tag),
22
- the `slices` and `layers` metadata maps, and `createAnimatedSprite()` for a ready-to-play
23
- `AnimatedSprite`
17
+ - `AsepriteSheet` — parsed sprite sheet; the result of `loader.load(Asset.type('asepriteSheet', url))`. Exposes the underlying `spritesheet`, a `clips` map (one `AnimatedSpriteClipDefinition` per frame tag), the `slices` and `layers` metadata maps, and `createAnimatedSprite()` for a ready-to-play `AnimatedSprite`
24
18
  - `asepriteExtension` — extension descriptor registering the Aseprite asset binding
25
19
  - `asepriteBinding` — the underlying `AssetBinding` (advanced/custom wiring)
26
20
  - `AsepriteFormatError` — typed error thrown on malformed Aseprite JSON
27
- - `AsepriteData` and related types (`AsepriteFrameData`, `AsepriteFrameTag`, `AsepriteMeta`,
28
- `AsepriteSlice`, …) plus the `isAsepriteArrayData` guard
21
+ - `AsepriteData` and related types (`AsepriteFrameData`, `AsepriteFrameTag`, `AsepriteMeta`, `AsepriteSlice`, …) plus the `isAsepriteArrayData` guard
29
22
 
30
23
  ## Usage
31
24
 
32
- Register the extension, load an Aseprite JSON export, and create an animated sprite. The extension
33
- fetches the JSON, resolves and loads the packed texture, and builds one clip per frame tag:
25
+ Register the extension, load an Aseprite JSON export, and create an animated sprite. The extension fetches the JSON, resolves and loads the packed texture, and builds one clip per frame tag:
34
26
 
35
27
  ```ts
36
28
  import { Application, Asset } from '@codexo/exojs';
37
- import { AsepriteSheet, asepriteExtension } from '@codexo/exojs-aseprite';
29
+ import { asepriteExtension } from '@codexo/exojs-aseprite';
38
30
 
39
31
  const app = new Application({ extensions: [asepriteExtension] });
40
32
 
@@ -45,23 +37,20 @@ sprite.play('run'); // 'run' is an Aseprite frame-tag name
45
37
  app.scenes.root.addChild(sprite);
46
38
  ```
47
39
 
48
- Clip frame rate is derived from each frame's Aseprite `duration` (falling back to 12 fps). Frame
49
- indices in a tag are resolved against the ordered frame array; out-of-range indices are skipped.
40
+ Clip frame rate is derived from each frame's Aseprite `duration` (falling back to 12 fps). Frame indices in a tag are resolved against the ordered frame array; out-of-range indices are skipped.
50
41
 
51
42
  ## Texture ownership
52
43
 
53
- The packed texture is loaded via the Loader and stays in the Loader cache. `AsepriteSheet.destroy()`
54
- releases the parsed sprite sheet; the Loader handles texture lifecycle and deduplication.
44
+ The packed texture is loaded via the Loader and stays in the Loader cache. `AsepriteSheet.destroy()` releases the parsed sprite sheet; the Loader handles texture lifecycle and deduplication.
55
45
 
56
46
  ## Core compatibility
57
47
 
58
- | `@codexo/exojs-aseprite` | `@codexo/exojs` |
59
- | ------------------------ | --------------- |
60
- | 0.14.x | 0.14.x |
48
+ This package follows the Core lockstep release line and declares the compatible `@codexo/exojs` minor as a peer dependency. Install matching package versions.
61
49
 
62
50
  ## Links
63
51
 
64
- - [API reference](https://exojs.dev/api/exojs-aseprite)
52
+ - [Aseprite guide](https://exoridus.github.io/ExoJS/en/guide/assets/aseprite/)
53
+ - [API reference](https://exoridus.github.io/ExoJS/en/api/)
65
54
  - [Aseprite](https://www.aseprite.org)
66
55
 
67
56
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codexo/exojs-aseprite",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Aseprite sprite sheet asset extension for ExoJS.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "LICENSE"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@codexo/exojs": "0.17.x"
29
+ "@codexo/exojs": "0.18.x"
30
30
  },
31
31
  "devDependencies": {
32
- "@codexo/exojs": "0.17.0",
32
+ "@codexo/exojs": "0.18.0",
33
33
  "@codexo/exojs-config": "0.0.0"
34
34
  },
35
35
  "license": "MIT",