Added lever to task 3.

This commit is contained in:
Sakse Dalum 2012-08-10 15:30:30 +02:00
parent 0124a76d42
commit eceed9be95
1 changed files with 12 additions and 0 deletions

View File

@ -238,6 +238,18 @@ class Level1(level.Level):
for b in action_blocks:
b.action = update_wells
self.objects.append(
lever.Lever(self,
task3_pos[0] - 64 * 3,
task3_pos[1] - 48 * 3,
[lambda *x: (self.complete_task(3)
if (len([w for w in wells
if (w.well_colour
== (255, 255, 255))
])
== len(wells))
else lambda: None)]))
### Task 4: Inverted bits
task4_pos = (64 * 13, 48 * 13)