Skip to content

Play animations made with Spriter in Phaser engine. Load .xml, .json or special compact binary format.

License

Notifications You must be signed in to change notification settings

thomasdebruin/Spriter-Player-for-Phaser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spriter-Player-for-Phaser

2016-09-16

  • added optional parameter in Spriter.SpriterJSON and Spriter.SpriterXml of type IFileOptions. This parameter is object with some optional keys. Currently important is imageNameType of type Spriter.eImageNameType. It converts and returns name of image taken from Spriter animation file in this way (let's assume name in animation file is path/image_name.png):

NAME_ONLY (default): image_name
NAME_AND_EXTENSION: image_name.png
FULL_PATH_NO_EXTENSION: path/image_name
ORIGINAL: path/image_name.png

So you can strip path, extension or both or keep original name.



2016-07-08

  • added rest of easing functions - quartic, quintic, bezier,
  • corrected loading tag from JSON files.


2016-04-17

Code is split into Spriter Player and Test example of usage.
Newly, there are both Spriter Player and minimized version of player in Build directory.
In Build directory you can also find Typescript definitions in spriter.d.ts file.



2016-03-25

Fixed bug when creating multiple instances of SpriterGroup pointing to the same Spriter animation (instances shared some variables with each other).



2016-02-20

Added Pro features:

  • character maps
  • tags
  • variables (int and float variables are not interpolated)
  • events
  • sound events (instead of playing sound directly, the player fires event with name of sound to be played)

Most of the code is rewritten.

Currently only loading of .scml (.xml) and .scon (.json) produced by Spriter export works. Loading of minimized versions and loading of binary will be added later.



2015-10-30

Play animations made with Spriter in Phaser engine. Load .xml, .json or special compact binary format.

Supports only features in free version of Spriter.

Can load .xml/.scml and .json/.scon exported directly from Spriter or files minimized with [SpriterMinimizer] (https://github.com/SBCGames/SpriterMinimizer) as well as compact binary output created with SpriterMinimizer.

In [src/States/Test.ts] (https://github.com/SBCGames/Spriter-Player-for-Phaser/blob/master/Spriter/src/States/Test.ts) play with loading .xml, .json, .bin.

About

Play animations made with Spriter in Phaser engine. Load .xml, .json or special compact binary format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.4%
  • JavaScript 49.4%
  • Other 0.2%