Removed delta time system from the framework

This commit is contained in:
Kayne Ruse
2014-08-19 02:52:15 +10:00
parent f52a022e64
commit 5dea53ad50
18 changed files with 31 additions and 31 deletions
+4 -4
View File
@@ -21,14 +21,14 @@
*/
#include "character.hpp"
void Character::Update(double delta) {
void Character::Update() {
if (motion.x && motion.y) {
origin += motion * delta * CHARACTER_WALKING_MOD;
origin += motion * CHARACTER_WALKING_MOD;
}
else if (motion != 0) {
origin += motion * delta;
origin += motion;
}
sprite.Update(delta);
sprite.Update(0.016);
}
void Character::DrawTo(SDL_Surface* const dest, int camX, int camY) {