mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-11-04 07:02:58 +08:00 
			
		
		
		
	fix: 从存档开始的追逐战要存一个自动存档
This commit is contained in:
		
							parent
							
								
									0ba50d3af5
								
							
						
					
					
						commit
						c476303527
					
				@ -238,8 +238,8 @@ export function initChase(): IChaseController {
 | 
			
		||||
            effect.start();
 | 
			
		||||
            if (fromSave) {
 | 
			
		||||
                initFromSave(chase);
 | 
			
		||||
                core.autosave();
 | 
			
		||||
            }
 | 
			
		||||
            // testEffect();
 | 
			
		||||
        },
 | 
			
		||||
        end(success) {
 | 
			
		||||
            chase.end(success);
 | 
			
		||||
@ -252,27 +252,6 @@ export function initChase(): IChaseController {
 | 
			
		||||
    return controller;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function testEffect() {
 | 
			
		||||
    // effect.addEffect(
 | 
			
		||||
    //     PointEffectType.CircleContrast,
 | 
			
		||||
    //     Date.now(),
 | 
			
		||||
    //     100000,
 | 
			
		||||
    //     [7 * 32 + 16, 17 * 32 + 16, 200, 150],
 | 
			
		||||
    //     [1, 0, 0, 0]
 | 
			
		||||
    // );
 | 
			
		||||
    effect.addEffect(
 | 
			
		||||
        PointEffectType.CircleWarp,
 | 
			
		||||
        Date.now(),
 | 
			
		||||
        100000,
 | 
			
		||||
        [7 * 32 + 16, 17 * 32 + 16, 200, 20],
 | 
			
		||||
        [1 / 20, 1, 0.5, 0],
 | 
			
		||||
        [0, Math.PI * 2, 0, 0]
 | 
			
		||||
    );
 | 
			
		||||
    // chase.on('frame', () => {
 | 
			
		||||
    //     effect.requestUpdate();
 | 
			
		||||
    // });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function initAudio(chase: Chase) {
 | 
			
		||||
    playAudio(0, chase);
 | 
			
		||||
}
 | 
			
		||||
@ -290,13 +269,6 @@ function playAudio(from: number, chase: Chase) {
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// function chaseShake(chase: Chase) {
 | 
			
		||||
//     chase.ani
 | 
			
		||||
//         .mode(shake2(2 / 32, bezier(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)), true)
 | 
			
		||||
//         .time(50000)
 | 
			
		||||
//         .shake(1, 0);
 | 
			
		||||
// }
 | 
			
		||||
 | 
			
		||||
function processScale(
 | 
			
		||||
    chase: Chase,
 | 
			
		||||
    ani: Animation,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user