tmlib.js専用のSpriteSheetファイル。中身はJSON形式。
あらかじめ読み込んだASSETSのスプライト画像名をimageに指定する。
例
{
"image": "chiruno",
"frame": {
"width": 64,
"height": 64,
"count": 40
},
"animations": {
"run": {
"frames": [1, 2, 11, 12],
"next": "run",
"frequency": 6
},
"idle": {
"frames": [0, 10],
"next": "idle",
"frequency": 16
},
"idle2": {
"frames": [2, 12],
"next": "idle2",
"frequency": 16
},
"idle3": {
"frames": [3, 13],
"next": "idle3",
"frequency": 16
},
"jump": {
"frames": [7, 17, 5, 15],
"next": "fly",
"frequency": 8
},
"fly": {
"frames": [8, 18],
"next": "fly",
"frequency": 4
},
"shoot": {
"frames": [7, 17],
"next": "shooting",
"frequency": 4
},
"shooting": {
"frames": [4, 14],
"next": "shooting",
"frequency": 4
},
"landing": {
"frames": [6, 16],
"next": "landing",
"frequency": 4
}
}
}
最終更新:2014年07月16日 16:57