优化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
+1 -1
View File
@@ -58,7 +58,7 @@ test('drag near a previous-block boundary cannot undo; deeper entry can, and und
test('tutorial, redraw, hint and restored saved routes do not generate player feedback',()=>{
const ui=boot();ui.select(4);const n=ui.api.snapshot().feedback.sequence;ui.button('规则');ui.advance(1000);ui.advance(1000);ui.button('返回游戏');ui.button('指路');ui.advance(400);assert.equal(ui.api.snapshot().feedback.sequence,n);ui.cell(solve(levels[4])[0][0]);const restored=boot(ui.storage);assert.equal(restored.api.snapshot().feedback.sequence,0);
});
test('pressure and rebound have bounded amplitude and duration',()=>{assert.equal(landingScale(45),1.025);assert.equal(landingScale(90),1);assert.equal(checkpointScale(45),1.065);assert.equal(checkpointScale(90),1);});
test('pressure and rebound have bounded amplitude and duration',()=>{assert.equal(landingScale(45),1.1);assert.equal(landingScale(90),1);assert.equal(checkpointScale(45),1.3);assert.equal(checkpointScale(90),1);});
test('interpolation cannot duplicate the same failed-cell event within one native movement',()=>{
const f=new Feedback();f.begin();for(let i=0;i<40;i++)f.emit('error','l','wall-cell',3);f.end();assert.equal(f.sequence,1);f.begin();f.emit('error','l','wall-cell',3);f.end();assert.equal(f.sequence,2);
});