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,
|
task4_pos[1] - 48 * 3,
|
||||||
[self.complete_task, b.fall],
|
[self.complete_task, b.fall],
|
||||||
self.imgs['hole'], [b],
|
self.imgs['hole'], [b],
|
||||||
signal=[0, 3]))
|
signal=[0, 3],
|
||||||
|
toggling=True))
|
||||||
|
|
||||||
# Moat
|
# Moat
|
||||||
self.add_tile(task4_pos[0] - 64 * 2, task4_pos[1] - 48 * 4,
|
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.imgs['indoor1'],
|
||||||
[self.player]))
|
[self.player]))
|
||||||
|
|
||||||
for i in range(3):
|
if random.randint(0, 1):
|
||||||
self.objects.append(
|
for i in range(3):
|
||||||
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
|
self.objects.append(
|
||||||
self.solution[i], i + 1))
|
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
|
||||||
|
self.solution[i], i + 1))
|
||||||
|
|
||||||
# DRAW THE BACKGROUND
|
# DRAW THE BACKGROUND
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue