Public Member Functions | |
| __init__ (self, points) | |
| __call__ (self, drawer, scale=2) | |
Public Attributes | |
| sparkle_frame_index | |
| points | |
| sparkle_timer | |
Protected Member Functions | |
| _update_frame (self, frame_count) | |
@class DrawSparkle @brief Handles the animation of sparkles. The DrawSparkle class manages the rendering and frame updates for sparkle animations.
| view.view.DrawSparkle.__init__ | ( | self, | |
| points | |||
| ) |
Initializes a DrawSparkle object. @param points: A list of points where the sparkles occur.
| view.view.DrawSparkle.__call__ | ( | self, | |
| drawer, | |||
scale = 2 |
|||
| ) |
Renders the sparkle frames at the specified points. @param drawer: The object responsible for rendering. @param scale: Scaling factor for the sparkle. @return: True if the animation is ongoing, False if it is finished.
|
protected |
Updates the sparkle frame based on the elapsed time. @param frame_count: The total number of frames in the sparkle animation. @return: True if the animation has completed, otherwise False.
| view.view.DrawSparkle.points |
| view.view.DrawSparkle.sparkle_frame_index |
| view.view.DrawSparkle.sparkle_timer |