Made the camera follow the robot.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user