Ejemplo n.º 1
0
 def __init__(self,position,floating=False):
     super().__init__(position,metal_color,floating=floating)
     shp = [(-self.size[0]*0.65,-self.size[0]*0.8),(self.size[0]*0.65,-self.size[0]*0.8),(0,-self.size[0]*0.15)]
     tri = Shape(shp,color = wood_color,line_color = dark_wood_color,line_width = 2)
     for _ in range(4):
         tri.rot90()
         self.shapes.append(copy.deepcopy(tri))
     self.fruit = 1
Ejemplo n.º 2
0
 def __init__(self,position,floating=False):
     Box.__init__(self,position,wood_color,floating=floating)
     shp = [(-self.size[0]*0.65,-self.size[0]*0.8),(self.size[0]*0.65,-self.size[0]*0.8),(0,-self.size[0]*0.15)]
     tri = Shape(shp,color = dark_wood_color,line_color = dark_wood_color,line_width = 2)
     for _ in range(4):
         tri.rot90()
         self.shapes.append(copy.deepcopy(tri))
         
     self.bounces = 1 # regular wooden boxes can take exactly one bounce
     self.fruit = 1