lettuce
Version:
Lettuce JS, Mini Mobile Framework for Romantic with DSL.
520 lines (505 loc) • 18.9 kB
JSON
{ "backgroundcolor":"#cc66ff",
"height":17,
"layers":[
{
"height":0,
"image":"..\/img\/background.png",
"name":"gradient_background",
"opacity":1,
"type":"imagelayer",
"visible":true,
"width":0,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 94, 95, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 72, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2147483722, 2147483721, 2147483720, 2147483719, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 72, 73, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 86, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2147483736, 2147483735, 2147483734, 2147483733, 0, 0, 0, 0, 0, 71, 72, 73, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 86, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 86, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2147483722, 2147483721, 2147483720, 2147483719, 0, 0, 0, 0, 71, 72, 73, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2147483736, 2147483735, 2147483734, 2147483733, 0, 0, 0, 0, 85, 86, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 2147483722, 2147483721, 2147483720, 2147483719, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 11, 12, 0, 0, 0, 0, 0, 0, 0, 2147483736, 2147483735, 2147483734, 2147483733, 0, 83, 84, 0, 0, 0, 0, 0, 9, 10, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 98, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 42, 97, 98, 0, 0, 0, 0, 0, 23, 24, 45, 46, 0, 0, 0, 0, 0, 31, 32, 31, 32, 41, 111, 112, 0, 39, 40, 0, 0, 0, 0, 0, 0, 11, 12, 0, 0, 37, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 56, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 46, 45, 46, 55, 125, 126, 0, 53, 54, 0, 0, 0, 0, 0, 0, 25, 26, 0, 0, 25, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 69, 70, 125, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 126, 0, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":17,
"name":"back layer",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":50,
"x":0,
"y":0
},
{
"color":"#55ff00",
"draworder":"topdown",
"height":0,
"name":"player",
"objects":[
{
"height":88,
"name":"mainPlayer",
"properties":
{
"frameheight":"98",
"framewidth":"72"
},
"rotation":0,
"type":"",
"visible":true,
"width":35,
"x":105,
"y":438
},
{
"gid":19,
"height":0,
"name":"me.Entity",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":910,
"y":595
},
{
"gid":20,
"height":0,
"name":"me.Entity",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":945,
"y":595
},
{
"gid":20,
"height":0,
"name":"me.Entity",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":805,
"y":595
},
{
"gid":19,
"height":0,
"name":"me.Entity",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":770,
"y":595
},
{
"height":210,
"name":"me.LevelEntity",
"properties":
{
"duration":"150",
"fade":"#fff",
"to":"map2"
},
"rotation":0,
"type":"",
"visible":true,
"width":35,
"x":1715,
"y":245
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":0,
"x":0,
"y":0
},
{
"color":"#ff0000",
"draworder":"topdown",
"height":0,
"name":"slimes",
"objects":[
{
"height":35,
"name":"SlimeEntity",
"properties":
{
"frameheight":"35",
"framewidth":"55"
},
"rotation":0,
"type":"",
"visible":true,
"width":420,
"x":1295,
"y":420
},
{
"height":35,
"name":"SlimeEntity",
"properties":
{
"frameheight":"35",
"framewidth":"55"
},
"rotation":0,
"type":"",
"visible":true,
"width":210,
"x":140,
"y":140
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":0,
"x":0,
"y":0
},
{
"color":"#ffff00",
"draworder":"topdown",
"height":0,
"name":"coins",
"objects":[
{
"height":35,
"name":"CoinEntity",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":35,
"x":700,
"y":350
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":0,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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25, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 29, 30, 29, 30, 11, 12, 11, 12, 11, 12, 11, 12, 0, 5, 11, 12, 5, 6, 11, 12, 11, 12, 11, 12, 11, 12, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 43, 44, 43, 44, 25, 26, 25, 26, 25, 26, 25, 26, 0, 0, 25, 26, 0, 0, 25, 26, 25, 26, 25, 26, 25, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25, 26, 25],
"height":17,
"name":"front layer",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":50,
"x":0,
"y":0
},
{
"color":"#ff0000",
"draworder":"topdown",
"height":0,
"name":"flies",
"objects":[
{
"height":35,
"name":"FlyEntity",
"properties":
{
"animationspeed":"200",
"gravity":"0",
"frameheight":"35",
"framewidth":"70",
"velX":"2"
},
"rotation":0,
"type":"",
"visible":true,
"width":595,
"x":945,
"y":140
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":0,
"x":0,
"y":0
},
{
"color":"#ff0000",
"draworder":"topdown",
"height":0,
"name":"collision",
"objects":[
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":210,
"x":140,
"y":175
},
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":350,
"x":0,
"y":525
},
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":70,
"x":280,
"y":455
},
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":280,
"x":490,
"y":525
},
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":70,
"x":840,
"y":525
},
{
"height":70,
"name":"",
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":245,
"x":980,
"y":525
},
{
"height":0,
"name":"",
"polygon":[
{
"x":0,
"y":0
},
{
"x":0,
"y":-70
},
{
"x":70,
"y":-140
},
{
"x":525,
"y":-140
},
{
"x":525,
"y":0
}],
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":1225,
"y":595
},
{
"height":0,
"name":"",
"polyline":[
{
"x":0,
"y":0
},
{
"x":70,
"y":0
}],
"properties":
{
"platform":"true"
},
"rotation":0,
"type":"platform",
"visible":true,
"width":0,
"x":560,
"y":455
},
{
"height":0,
"name":"",
"polyline":[
{
"x":0,
"y":0
},
{
"x":70,
"y":0
}],
"properties":
{
"platform":"true"
},
"rotation":0,
"type":"platform",
"visible":true,
"width":0,
"x":700,
"y":385
},
{
"height":0,
"name":"",
"polyline":[
{
"x":0,
"y":0
},
{
"x":0,
"y":490
}],
"properties":
{
},
"rotation":0,
"type":"",
"visible":true,
"width":0,
"x":1,
"y":35
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":0,
"x":0,
"y":0
}],
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":35,
"tilesets":[
{
"firstgid":1,
"image":"..\/img\/tileset.png",
"imageheight":512,
"imagewidth":512,
"margin":0,
"name":"tileset",
"properties":
{
},
"spacing":0,
"tileheight":35,
"tiles":
{
"28":
{
"animation":[
{
"duration":400,
"tileid":28
},
{
"duration":400,
"tileid":29
}]
},
"29":
{
"animation":[
{
"duration":400,
"tileid":29
},
{
"duration":400,
"tileid":28
}]
},
"42":
{
"animation":[
{
"duration":400,
"tileid":42
},
{
"duration":400,
"tileid":43
}]
},
"43":
{
"animation":[
{
"duration":400,
"tileid":43
},
{
"duration":400,
"tileid":42
}]
}
},
"tilewidth":35
}],
"tilewidth":35,
"version":1,
"width":50
}