mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Update AnimationManager.js
This commit is contained in:
parent
62c03f6dad
commit
3a90ecc889
1 changed files with 3 additions and 3 deletions
|
@ -354,17 +354,17 @@ var AnimationManager = new Class({
|
|||
*
|
||||
* This was tested with Aseprite 1.2.25.
|
||||
*
|
||||
* This will export a png and json file which you can load using the Atlas Loader, i.e.:
|
||||
* This will export a png and json file which you can load using the Aseprite Loader, i.e.:
|
||||
*
|
||||
* ```javascript
|
||||
* function preload ()
|
||||
* {
|
||||
* this.load.path = 'assets/animations/aseprite/';
|
||||
* this.load.atlas('paladin', 'paladin.png', 'paladin.json');
|
||||
* this.load.aseprite('paladin', 'paladin.png', 'paladin.json');
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* Once exported, you can call this method from within a Scene with the 'atlas' key:
|
||||
* Once loaded, you can call this method from within a Scene with the 'atlas' key:
|
||||
*
|
||||
* ```javascript
|
||||
* this.anims.createFromAseprite('paladin');
|
||||
|
|
Loading…
Reference in a new issue