Little documentation update

This commit is contained in:
2022-12-14 06:27:10 -08:00
parent 4f55e4985e
commit 3ff1360102
17 changed files with 332 additions and 105 deletions

View File

@ -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;
};
}