mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-10 01:27:58 +08:00
fix: 从存档开始的追逐战要存一个自动存档
This commit is contained in:
parent
0ba50d3af5
commit
c476303527
@ -238,8 +238,8 @@ export function initChase(): IChaseController {
|
|||||||
effect.start();
|
effect.start();
|
||||||
if (fromSave) {
|
if (fromSave) {
|
||||||
initFromSave(chase);
|
initFromSave(chase);
|
||||||
|
core.autosave();
|
||||||
}
|
}
|
||||||
// testEffect();
|
|
||||||
},
|
},
|
||||||
end(success) {
|
end(success) {
|
||||||
chase.end(success);
|
chase.end(success);
|
||||||
@ -252,27 +252,6 @@ export function initChase(): IChaseController {
|
|||||||
return controller;
|
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) {
|
function initAudio(chase: Chase) {
|
||||||
playAudio(0, 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(
|
function processScale(
|
||||||
chase: Chase,
|
chase: Chase,
|
||||||
ani: Animation,
|
ani: Animation,
|
||||||
|
Loading…
Reference in New Issue
Block a user