- 两首 flac 母带移入 masters/(gitignore,不入库),转 Opus 128k VBR:3.35 + 3.16 MB - xilian 三张真 PNG RGBA → 无损 WebP(3.39→1.80、5.01→2.83、3.38→1.76 MB) - kv37_xilian.png → 无损 WebP 5.13→2.75 MB - kv37 五张图本来就是 WebP(扩展名误写成 .png),本次只改名并把 atlas 页名改为 .webp - 删除死文件 dist/jsconfig.json - 新增 tools/rawdiff.mjs(区分可见差异与仅透明下差异)、tools/atlas-pages.mjs 验证:check-paths 11/11;0 个非 favicon 的 404;无损 WebP 可见像素 0 差异; libwebp 会改写完全透明像素下的 RGB(xilian 三图 32-49% 像素),渲染级对拍 与 PNG 版相差 0.052/255、热力图全空,确认未因 Linear 过滤渗色。
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
// 昔涟立绘 —— 官方昔涟动态立绘
|
|
// 这份预设自带全部资源,路径由 import.meta.url 从本文件位置推导,
|
|
// 因此整个目录可以整体搬走或改名,而不用改这里的任何一行。
|
|
|
|
const base = new URL("./", import.meta.url);
|
|
const asset = (path) => new URL(path, base).href;
|
|
|
|
export default {
|
|
id: "xilian", // 与 project.json 中 combo 选项的 value 一致,勿改
|
|
name: "昔涟立绘",
|
|
game: "崩坏:星穹铁道",
|
|
|
|
backgroundImage: asset("./images/ava.jpg"),
|
|
|
|
spineConfig: {
|
|
jsonUrl: asset("./effects/xilian.json"),
|
|
atlasUrl: asset("./images/xilian.atlas"),
|
|
animation: "idle",
|
|
viewport: {
|
|
padLeft: "-25%",
|
|
padRight: "-28%",
|
|
padTop: "-30%",
|
|
padBottom: "-23%",
|
|
},
|
|
},
|
|
|
|
audioOptions: {
|
|
source: asset("./audios/再度和你.ogg"),
|
|
volume: 0.5,
|
|
},
|
|
|
|
// 本壁纸可选的音源(第 6 步会接进 project.json 的 bgm 属性)
|
|
audioChoices: [
|
|
{ id: "zaiduheni", name: "「再度和你」", source: asset("./audios/再度和你.ogg") },
|
|
{ id: "xilian", name: "昔涟", source: asset("./audios/昔涟.ogg") },
|
|
],
|
|
};
|