Ejemplo n.º 1
0
 def draw(self):
     theta = self.getAngle()
     for distance, item in self.Objects:
         x, y = self.position
         dx = math.cos(theta) * distance
         dy = math.sin(theta) * distance
         item.position = (x+dx, y-dy)
         item.draw()
     self.Base.draw()
     BaseItem.draw(self)