修复特殊节点反馈并强化跟手缩放和选关标题
This commit is contained in:
@@ -7,7 +7,7 @@ export function applyLayeredFeedback(source){
|
||||
replace("record.backtracks++;path.pop();sound.play('undo');","record.backtracks++;const removed=path.pop();feedback.emit('undo',level,removed,path.length,{from:path.at(-1)});");
|
||||
replace("path.pop();sound.play('undo');record.backtracks++;","const removed=path.pop();feedback.emit('undo',level,removed,path.length,{from:path.at(-1)});record.backtracks++;");
|
||||
const audio="if(path.length<level.cells.length)sound.play(cell.clue!==undefined&&cell.clue===path.length?(cell.clue>1?'checkpoint':'correct'):'move',0,path.length)";
|
||||
replace(audio,"if(path.length<level.cells.length)feedback.emit(cell.clue>1&&cell.clue===path.length?'checkpoint':'move',level,id,path.length,{from:path.at(-2)})");
|
||||
replace(audio,"if(path.length<level.cells.length)feedback.emit((cell.clue>1&&cell.clue===path.length)||cell.parity||cell.direction?'checkpoint':'move',level,id,path.length,{from:path.at(-2),ribbon:cell.clue>1&&cell.clue===path.length})");
|
||||
replace("sound.play('complete',0)","feedback.emit('complete',level,id,path.length,{from:path.at(-2)})");
|
||||
replace("sound.unlock();sound.play('restart');","feedback.reset();sound.unlock();sound.play('restart');");
|
||||
replace('advance(hit(a[0]+(p[0]-a[0])*i/steps,a[1]+(p[1]-a[1])*i/steps))','advanceAt(a[0]+(p[0]-a[0])*i/steps,a[1]+(p[1]-a[1])*i/steps)');
|
||||
|
||||
Reference in New Issue
Block a user