Little documentation update
This commit is contained in:
@ -13,15 +13,13 @@ namespace Dawn {
|
||||
int32_t frame = 0;
|
||||
TiledSprite *sprite = nullptr;
|
||||
|
||||
TiledSpriteAnimation(TiledSprite *sprite) :
|
||||
SimpleAnimation(&frame),
|
||||
sprite(sprite)
|
||||
{
|
||||
}
|
||||
/**
|
||||
* Construct a new Tiled Sprite Animation.
|
||||
*
|
||||
* @param sprite Sprite that this animation will control.
|
||||
*/
|
||||
TiledSpriteAnimation(TiledSprite *sprite);
|
||||
|
||||
void tick(float_t delta) override {
|
||||
SimpleAnimation::tick(delta);
|
||||
this->sprite->setTile(frame);
|
||||
}
|
||||
void tick(float_t delta) override;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user