Should fix index error.
This commit is contained in:
parent
5fe049f585
commit
f34d8106ef
|
@ -83,6 +83,9 @@ class Level(object):
|
||||||
self._blit_background(window)
|
self._blit_background(window)
|
||||||
|
|
||||||
for obj in self._sorted_objs():
|
for obj in self._sorted_objs():
|
||||||
obj.draw(window)
|
try:
|
||||||
|
obj.draw(window)
|
||||||
|
except IndexError:
|
||||||
|
print("Skipping frames ...")
|
||||||
|
|
||||||
self.darkness.draw(window)
|
self.darkness.draw(window)
|
||||||
|
|
|
@ -507,7 +507,7 @@ class Level1(level.Level):
|
||||||
|
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
self.objects.append(
|
self.objects.append(
|
||||||
CompletionBlock(self, 64 * (door_x - 6 + i), 48 * 4,
|
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
|
||||||
self.solution[i], i + 1))
|
self.solution[i], i + 1))
|
||||||
|
|
||||||
# DRAW THE BACKGROUND
|
# DRAW THE BACKGROUND
|
||||||
|
|
Loading…
Reference in New Issue