Merge branch 'master' of hongabar.org:robotgame

This commit is contained in:
Niels Serup 2012-08-10 15:35:02 +02:00
commit 3c8d203606
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)