Class: UI::BallCatch

Overview

Class that describes the Ball Catch animation used when a Ball captures a Creature

Constant Summary collapse

COLUMNS =

Constant defining the number of columns in the spritesheet

Returns:

  • (Integer)
10
ROWS =

Constant defining the number of rows in the spritesheet

Returns:

  • (Integer)
9
MAX_INDEX =

Constant defining the maximum index in the spritesheet

Returns:

  • (Integer)
COLUMNS * ROWS - 1

Instance Attribute Summary

Attributes inherited from SpriteSheet

#nb_x, #nb_y, #sx, #sy

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

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

Methods included from RecenterSprite

#add_position, #recenter

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, pokemon_or_item, scene) ⇒ BallCatch

Create a new BallCatch

Parameters:



2619
2620
# File 'docs/5_Battle_02_Visual.rb', line 2619

def initialize(viewport, pokemon_or_item, scene)
end

Instance Method Details

#catch_progression=(progression)

Function that adjust the bitmap depending of the "catch" animation

Parameters:

  • progression (Float)


2630
2631
# File 'docs/5_Battle_02_Visual.rb', line 2630

def catch_progression=(progression)
end

#shader_z_position

Return the basic z position of the sprite shader



2626
2627
# File 'docs/5_Battle_02_Visual.rb', line 2626

def shader_z_position
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2623
2624
# File 'docs/5_Battle_02_Visual.rb', line 2623

def z=(z)
end