优化BGMA连续播放与通关音量压低并强化节点缩放

This commit is contained in:
toshiocn
2026-10-23 14:25:35 +08:00
parent c13b850fb2
commit 90d83b3903
19 changed files with 65 additions and 53 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url';
import { build } from 'esbuild';
const root = path.dirname(fileURLToPath(import.meta.url));
buildAudio(root);buildMusic(root);
await build({ absWorkingDir: root, entryPoints: ['src/main.mjs'], outfile: 'game.js', bundle: true, format: 'iife', platform: 'neutral', target: 'es2020', minify: true, plugins: [{ name: 'wechat-host', setup(b) {
await build({ absWorkingDir: root, entryPoints: ['src/main.mjs'], outfile: 'game.js', bundle: true, format: 'iife', platform: 'neutral', target: 'es2019', minify: true, plugins: [{ name: 'wechat-host', setup(b) {
b.onLoad({ filter: /upstream[\\/]ui\.mjs$/ }, args => {
let contents = fs.readFileSync(args.path, 'utf8');
contents=contents.replace("from './audio.mjs'", "from '../audio.mjs'");
@@ -53,6 +53,6 @@ export function resumeGameplay(){const saved=readResume(localStorage),target=res
});
} }] });
console.log('Built campaign-200-r2: 200 levels');