Class: BattleUI::Battleback3D
- Inherits:
-
ShaderedSprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- BattleUI::Battleback3D
- Defined in:
- docs/5_Battle_01_Scene.rb
Direct Known Subclasses
Constant Summary collapse
- MARGIN_X =
64
- MARGIN_Y =
68
Instance Attribute Summary collapse
-
#scene ⇒ Battle::Scene
readonly
Get the scene linked to this object.
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
-
#battleback_sprite3D
Return an Array containing the elements of the background.
-
#create_animations
Create all the animations for the graphics element in an array of Yuki::Animation::TimedAnimation.
-
#create_graphics
Create all the graphic elements for the BattleBack.
-
#initialize(viewport, scene) ⇒ Battleback3D
constructor
Create a new BattleBack3D.
-
#set_position(x, y, z = 1) ⇒ self
Set the position of the sprite.
-
#update_battleback
Update the background Elements (especially the animated elements).
-
#z=(z)
Set the z position of the sprite.
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, scene) ⇒ Battleback3D
Create a new BattleBack3D
1744 1745 |
# File 'docs/5_Battle_01_Scene.rb', line 1744 def initialize(, scene) end |
Instance Attribute Details
#scene ⇒ Battle::Scene (readonly)
Get the scene linked to this object
1740 1741 1742 |
# File 'docs/5_Battle_01_Scene.rb', line 1740 def scene @scene end |
Instance Method Details
#battleback_sprite3D
Return an Array containing the elements of the background
1758 1759 |
# File 'docs/5_Battle_01_Scene.rb', line 1758 def battleback_sprite3D end |
#create_animations
Create all the animations for the graphics element in an array of Yuki::Animation::TimedAnimation
1767 1768 |
# File 'docs/5_Battle_01_Scene.rb', line 1767 def create_animations end |
#create_graphics
Create all the graphic elements for the BattleBack
1764 1765 |
# File 'docs/5_Battle_01_Scene.rb', line 1764 def create_graphics end |
#set_position(x, y, z = 1) ⇒ self
Set the position of the sprite
1751 1752 |
# File 'docs/5_Battle_01_Scene.rb', line 1751 def set_position(x, y, z = 1) end |
#update_battleback
Update the background Elements (especially the animated elements)
1761 1762 |
# File 'docs/5_Battle_01_Scene.rb', line 1761 def update_battleback end |
#z=(z)
Set the z position of the sprite
1755 1756 |
# File 'docs/5_Battle_01_Scene.rb', line 1755 def z=(z) end |