{"action":"created","issue":{"url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/41","labels_url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/41/comments","events_url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/41/events","html_url":"https://github.com/twolfson/spritesheet-templates/pull/41","id":80268175,"number":41,"title":"Added support for the JSON format used by PIXI.js and TexturePacker","user":{"login":"limikael","id":902911,"avatar_url":"https://avatars.githubusercontent.com/u/902911?v=3","gravatar_id":"","url":"https://api.github.com/users/limikael","html_url":"https://github.com/limikael","followers_url":"https://api.github.com/users/limikael/followers","following_url":"https://api.github.com/users/limikael/following{/other_user}","gists_url":"https://api.github.com/users/limikael/gists{/gist_id}","starred_url":"https://api.github.com/users/limikael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limikael/subscriptions","organizations_url":"https://api.github.com/users/limikael/orgs","repos_url":"https://api.github.com/users/limikael/repos","events_url":"https://api.github.com/users/limikael/events{/privacy}","received_events_url":"https://api.github.com/users/limikael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-24T20:53:02Z","updated_at":"2015-05-24T22:31:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/twolfson/spritesheet-templates/pulls/41","html_url":"https://github.com/twolfson/spritesheet-templates/pull/41","diff_url":"https://github.com/twolfson/spritesheet-templates/pull/41.diff","patch_url":"https://github.com/twolfson/spritesheet-templates/pull/41.patch"},"body":"I added support for a JSON format commonly used for spritesheets in games. I don't know where it comes from originally, but it is at least used by [TexturePacker](https://www.codeandweb.com/texturepacker), [Flash](https://helpx.adobe.com/flash/using/create-sprite-sheet.html) and [PIXI.js](http://www.pixijs.com/).\r\n\r\nI have tested a generated spritesheet and it worked to load into PIXI.js. I haven't created a test for unit testing, and in fact it seems like I did something to break it because I use `require('path')`. I think that's why.\r\n\r\nSo maybe not ready to be merged as it is, but a start!\r\n\r\nAny clue why the `require('path')` breaks the tests?"},"comment":{"url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/comments/105072140","html_url":"https://github.com/twolfson/spritesheet-templates/pull/41#issuecomment-105072140","issue_url":"https://api.github.com/repos/twolfson/spritesheet-templates/issues/41","id":105072140,"user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T22:31:38Z","updated_at":"2015-05-24T22:31:38Z","body":"One more question: From the TexturePacker documentation, I see `.tpsheet` as the typical extension for TexturePacker's JSON data. Is there a common file extension used by TexturePacker, Flash, and pixi.js?\r\n\r\nhttps://www.codeandweb.com/texturepacker/documentation#first-sheet\r\n\r\nAlso, notes for self. Here are some snippets from where pixi.js interacts with our TexturePacker format:\r\n\r\nhttp://www.goodboydigital.com/pixijs/docs/files/src_pixi_loaders_SpriteSheetLoader.js.html#l5\r\n\r\nhttp://www.goodboydigital.com/pixijs/docs/files/src_pixi_loaders_JsonLoader.js.html#l5"}}