From ab1cb93527c3b1e3b42e43723569130ecbebab4d Mon Sep 17 00:00:00 2001 From: Sakse Dalum Date: Fri, 10 Aug 2012 22:52:55 +0200 Subject: [PATCH] Moved tiles to their proper location in task 3. --- robotgame/level1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robotgame/level1.py b/robotgame/level1.py index 2d105f0..a9929b2 100644 --- a/robotgame/level1.py +++ b/robotgame/level1.py @@ -271,7 +271,7 @@ class Level1(level.Level): # y * 48 + task3_pos[1], # self.imgs['ground1'])) 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) action_blocks = [block.ActionBlock(self, 64 * i + task3_pos[0], @@ -404,7 +404,7 @@ class Level1(level.Level): return self.task_completions.append(task) 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) def restart(self): @@ -418,7 +418,7 @@ class Wheel(block.Block): self.frame = 0 self.anim_speed = 15 - self.nsettings = 5 + self.nsettings = 4 self.setting = random.randint(0, self.nsettings - 1) if self.immitate: self.on = self.setting == self.immitate.setting