自定义角色
跳到导航
跳到搜索
自定义角色至少需要同名的一个贴图(必须是png文件)和一个json文件(两文件名称除了格式后缀应相同),还可以添加同名的音频文件修改该角色的对话声音
贴图
贴图中每帧的大小相同且排列整齐,建议每帧至少留出6帧左右的空间用于发光和轮廓
json文件
洛根的json文件:
{
"size": [32, 32],
"clips": [
{"name": "neutral","frames": [ 1, 0 ],"loop": "onBeat","fps": 0},
{"name": "happy","frames": [ 11, 12 ],"loop": "no","fps": 2},
{"name": "barely","frames": [ 4, 3 ],"loop": "onBeat","fps": 0},
{"name": "missed","frames": [ 6, 7, 8, 9, 17, 18, 17, 9, 17, 18, 17, 9 ],"loop": "no","fps": 10},
{"name": "surprised","frames": [ 23, 23, 22, 22 ],"loop": "onBeat","fps": 0},
{"name": "happySimple","frames": [ 15, 14 ],"loop": "no","fps": 2},
]},