- Source:
- helper/spritesheet.js, line 4
Members
-
<static, constant> ZWOPTEX
-
- Source:
- helper/parser/zwoptex.js, line 13
Methods
-
<static> JSON(data)
-
A JSON sprite sheet parser.
Parameters:
Name Type Description data
object The JSON sprite sheet. - Source:
- helper/parser/json.js, line 32
Example
The JSON format is as follow:
{ "frames": { "walk1": { "frame": { "x": 0, "y": 0, "w": 72, "h": 96}, "spriteSourceSize": { "x": 0, "y": 0}, "sourceSize": { "w": 72, "h": 96 } , "rotated": false, }, "walk2": { "frame": { "x": 73, "y": 0, "w": 72, "h": 96}, "spriteSourceSize": { "x": 0, "y": 0}, "sourceSize": { "w": 72, "h": 96 } , "rotated": false, } } }
-
<static> TMX()
-
- Source:
- helper/parser/tmx.js, line 13
-
<static> ZWOPTEX2()
-
- Source:
- helper/parser/zwoptex2.js, line 16