“自定义角色”的版本间的差异
跳到导航
跳到搜索
(建立内容为“ 自定义角色至少需要同名的一个贴图(png文件)和一个json文件,还可以添加同名的音频文件修改该角色的对话声音 文件…”的新页面) |
|||
第1行: | 第1行: | ||
+ | 自定义角色至少需要同名的一个贴图(必须是png文件)和一个json文件(两文件名称除了格式后缀应相同),还可以添加同名的音频文件修改该角色的对话声音 | ||
− | + | === 贴图 === | |
+ | 贴图中每帧的大小相同且排列整齐,建议每帧至少留出6帧左右的空间用于[[发光]]和[[轮廓]] | ||
[[文件:洛根的贴图.png|缩略图]] | [[文件:洛根的贴图.png|缩略图]] | ||
+ | |||
+ | === json文件 === | ||
+ | 洛根的json文件: | ||
+ | [[文件:洛根的json代码.png|缩略图]] | ||
+ | { | ||
+ | |||
+ | "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}, | ||
+ | |||
+ | ]}, |
2021年11月14日 (日) 11:32的版本
自定义角色至少需要同名的一个贴图(必须是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},
]},