145 lines
2.9 KiB
JSON
145 lines
2.9 KiB
JSON
{
|
|
"name" : "Snake",
|
|
"spriteSheetImage": "Snake.png",
|
|
"spriteWidth": 160,
|
|
"spriteHeight": 128,
|
|
"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": "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": "DEAD",
|
|
"repeat": true,
|
|
"frames": [
|
|
{
|
|
"index": 18,
|
|
"duration": 150
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|