Hello!
I was following a tutorial which created an atlas from a Sprite Sheet. However, when I follow the steps, I get an error. I have the problem, even when I run the complete project example provided. I will also provide the JSON file below, however, I doubt that it is actually a problem with the JSON formatting, but rather something I am doing or missing. As for what I have already tried, I have converted the format from ANSI to UTF-8 and vice-versa, have moved the JSON file to various locations, tried on different browsers and have checked that I am running the most recent version. Any help you can provide would be greatly appreciated! Thanks.
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
File:
{"frames": [
{
"filename": "penguin_die01.png",
"frame": {"x":0,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_die02.png",
"frame": {"x":72,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_die03.png",
"frame": {"x":144,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_die04.png",
"frame": {"x":216,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_hurt.png",
"frame": {"x":288,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_jump01.png",
"frame": {"x":360,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_jump02.png",
"frame": {"x":432,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
},
{
"filename": "penguin_jump03.png",
"frame": {"x":504,"y":0,"w":72,"h":64},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":72,"h":64},
"sourceSize": {"w":72,"h":64}
}],
"meta": {
"app": "https://www.codeandweb.com/texturepacker",
"version": "1.0",
"image": "penguin.png",
"format": "RGBA8888",
"size": {"w":576,"h":64},
"scale": "1",
"smartupdate": "$TexturePacker:SmartUpdate:d2c139e3b5aad160701f37ff54893078:5812e8cd6bf7c928dd5f9d43a8f768b6:6811a9a90bad8562d7be890a479a72ac$"
}