140 lines
3.1 KiB
JSON
140 lines
3.1 KiB
JSON
|
{
|
||
|
"name": "cars",
|
||
|
"spriteSheetImage": "cars.png",
|
||
|
"spriteWidth": 256,
|
||
|
"spriteHeight": 256,
|
||
|
"leftBuffer": 0,
|
||
|
"rightBuffer": 0,
|
||
|
"topBuffer": 0,
|
||
|
"bottomBuffer": 0,
|
||
|
"columns": 3,
|
||
|
"rows": 4,
|
||
|
"animations": [
|
||
|
{
|
||
|
"name": "driving",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 1,
|
||
|
"duration": 10
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "firing",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 2,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 3,
|
||
|
"duration": 10
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "damage",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
}, {
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 6
|
||
|
}, {
|
||
|
"index": 5,
|
||
|
"duration": 6
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "dying",
|
||
|
"repeat": false,
|
||
|
"next": "dead",
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 6,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 7,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 8,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 9,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 10,
|
||
|
"duration": 10
|
||
|
},
|
||
|
{
|
||
|
"index": 11,
|
||
|
"duration": 10
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "dead",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 11,
|
||
|
"duration": 20
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|