背景 - ReiKohaku/Sonolus-wiki-zh_cn GitHub Wiki
背景
背景为关卡提供背景图形元素。
皮肤必须实现:缩略图、图片和背景数据。
缩略图
实现图像资源类型BackgroundThumbnail。
图片
实现图像资源类型BackgroundImage。
背景数据
实现JSON资源类型BackgroundData
{
"aspectRatio": 1.33134,
"fit": "height",
"color": "#000"
}
fit
可选。
可选值有width、height、contain和cover。