Class: BattleUI::Battleback3D

Direct Known Subclasses

BattleBackGrass

Constant Summary collapse

MARGIN_X =
64
MARGIN_Y =
68

Instance Attribute Summary collapse

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 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

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, scene) ⇒ Battleback3D

Create a new BattleBack3D

Parameters:



1744
1745
# File 'docs/5_Battle_01_Scene.rb', line 1744

def initialize(viewport, scene)
end

Instance Attribute Details

#sceneBattle::Scene (readonly)

Get the scene linked to this object

Returns:



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

Parameters:

  • x (Numeric)
  • y (Numeric)
  • z (Numeric) (defaults to: 1)

    z position of the sprite (1 is most likely at scale, 2 is smaller and 0 is illegal)

Returns:

  • (self)


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

Parameters:

  • z (Numeric)


1755
1756
# File 'docs/5_Battle_01_Scene.rb', line 1755

def z=(z)
end