Skip to content

Commit

Permalink
docs: Update aseprite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jul 15, 2024
1 parent 2745795 commit 321d9f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions site/docs/13-plugins/15-aseprite-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ slug: /aseprite-plugin
section: Plugins
---

[This extension](https://github.com/excaliburjs/excalibur-aseprite) adds support for [Aseprite](https://www.aseprite.org/) SpriteSheets and Animations exported to json.
[This extension](https://github.com/excaliburjs/excalibur-aseprite) adds support for [Aseprite](https://www.aseprite.org/) SpriteSheets and Animations exported to json AND the `.aseprite` native format.

```
> npm install @excaliburjs/plugin-aseprite
```

1. Export using the [aseprite cli](https://www.aseprite.org/docs/cli/) or through the UI
1. Optionally export JSON using the [aseprite cli](https://www.aseprite.org/docs/cli/) or through the UI

![Export as JSON in Aseprite](https://github.com/excaliburjs/excalibur-aseprite/raw/main/export.gif)

Expand All @@ -32,7 +32,9 @@ const game = new Engine({
displayMode: DisplayMode.FitScreen,
})

const asepriteSpriteSheet = new AsepriteResource('./beetle.json')
const asepriteSpriteSheet = new AsepriteResource('./beetle.aseprite')
// or json
// const asepriteSpriteSheet = new AsepriteResource('./beetle.json')

const loader = new Loader([asepriteSpriteSheet])
game.start(loader).then(() => {
Expand Down

0 comments on commit 321d9f6

Please sign in to comment.