Пример #1
0
 def build_3(self):
     """level 3"""
     pig = Pig(950, 320, self.space)
     pig.life = 25
     self.pigs.append(pig)
     pig = Pig(885, 225, self.space)
     pig.life = 25
     self.pigs.append(pig)
     pig = Pig(1005, 225, self.space)
     pig.life = 25
     self.pigs.append(pig)
     p = (1100, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (1070, 152)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (1040, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (980, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (920, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (950, 152)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (1010, 180)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (860, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (800, 100)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (830, 152)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (890, 180)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (860, 223)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (920, 223)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (980, 223)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (1040, 223)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (890, 280)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (1010, 280)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (950, 300)
     self.beams.append(Polygon(p, 85, 20, self.space))
     p = (920, 350)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (980, 350)
     self.columns.append(Polygon(p, 20, 85, self.space))
     p = (950, 400)
     self.beams.append(Polygon(p, 85, 20, self.space))
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8
Пример #2
0
 def build_9(self):
     """level 9"""
     pig = Pig(1000, 180, self.space)
     pig.life = 20
     self.pigs.append(pig)
     pig = Pig(900, 180, self.space)
     pig.life = 20
     self.pigs.append(pig)
     self.open_flat(1050, 0, 3)
     self.open_flat(963, 0, 2)
     self.open_flat(880, 0, 2)
     self.open_flat(790, 0, 3)
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8
Пример #3
0
 def build_7(self):
     """level 7"""
     pig = Pig(978, 180, self.space)
     pig.life = 30
     self.pigs.append(pig)
     pig = Pig(978, 280, self.space)
     pig.life = 30
     self.pigs.append(pig)
     pig = Pig(978, 80, self.space)
     pig.life = 30
     self.pigs.append(pig)
     self.open_flat(950, 0, 3)
     self.vertical_pile(850, 0, 3)
     self.vertical_pile(830, 0, 3)
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8
Пример #4
0
 def build_6(self):
     """level 6"""
     pig = Pig(920, 533, self.space)
     pig.life = 40
     self.pigs.append(pig)
     pig = Pig(820, 533, self.space)
     self.pigs.append(pig)
     pig = Pig(720, 633, self.space)
     self.pigs.append(pig)
     self.closed_flat(895, 423, 1)
     self.vertical_pile(900, 0, 5)
     self.vertical_pile(926, 0, 5)
     self.vertical_pile(950, 0, 5)
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8
Пример #5
0
 def build_10(self):
     """level 10"""
     pig = Pig(960, 250, self.space)
     pig.life = 20
     self.pigs.append(pig)
     pig = Pig(820, 160, self.space)
     self.pigs.append(pig)
     pig = Pig(1100, 160, self.space)
     self.pigs.append(pig)
     self.vertical_pile(900, 0, 3)
     self.vertical_pile(930, 0, 3)
     self.vertical_pile(1000, 0, 3)
     self.vertical_pile(1030, 0, 3)
     self.horizontal_pile(970, 250, 2)
     self.horizontal_pile(820, 0, 4)
     self.horizontal_pile(1100, 0, 4)
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8
Пример #6
0
 def build_11(self):
     """level 11"""
     pig = Pig(820, 177, self.space)
     self.pigs.append(pig)
     pig = Pig(960, 150, self.space)
     self.pigs.append(pig)
     pig = Pig(1100, 130, self.space)
     self.pigs.append(pig)
     pig = Pig(890, 270, self.space)
     pig.life = 30
     self.pigs.append(pig)
     self.horizontal_pile(800, 0, 5)
     self.horizontal_pile(950, 0, 3)
     self.horizontal_pile(1100, 0, 2)
     self.vertical_pile(745, 0, 2)
     self.vertical_pile(855, 0, 2)
     self.vertical_pile(900, 0, 2)
     self.vertical_pile(1000, 0, 2)
     p = (875, 230)
     self.beams.append(Polygon(p, 85, 20, self.space))
     self.number_of_birds = 4
     if self.bool_space:
         self.number_of_birds = 8