Moat has been added to level 1.
This commit is contained in:
@@ -56,7 +56,7 @@ class Level(object):
|
||||
if not self.paused:
|
||||
for obj in self.objects:
|
||||
obj.update(e, t, dt)
|
||||
if self.player.is_moving and hasattr(obj, 'update_alpha'):
|
||||
if self.player.is_moving:
|
||||
obj.update_alpha()
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class Level(object):
|
||||
self.camera_y = (self.player.y - screen_size[1] / 2 - 24)
|
||||
|
||||
def draw(self, window):
|
||||
window.blit(self.background, (0 - self.camera_x, -48 - self.camera_y))
|
||||
window.blit(self.background, (0 - self.camera_x, 0 - self.camera_y))
|
||||
|
||||
for obj in sorted(self.objects, key=lambda obj: (obj.y + obj.z)):
|
||||
obj.draw(window)
|
||||
|
||||
Reference in New Issue
Block a user