mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 23:29:27 +08:00
fix: animate 大地图错位
This commit is contained in:
parent
bd1421b59c
commit
b46aad7b37
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user