209 lines
4.2 KiB
JSON
209 lines
4.2 KiB
JSON
|
{
|
||
|
"name" : "Snake",
|
||
|
"spriteSheetImage": "Snake.png",
|
||
|
"spriteWidth": 32,
|
||
|
"spriteHeight": 32,
|
||
|
"columns": 5,
|
||
|
"rows": 4,
|
||
|
"durationType": "time",
|
||
|
"animations": [
|
||
|
{
|
||
|
"name": "IDLE",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 1,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 2,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 3,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 3,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 3,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 2,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 1,
|
||
|
"duration": 150
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "walk",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 1,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 2,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 3,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 4,
|
||
|
"duration": 100
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "ATTACK",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 5,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 6,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 7,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 8,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 9,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 10,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 11,
|
||
|
"duration": 150
|
||
|
}
|
||
|
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "DYING",
|
||
|
"repeat": false,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 12,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 13,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 14,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 15,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 16,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 17,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 18,
|
||
|
"duration": 150
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "HURT",
|
||
|
"repeat": false,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 0,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 12,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 13,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 14,
|
||
|
"duration": 100
|
||
|
},
|
||
|
{
|
||
|
"index": 15,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 16,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 17,
|
||
|
"duration": 150
|
||
|
},
|
||
|
{
|
||
|
"index": 18,
|
||
|
"duration": 150
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "DEAD",
|
||
|
"repeat": true,
|
||
|
"frames": [
|
||
|
{
|
||
|
"index": 18,
|
||
|
"duration": 150
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|