Class: UI::Hall_of_Fame::Star_Animation
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::Hall_of_Fame::Star_Animation
- Defined in:
- docs/4_Systems_300_Hall_of_fame.rb
Overview
Class that define the Star Animation
Instance Attribute Summary collapse
-
#counter ⇒ Integer
The counter for the animation.
-
#finished ⇒ Boolean
Tell if the animation is finished or not.
Attributes inherited from SpriteSheet
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#initialize(viewport, frame_count = 2, repeat: false) ⇒ Star_Animation
constructor
Initialize the SpriteSheet.
-
#update
Update the animation depending on the @frame_count.
Methods inherited from SpriteSheet
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, frame_count = 2, repeat: false) ⇒ Star_Animation
Initialize the SpriteSheet
108 109 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 108 def initialize(, frame_count = 2, repeat: false) end |
Instance Attribute Details
#counter ⇒ Integer
The counter for the animation
100 101 102 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 100 def counter @counter end |
#finished ⇒ Boolean
Tell if the animation is finished or not
103 104 105 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 103 def finished @finished end |
Instance Method Details
#update
Update the animation depending on the @frame_count
111 112 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 111 def update end |