Made the camera follow the robot.

This commit is contained in:
Sakse Dalum
2012-08-08 13:50:48 +02:00
parent 565c2a4267
commit 82388afde3
7 changed files with 41 additions and 26 deletions

View File

@@ -40,6 +40,7 @@ class Block(worldobject.WorldObject):
self.holder = obj
def draw(self, window):
window.blit(self.img, (self.x - 32,
self.y - self.img.get_size()[1]))
window.blit(self.img, (self.x - 32 - self.level.camera_x,
self.y - self.img.get_size()[1]
- self.level.camera_y))