Added invisible border on level 1.

This commit is contained in:
Sakse Dalum 2012-08-09 14:26:53 +02:00
parent 9fe46b6f44
commit fb58691a06
1 changed files with 12 additions and 0 deletions

View File

@ -54,6 +54,18 @@ class Level1(level.Level):
self.player.set_pos(64 * 15, 48 * 15) self.player.set_pos(64 * 15, 48 * 15)
self.player.set_init_pos() self.player.set_init_pos()
for i in range(self.dimensions[0]):
self.objects.append(block.InvisBlock(self, i * 64,
0))
self.objects.append(block.InvisBlock(self, i * 64,
(self.dimensions[1]) * 48))
print i
for i in range(self.dimensions[1]):
self.objects.append(block.InvisBlock(self, -64,
i * 48))
self.objects.append(block.InvisBlock(self, self.dimensions[0] * 64,
i * 48))
### Task 2: Rolling stone ### Task 2: Rolling stone
task2_size = 15, 10 task2_size = 15, 10