Class: UI::ThrowingBallSprite3D
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::ThrowingBallSprite3D
- Includes:
- RecenterSprite
- Defined in:
- docs/5_Battle_02_Visual.rb
Overview
Sprite responsive of showing the sprite of the Ball we throw to Pokemon or to release Pokemon
Constant Summary collapse
- MOVE_PROGRESSION_CELL =
Array mapping the move progression to the right cell
[11, 12, 13, 12, 11, 14, 15, 16, 15, 14, 0]
Instance Attribute Summary
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
-
#ball_z_position(pokemon_or_item) ⇒ Integer
Return the z position for correct perspective ordering in multi-Pokemon battles.
-
#break_progression=(progression)
Function that adjust the sy depending on the progression of the "break" animation.
-
#caught_progression=(progression)
Function that adjust the sy depending on the progression of the "caught" animation.
-
#close_progression=(progression)
Function that adjust the sy depending on the progression of the "close" animation.
-
#initialize(viewport, pokemon_or_item, scene) ⇒ ThrowingBallSprite3D
constructor
Create a new ThrowingBallSprite.
-
#move_progression=(progression)
Function that adjust the sy depending on the progression of the "move" animation.
-
#open_progression=(progression)
Function that adjust the sy depending on the progression of the "open" animation.
-
#reset_position(bank, position, scene)
Reset the ball position.
-
#shader_z_position
Return the basic z position of the sprite shader.
-
#throw_progression=(progression)
Function that adjust the sy depending on the progression of the "throw" animation.
-
#throw_progression_enemy=(progression)
Function that adjust the sy depending on the progression of the "throw" animation (enemy only).
-
#z=(z)
Set the z position of the sprite.
Methods included from RecenterSprite
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, #update
Methods inherited from LiteRGSS::Sprite
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, pokemon_or_item, scene) ⇒ ThrowingBallSprite3D
Create a new ThrowingBallSprite
2437 2438 |
# File 'docs/5_Battle_02_Visual.rb', line 2437 def initialize(, pokemon_or_item, scene) end |
Instance Method Details
#ball_z_position(pokemon_or_item) ⇒ Integer
Return the z position for correct perspective ordering in multi-Pokemon battles
2449 2450 |
# File 'docs/5_Battle_02_Visual.rb', line 2449 def ball_z_position(pokemon_or_item) end |
#break_progression=(progression)
Function that adjust the sy depending on the progression of the "break" animation
2479 2480 |
# File 'docs/5_Battle_02_Visual.rb', line 2479 def break_progression=(progression) end |
#caught_progression=(progression)
Function that adjust the sy depending on the progression of the "caught" animation
2483 2484 |
# File 'docs/5_Battle_02_Visual.rb', line 2483 def caught_progression=(progression) end |
#close_progression=(progression)
Function that adjust the sy depending on the progression of the "close" animation
2471 2472 |
# File 'docs/5_Battle_02_Visual.rb', line 2471 def close_progression=(progression) end |
#move_progression=(progression)
Function that adjust the sy depending on the progression of the "move" animation
2475 2476 |
# File 'docs/5_Battle_02_Visual.rb', line 2475 def move_progression=(progression) end |
#open_progression=(progression)
Function that adjust the sy depending on the progression of the "open" animation
2467 2468 |
# File 'docs/5_Battle_02_Visual.rb', line 2467 def open_progression=(progression) end |
#reset_position(bank, position, scene)
Reset the ball position
2455 2456 |
# File 'docs/5_Battle_02_Visual.rb', line 2455 def reset_position(bank, position, scene) end |
#shader_z_position
Return the basic z position of the sprite shader
2444 2445 |
# File 'docs/5_Battle_02_Visual.rb', line 2444 def shader_z_position end |
#throw_progression=(progression)
Function that adjust the sy depending on the progression of the "throw" animation
2459 2460 |
# File 'docs/5_Battle_02_Visual.rb', line 2459 def throw_progression=(progression) end |
#throw_progression_enemy=(progression)
Function that adjust the sy depending on the progression of the "throw" animation (enemy only)
2463 2464 |
# File 'docs/5_Battle_02_Visual.rb', line 2463 def throw_progression_enemy=(progression) end |
#z=(z)
Set the z position of the sprite
2441 2442 |
# File 'docs/5_Battle_02_Visual.rb', line 2441 def z=(z) end |