新增动画 移除不相关的库
This commit is contained in:
9
source/src/ECS/Components/SpriteAnimation.ts
Normal file
9
source/src/ECS/Components/SpriteAnimation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
class SpriteAnimation {
|
||||
public readonly sprites: Sprite[];
|
||||
public readonly frameRate: number;
|
||||
|
||||
constructor(sprites: Sprite[], frameRate: number){
|
||||
this.sprites = sprites;
|
||||
this.frameRate = frameRate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user