Switching SceneItems to smarts
This commit is contained in:
19
archive/animation/TiledSpriteAnimation.cpp
Normal file
19
archive/animation/TiledSpriteAnimation.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "TiledSpriteAnimation.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
TiledSpriteAnimation::TiledSpriteAnimation(TiledSprite *sprite) :
|
||||
SimpleAnimation(&frame),
|
||||
sprite(sprite)
|
||||
{
|
||||
}
|
||||
|
||||
void TiledSpriteAnimation::tick(const float_t delta) {
|
||||
SimpleAnimation::tick(delta);
|
||||
this->sprite->tile = frame;
|
||||
}
|
Reference in New Issue
Block a user