From 321d9f6dc98a87a741efe6149043359722b60259 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Mon, 15 Jul 2024 09:03:42 -0500 Subject: [PATCH] docs: Update aseprite plugin --- site/docs/13-plugins/15-aseprite-plugin.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/site/docs/13-plugins/15-aseprite-plugin.mdx b/site/docs/13-plugins/15-aseprite-plugin.mdx index 8184ce50a..75af694ad 100644 --- a/site/docs/13-plugins/15-aseprite-plugin.mdx +++ b/site/docs/13-plugins/15-aseprite-plugin.mdx @@ -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) @@ -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(() => {