修复特殊节点反馈并强化跟手缩放和选关标题
This commit is contained in:
@@ -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(60),.985);assert.equal(landingScale(120),1);assert.equal(checkpointScale(130),1.035);assert.equal(checkpointScale(260),1);});
|
||||
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('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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user