-
-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket #8 : added support for ShoeBox packed spritesheet
@see http://renderhjs.net/shoebox/ Requires to install a custom exporter (download & dbl-click) @see https://github.com/melonjs/melonJS/tree/master/media/shoebox_JSON_export.sbx
- Loading branch information
obiot
committed
May 13, 2013
1 parent
c4abfdb
commit ad1f7a7
Showing
6 changed files
with
200 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{"frames": [ | ||
{ | ||
"filename": "coin.png", | ||
"frame": {"x":258,"y":196,"w":35,"h":35}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":35}, | ||
"sourceSize": {"w":35,"h":35} | ||
}, | ||
{ | ||
"filename": "fly_dead.png", | ||
"frame": {"x":0,"y":196,"w":69,"h":32}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":69,"h":32}, | ||
"sourceSize": {"w":69,"h":32} | ||
}, | ||
{ | ||
"filename": "fly_fly.png", | ||
"frame": {"x":71,"y":196,"w":69,"h":31}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":69,"h":31}, | ||
"sourceSize": {"w":69,"h":31} | ||
}, | ||
{ | ||
"filename": "fly_normal.png", | ||
"frame": {"x":142,"y":196,"w":69,"h":32}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":69,"h":32}, | ||
"sourceSize": {"w":69,"h":32} | ||
}, | ||
{ | ||
"filename": "slime_dead.png", | ||
"frame": {"x":0,"y":230,"w":54,"h":8}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":54,"h":8}, | ||
"sourceSize": {"w":54,"h":8} | ||
}, | ||
{ | ||
"filename": "slime_normal.png", | ||
"frame": {"x":213,"y":196,"w":43,"h":28}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":43,"h":28}, | ||
"sourceSize": {"w":43,"h":28} | ||
}, | ||
{ | ||
"filename": "slime_walk.png", | ||
"frame": {"x":213,"y":226,"w":43,"h":26}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":43,"h":26}, | ||
"sourceSize": {"w":43,"h":26} | ||
}, | ||
{ | ||
"filename": "walk0001.png", | ||
"frame": {"x":77,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0002.png", | ||
"frame": {"x":77,"y":98,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0003.png", | ||
"frame": {"x":154,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0004.png", | ||
"frame": {"x":154,"y":98,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0005.png", | ||
"frame": {"x":308,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0006.png", | ||
"frame": {"x":231,"y":98,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0007.png", | ||
"frame": {"x":308,"y":98,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0008.png", | ||
"frame": {"x":0,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0009.png", | ||
"frame": {"x":0,"y":98,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0010.png", | ||
"frame": {"x":231,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{ | ||
"filename": "walk0011.png", | ||
"frame": {"x":77,"y":0,"w":75,"h":96}, | ||
"rotated": false, | ||
"trimmed": true, | ||
"spriteSourceSize": {"x":0,"y":0,"w":75,"h":96}, | ||
"sourceSize": {"w":75,"h":96} | ||
}, | ||
{"EOL":"true"} | ||
], | ||
"meta": { | ||
"app": "ShoeBox", | ||
"exporter": "melonJS", | ||
"size": {"w":512,"h":256} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::ShoeBox:shoebox.plugin.createSpriteSheet::PluginCreateSpriteSheet:{"texPowerOfTwo":true,"fileGenerate2xSize":false,"texPadding":2,"scale":1,"texMaxSize":2048,"texExtrudeSize":1,"useCssOverHack":false,"fileFormatLoop":"\\t{\\n\\t\\t\"filename\": \"@id\",\\n\\t\\t\"frame\": {\"x\":@x,\"y\":@y,\"w\":@w,\"h\":@h},\\n\\t\\t\"rotated\": false,\\n\\t\\t\"trimmed\": true,\\n\\t\\t\"spriteSourceSize\": {\"x\":@fx,\"y\":@fy,\"w\":@fw,\"h\":@fh},\\n\\t\\t\"sourceSize\": {\"w\":@fw,\"h\":@fh}\\n\\t},\\n","renderDebugLayer":false,"animationFrameIdStart":0,"texSquare":false,"fileName":"shoebox.json","texCropAlpha":false,"animationMaxFrames":100,"animationNameIds":"@name_###.png","fileFormatOuter":"{\"frames\": [\\n@loop\\t{\"EOL\":\"true\"}\\n],\\n\"meta\": {\\n\\t\"app\": \"ShoeBox\",\\n\\t\"exporter\": \"melonJS\",\\n\\t\"size\": {\"w\":@W,\"h\":@H}\\n}\\n}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters