Added "camera"

This commit is contained in:
Kayne Ruse
2014-04-05 01:56:05 +11:00
parent 41077b43b3
commit 962f3f5dd0
3 changed files with 35 additions and 7 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ public:
void Update(double delta);
void DrawTo(SDL_Surface* const dest) { sprite.DrawTo(dest, position.x, position.y); }
void DrawTo(SDL_Surface* const dest, int camX, int camY) { sprite.DrawTo(dest, position.x - camX, position.y - camY); }
//clunky code results in smooth movement and controls
void AdjustDirection(Direction);