fix: 追逐战困难难度成就

This commit is contained in:
unanmed 2024-10-08 22:24:54 +08:00
parent b720c9e032
commit 4b8cb729e2
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,3 @@
import { logger } from '@/core/common/logger';
import { MotaOffscreenCanvas2D } from '@/core/fx/canvas2d';
import { CameraAnimation } from '@/core/render/camera';
import { LayerGroup } from '@/core/render/preset/layer';

View File

@ -5,7 +5,6 @@ import { Camera, CameraAnimation, CameraScale } from '@/core/render/camera';
import { LayerGroup } from '@/core/render/preset/layer';
import { MotaRenderer } from '@/core/render/render';
import { Sprite } from '@/core/render/sprite';
import { AudioPlayer } from '@/core/audio/audio';
import { bgm } from '@/core/audio/bgm';
const path: Partial<Record<FloorIds, LocArr[]>> = {
@ -177,7 +176,7 @@ export function initChase(): IChaseController {
animation14.translate(translate, 36, 0, 3320, 21580, linear());
animation14.translate(translate, 0, 0, 9960, 24900, linear());
chase.on('end', () => {
chase.on('end', success => {
camera.transform.reset();
camera.transform.translate(
-translate.x * 32 - 7 * 32,
@ -191,6 +190,10 @@ export function initChase(): IChaseController {
back = void 0;
core.removeFlag('onChase');
core.removeFlag('chaseId');
if (success) {
completeAchievement('challenge', 0);
}
});
judgeFail1(chase, ani, camera);