From ba7edfffd49b6a310acf14cc0e211f882e6fae53 Mon Sep 17 00:00:00 2001 From: Niels Serup Date: Fri, 10 Aug 2012 22:20:31 +0200 Subject: [PATCH] Replaced ground tile with indoor tiles in some places. --- robotgame/level2.py | 2 +- robotgame/level3.py | 2 +- robotgame/level_bonus.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/robotgame/level2.py b/robotgame/level2.py index c429d9e..208c963 100644 --- a/robotgame/level2.py +++ b/robotgame/level2.py @@ -23,7 +23,7 @@ class Level2(level.Level): for i in range(self.dimensions[0]): for j in range(self.dimensions[1]): self.tiles.append( - tile.Tile(self, i*64, j*48, self.imgs['ground1'])) + tile.Tile(self, i*64, (j + 1)*48, self.imgs['indoor%d' % random.randint(1, 6)])) self.draw_background() diff --git a/robotgame/level3.py b/robotgame/level3.py index dfbfca8..fc3c136 100644 --- a/robotgame/level3.py +++ b/robotgame/level3.py @@ -70,7 +70,7 @@ class Level3(level.Level): for box, (x, y) in zip(boxes, itertools.product(range(7), range(6))): self.tiles.append(tile.Tile(self, 64 * (x + task_start[0] + 1), 48 * (y + task_start[1] + 1), - self.imgs['ground1'])) + self.imgs['indoor%d' % random.randint(1, 6)])) pos_colour[(x, y)] = box self.draw_background() diff --git a/robotgame/level_bonus.py b/robotgame/level_bonus.py index b7c82b8..31a06e8 100644 --- a/robotgame/level_bonus.py +++ b/robotgame/level_bonus.py @@ -49,7 +49,7 @@ class Level(level.Level): for i in range(self.dimensions[0]): for j in range(self.dimensions[1]): self.tiles.append( - tile.Tile(self, i*64, j*48, self.imgs['ground1'])) + tile.Tile(self, (i+1)*64, j*48, self.imgs['indoor%d' % random.randint(1, 6)])) self.draw_background()