-
Notifications
You must be signed in to change notification settings - Fork 15
Macros
loudoweb edited this page Mar 4, 2016
·
1 revision
There are different macros in spriter.macros.SpriterMacros
:
Check texture packer atlas to add .png at the end of files. Use case : You use atlas without the extension of the files (eg: Sparrow/Starling atlas).
Create a binary of your scml during compilation, it will reduce parsing time in your app.
Use case : You have a big scml and parsing takes too much time.
Then you can use spriter.definitions.ScmlObject.unserialize(path)
to parse the binary.
Create a binary of all scml in a folder during compilation to reduce parsing time in your app.
Use case : You have many scml and parsing takes too much time.
Then you can use spriter.definitions.ScmlObject.unserializePack(path)
to parse the binary