Class: BattleUI::BattleBackGrass
- Inherits:
-
Battleback3D
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- Battleback3D
- BattleUI::BattleBackGrass
- Defined in:
- docs/5_Battle_01_Scene.rb
Overview
Here we only deal with the method for creating graphic elements associated with a Battleback when BATTLE_CAMERA_3D is activated. This is an example, so feel free to create your own. Reminder : All the coordinates are calculated from the center of your Viewport which is : x = Graphics.width and y = Graphics.height
Constant Summary
Constants inherited from Battleback3D
BattleUI::Battleback3D::MARGIN_X, BattleUI::Battleback3D::MARGIN_Y
Instance Attribute Summary
Attributes inherited from Battleback3D
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
-
#create_animation_cloud(element, start_x, final_x, duration) ⇒ Yuki::Animation::TimedAnimation
create the animation for a cloud, this animation loops automatically, so it returns to start_x.
-
#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) ⇒ BattleBackGrass
constructor
Function that define the Battleback To create your own Battleback you need to follow the same pattern.
-
#resource_path
Return the path for the resources.
Methods inherited from Battleback3D
#battleback_sprite3D, #set_position, #update_battleback, #z=
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
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, scene) ⇒ BattleBackGrass
Function that define the Battleback To create your own Battleback you need to follow the same pattern
1868 1869 |
# File 'docs/5_Battle_01_Scene.rb', line 1868 def initialize(, scene) end |
Instance Method Details
#create_animation_cloud(element, start_x, final_x, duration) ⇒ Yuki::Animation::TimedAnimation
create the animation for a cloud, this animation loops automatically, so it returns to start_x
1882 1883 |
# File 'docs/5_Battle_01_Scene.rb', line 1882 def create_animation_cloud(element, start_x, final_x, duration) end |
#create_animations
Create all the animations for the graphics element in an array of Yuki::Animation::TimedAnimation
1874 1875 |
# File 'docs/5_Battle_01_Scene.rb', line 1874 def create_animations end |
#create_graphics
Create all the graphic elements for the BattleBack
1871 1872 |
# File 'docs/5_Battle_01_Scene.rb', line 1871 def create_graphics end |
#resource_path
Return the path for the resources
1885 1886 |
# File 'docs/5_Battle_01_Scene.rb', line 1885 def resource_path end |