fix: animate 大地图错位

This commit is contained in:
unanmed 2024-10-03 11:45:49 +08:00
parent bd1421b59c
commit b46aad7b37
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ export class Animate extends Sprite {
private lastTime: number = 0;
constructor() {
super('absolute', false);
super('absolute', false, true);
this.setRenderFn((canvas, transform) => {
const { ctx } = canvas;

View File

@ -9,9 +9,9 @@ import { Transform } from './transform';
export interface ESpriteEvent extends ERenderItemEvent {}
export class Sprite<E extends ESpriteEvent = ESpriteEvent> extends RenderItem<
E | ESpriteEvent
> {
export class Sprite<
E extends ESpriteEvent = ESpriteEvent
> extends RenderItem<E> {
renderFn: RenderFunction;
/**