Fixed a bug making level 1 impossible to complete in certain situations.
This commit is contained in:
parent
c04deececf
commit
d192510814
|
@ -339,7 +339,8 @@ class Level1(level.Level):
|
|||
task4_pos[1] - 48 * 3,
|
||||
[self.complete_task, b.fall],
|
||||
self.imgs['hole'], [b],
|
||||
signal=[0, 3]))
|
||||
signal=[0, 3],
|
||||
toggling=True))
|
||||
|
||||
# Moat
|
||||
self.add_tile(task4_pos[0] - 64 * 2, task4_pos[1] - 48 * 4,
|
||||
|
@ -503,10 +504,11 @@ class Level1(level.Level):
|
|||
self.imgs['indoor1'],
|
||||
[self.player]))
|
||||
|
||||
for i in range(3):
|
||||
self.objects.append(
|
||||
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
|
||||
self.solution[i], i + 1))
|
||||
if random.randint(0, 1):
|
||||
for i in range(3):
|
||||
self.objects.append(
|
||||
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
|
||||
self.solution[i], i + 1))
|
||||
|
||||
# DRAW THE BACKGROUND
|
||||
|
||||
|
|
Loading…
Reference in New Issue