def update(self, dt): sr = self.parent.selection_rotation ss = self.parent.selection_scale current_location = self.parent.x, self.parent.y self.graphic.vertices = tools.rotate_triangle((0, 0), self.parent.radius*ss, sr, current_location)
def tick_graphics(self, dt): super(Sparkle, self).tick_graphics(dt) x, y = self.x, self.y self.flat_poly.vertices = rotate_triangle( (0, 0), self.radius * self.image_factor, self.rotation, (x, y))
def tick_graphics(self, dt): super(Sparkle, self).tick_graphics(dt) x, y = self.x, self.y self.flat_poly.vertices = rotate_triangle((0, 0), self.radius*self.image_factor, self.rotation, (x, y))