diff --git a/mota.config.ts b/mota.config.ts index 0406861..bc6c2a4 100644 --- a/mota.config.ts +++ b/mota.config.ts @@ -19,7 +19,8 @@ export default defineConfig({ 'images/*', 'animates/*', 'sounds/*', - 'fonts/*' + 'fonts/*', + '!images/bg.jpg' ], 'weather.zip': [ 'materials/fog.png', diff --git a/script/resource.ts b/script/resource.ts index 6b7981b..4a572cf 100644 --- a/script/resource.ts +++ b/script/resource.ts @@ -57,6 +57,9 @@ async function zipResource() { const dir = file.split('/')[0]; dirs.push(dir); await fs.copy(`./_temp/origin/${dir}`, `./_temp/${dir}`); + } else if (file.startsWith('!')) { + const dir = file.slice(1); + await fs.remove(`./_temp/${dir}`); } else { const [dir, name] = file.split('/'); if (dirs.includes(dir)) dirs.push(dir); diff --git a/src/plugin/pop.ts b/src/plugin/pop.ts index 07d5fb4..2c40c0e 100644 --- a/src/plugin/pop.ts +++ b/src/plugin/pop.ts @@ -7,8 +7,7 @@ let time = 0; // 插件必须有默认导出,并返回所有外部会用到的函数,所有返回的函数会被转发到core上 // 并且在这里面完成所有的初始化,函数外部也可以进行初始化,但完全不能涉及到样板相关内容 export default function init() { - if (!main.replayChecking) - core.registerAnimationFrame('pop', true, popValue); + core.registerAnimationFrame('pop', true, popValue); // 返回值是所有外部可见内容 return { addPop, pop }; }