Class: UI::Hall_of_Fame::Pokemon_Stars_Animation

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00300_Hall_of_fame.rb

Overview

Class that define the Pokemon Stars animation

Constant Summary collapse

X_ARRAY =

All the X coordinate for the stars around Creature

[67, 16, 90, 40, 65, 30]
Y_ARRAY =

All the Y coordinate for the stars around Creature

[20, 32, 90, 54, 48, 90]

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods inherited from SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ Pokemon_Stars_Animation

Initialize the SpriteStack

Parameters:



186
187
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 186

def initialize(viewport)
end

Instance Method Details

#reset

Reset the star animation to replay it when needed



196
197
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 196

def reset
end

#spritestack_coordinatesArray<Integer>

The SpriteStack initial coordinates

Returns:

  • (Array<Integer>)

    the coordinates



190
191
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 190

def spritestack_coordinates
end

#update

Update each star animation



193
194
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 193

def update
end