Added a few more details to task 4.
This commit is contained in:
parent
1b648c339d
commit
5f6f26bde6
|
@ -146,12 +146,39 @@ class Level1(level.Level):
|
||||||
anim='lever_updown',
|
anim='lever_updown',
|
||||||
toggling=True,
|
toggling=True,
|
||||||
signal=[2, 3]))
|
signal=[2, 3]))
|
||||||
for i in range(random.randint(0, 1)):
|
for k in range(random.randint(0, 1)):
|
||||||
self.objects[-1].use(self)
|
self.objects[-1].use(self)
|
||||||
self.objects[-1].set_init_pos()
|
self.objects[-1].set_init_pos()
|
||||||
risingblocks[i].set_init_pos()
|
risingblocks[i].set_init_pos()
|
||||||
risingblocks[n].set_init_pos()
|
risingblocks[n].set_init_pos()
|
||||||
|
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * i,
|
||||||
|
task4_pos[1] - 48 * 4,
|
||||||
|
self.imgs['block1']))
|
||||||
|
|
||||||
|
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] - 64,
|
||||||
|
task4_pos[1] - 48 * 2,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] - 64,
|
||||||
|
task4_pos[1] - 48 * 4,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * 8,
|
||||||
|
task4_pos[1] - 48 * 4,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * 8,
|
||||||
|
task4_pos[1] - 48 * 2,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * 9,
|
||||||
|
task4_pos[1] - 48 * 4,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * 9,
|
||||||
|
task4_pos[1] - 48 * 3,
|
||||||
|
self.imgs['block1']))
|
||||||
|
self.objects.append(block.Block(self, task4_pos[0] + 64 * 9,
|
||||||
|
task4_pos[1] - 48 * 2,
|
||||||
|
self.imgs['block1']))
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
"""Load all resources used in the level."""
|
"""Load all resources used in the level."""
|
||||||
tile_list = ['ground1', 'ground2']
|
tile_list = ['ground1', 'ground2']
|
||||||
|
|
Loading…
Reference in New Issue