Adjusted the size of level 1.

This commit is contained in:
Sakse Dalum 2012-08-12 20:28:20 +02:00
parent 2b97af6526
commit dc1df769cc
1 changed files with 8 additions and 10 deletions

View File

@ -44,8 +44,8 @@ import logic.colourboxes
class Level1(level.Level):
def __init__(self, game, graphics_dir, paused=False):
level.Level.__init__(self, game, graphics_dir, size=(64 * 50,
48 * 50),
level.Level.__init__(self, game, graphics_dir, size=(64 * 40,
48 * 40),
paused=paused)
self.solution = range(1, 6)
@ -54,30 +54,28 @@ class Level1(level.Level):
self.task_completions = [0, 0, 0]
self.dimensions = 50, 50
self.set_darkness(0)
for i in range(self.dimensions[0]):
for j in range(self.dimensions[1]):
for i in range(self.size[0] / 64):
for j in range(self.size[1] / 48):
self.tiles.append(
tile.Tile(self, i*64, j*48, self.imgs['ground1']))
self.player.set_pos(64 * 15, 48 * 30)
self.player.set_init_pos()
for i in range(self.dimensions[0]):
for i in range(self.size[0] / 64):
if not i % 3:
self.objects.append(block.Block(self, i * 64,
48 * 3,
self.imgs['wall_outside'],
width=3))
self.objects.append(block.InvisBlock(self, i * 64,
(self.dimensions[1]) * 48))
for i in range(self.dimensions[1]):
self.size[1] * 48))
for i in range(self.size[1] / 48):
self.objects.append(block.InvisBlock(self, - 64,
i * 48))
self.objects.append(block.InvisBlock(self, self.dimensions[0] * 64,
self.objects.append(block.InvisBlock(self, self.size[0],
i * 48))