Moved tiles to their proper location in task 3.

This commit is contained in:
Sakse Dalum 2012-08-10 22:52:55 +02:00
parent 814471e722
commit ab1cb93527
1 changed files with 3 additions and 3 deletions

View File

@ -271,7 +271,7 @@ class Level1(level.Level):
# y * 48 + task3_pos[1], # y * 48 + task3_pos[1],
# self.imgs['ground1'])) # self.imgs['ground1']))
pos_colour[(x, y)] = box pos_colour[(x, y)] = box
self.add_tile(task3_pos[0] + 64 * x, task3_pos[1] + 48 * y, self.add_tile(task3_pos[0] + 64 * x, task3_pos[1] + 48 * (y + 1),
'indoor%d' % random.randint(1, 6), blocking=False) 'indoor%d' % random.randint(1, 6), blocking=False)
action_blocks = [block.ActionBlock(self, 64 * i + task3_pos[0], action_blocks = [block.ActionBlock(self, 64 * i + task3_pos[0],
@ -404,7 +404,7 @@ class Level1(level.Level):
return return
self.task_completions.append(task) self.task_completions.append(task)
if len(self.task_completions) > 3: if len(self.task_completions) > 3:
self.task_completions.remove(self.task_completions[0]) self.task_completions = self.task_completions[-3:]
print(self.task_completions) print(self.task_completions)
def restart(self): def restart(self):
@ -418,7 +418,7 @@ class Wheel(block.Block):
self.frame = 0 self.frame = 0
self.anim_speed = 15 self.anim_speed = 15
self.nsettings = 5 self.nsettings = 4
self.setting = random.randint(0, self.nsettings - 1) self.setting = random.randint(0, self.nsettings - 1)
if self.immitate: if self.immitate:
self.on = self.setting == self.immitate.setting self.on = self.setting == self.immitate.setting