Public Member Functions | |
| __init__ (self, points) | |
| __call__ (self, drawer, scale=1) | |
Public Attributes | |
| explosion_frame_index | |
| points | |
| explosion_timer | |
Protected Member Functions | |
| _update_frame (self, frame_count) | |
@class DrawExplosion @brief Handles the animation of explosions. The DrawExplosion class manages the rendering and frame updates for explosion animations based on their positions and timing.
| view.view.DrawExplosion.__init__ | ( | self, | |
| points | |||
| ) |
Initializes a DrawExplosion object. @param points: A list of points where the explosion occurs.
| view.view.DrawExplosion.__call__ | ( | self, | |
| drawer, | |||
scale = 1 |
|||
| ) |
Renders the explosion frames at the specified points. @param drawer: The object responsible for rendering. @param image_provider: The ImageProvider object providing the explosion images.
|
protected |
Updates the sparkle frame based on the elapsed time. @param frame_count: The total number of frames in the explosion animation. @return: True if the animation has completed, otherwise False.
| view.view.DrawExplosion.explosion_frame_index |
| view.view.DrawExplosion.explosion_timer |
| view.view.DrawExplosion.points |