Skip to content

Instantly share code, notes, and snippets.

@Layoric
Created October 26, 2013 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Layoric/9f466b890c0d89c28896 to your computer and use it in GitHub Desktop.
Save Layoric/9f466b890c0d89c28896 to your computer and use it in GitHub Desktop.
Example JSON Tiled map
{ "height":5,
"layers":[
{
"data":[24, 24, 11, 19, 19, 19, 19, 19, 19, 12, 24, 24, 18, 1, 1, 1, 1, 1, 1, 20, 24, 24, 18, 4, 4, 4, 1, 1, 1, 20, 24, 24, 18, 4, 4, 4, 1, 1, 1, 20, 24, 24, 10, 13, 13, 13, 13, 13, 13, 9],
"guid":"{cd2bcc1e-49c6-441e-a465-0b66d4f257ce}",
"height":5,
"name":"Tile Layer 1",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":10,
"x":0,
"y":0
},
{
"draworder":"topdown",
"guid":"{793f62fd-15bc-41b1-8834-23fe75298c35}",
"height":5,
"name":"Object Layer 1",
"objects":[
{
"gid":18,
"guid":"{3c8961ab-3ded-4557-be24-ac84fdade22d}",
"height":0,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":-43,
"y":52
},
{
"gid":18,
"guid":"{a8f26c1a-f7ef-43e2-9b95-1e362f6ed98e}",
"height":0,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":69,
"y":-33
},
{
"gid":18,
"guid":"{ecb48e6f-1b0c-4937-9e2a-98df777ca8e8}",
"height":0,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":182,
"y":-35
},
{
"gid":18,
"guid":"{2019ea05-c428-49cd-8d06-722f94d23f6e}",
"height":0,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":-41,
"y":-53
},
{
"gid":1,
"guid":"{a67aee7a-1091-46af-aa67-3d5dc554859f}",
"height":0,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":270,
"y":-20
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":10,
"x":0,
"y":0
}],
"orientation":"isometric",
"properties":
{
},
"tileheight":32,
"tilesets":[
{
"firstgid":1,
"guid":"{cd4508d0-ca6c-46c2-af21-9a7a70808587}",
"image":"isometric_grass_and_water.png",
"imageheight":384,
"imagewidth":256,
"margin":0,
"name":"isometric_grass_and_water",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tileoffset":
{
"x":0,
"y":16
},
"tileproperties":
{
"0":
{
"foo":"a"
}
},
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment