mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
Adding new text related components and upgrading old components to use the new features like anchor
This commit is contained in:
@ -36,16 +36,12 @@ class AnimationComponent extends PositionComponent {
|
||||
}
|
||||
|
||||
@override
|
||||
bool loaded() {
|
||||
return this.animation.loaded();
|
||||
}
|
||||
bool loaded() => animation.loaded();
|
||||
|
||||
@override
|
||||
void render(Canvas canvas) {
|
||||
if (loaded()) {
|
||||
prepareCanvas(canvas);
|
||||
animation.getSprite().render(canvas, width, height);
|
||||
}
|
||||
prepareCanvas(canvas);
|
||||
animation.getSprite().render(canvas, width, height);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user