优化BGMA连续播放与通关音量压低并强化节点缩放
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user