我想渲染这张卡,第一次加载时,动画开始一次。我想要的是默认没有动画发生。有谁知道如何做到这一点?
class Card extends AnimationComponent {
Card(width, height)
: super.sequenced(width, height, 'card.png', 5,
textureWidth: 144.0, textureHeight: 220.0, loop: false);
}
class GameScreen extends BaseGame {
GameScreen({@required this.size}) {
add(Card(0,0));
}
}