Replaced ground tile with indoor tiles in some places.

This commit is contained in:
Niels Serup 2012-08-10 22:20:31 +02:00
parent 6790174a76
commit ba7edfffd4
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()