256 lines
3.1 KiB
JSON
256 lines
3.1 KiB
JSON
{
|
|
"name" : "Hiro",
|
|
"spriteSheetImage": "Hiro.png",
|
|
"spriteWidth": 64,
|
|
"spriteHeight": 64,
|
|
"columns": 7,
|
|
"rows": 7,
|
|
"durationType": "time",
|
|
"animations": [
|
|
{
|
|
"name": "IDLE",
|
|
"repeat": true,
|
|
"frames": [
|
|
{
|
|
"index": 0,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 1,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "WALK",
|
|
"repeat": true,
|
|
"frames": [
|
|
{
|
|
"index": 4,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 5,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 6,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 7,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 8,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 9,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 10,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 11,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "FALL",
|
|
"repeat": true,
|
|
"frames": [
|
|
{
|
|
"index": 44,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 45,
|
|
"duration": 100
|
|
}
|
|
|
|
]
|
|
},
|
|
{
|
|
"name": "JUMP",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 30,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 31,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 32,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 31,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 30,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "JUMP_RIGHT",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 20,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 21,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 22,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 23,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 24,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "JUMP_LEFT",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 25,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 26,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 27,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 28,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 29,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "ATTACK",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 33,
|
|
"duration": 250
|
|
},
|
|
{
|
|
"index": 34,
|
|
"duration": 400
|
|
},
|
|
{
|
|
"index": 35,
|
|
"duration": 250
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "ATTACK_RIGHT",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 33,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 34,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 35,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "ATTACK_LEFT",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 36,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 37,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 38,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "HURT",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 0,
|
|
"duration": 500
|
|
},
|
|
{
|
|
"index": 39,
|
|
"duration": 500
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "DYING",
|
|
"repeat": false,
|
|
"frames": [
|
|
{
|
|
"index": 0,
|
|
"duration": 150
|
|
},
|
|
{
|
|
"index": 40,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 41,
|
|
"duration": 100
|
|
},
|
|
{
|
|
"index": 42,
|
|
"duration": 150
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "DEAD",
|
|
"repeat": true,
|
|
"frames": [
|
|
{
|
|
"index": 43,
|
|
"duration": 150
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |