Separated some character code into Renderable

This commit is contained in:
Kayne Ruse
2014-10-10 06:00:58 +11:00
parent 4d6186021f
commit 8dcd02aba3
5 changed files with 92 additions and 28 deletions
-4
View File
@@ -31,10 +31,6 @@ void Character::Update() {
sprite.Update(0.016);
}
void Character::DrawTo(SDL_Surface* const dest, int camX, int camY) {
sprite.DrawTo(dest, origin.x - camX, origin.y - camY);
}
void Character::CorrectSprite() {
//NOTE: These must correspond to the sprite sheet in use
if (motion.y > 0) {