Class: NuriYuri::DynamicLight::ScalableDLS
- Inherits:
-
DynamicLightSprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- DynamicLightSprite
- NuriYuri::DynamicLight::ScalableDLS
- Defined in:
- docs/4_Systems_951_DynamicLight.rb
Overview
Sprite that simulate the dynamic light and can be scaled
Constant Summary
Constants inherited from DynamicLightSprite
DynamicLightSprite::DIRECTION_OFFSET, DynamicLightSprite::NORMAL_OFFSET, DynamicLightSprite::TILE_ZOOM
Instance Attribute Summary
Attributes inherited from DynamicLightSprite
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
-
#initialize(character, light_type, animation_type = 0, zoom_count = 0, opacity_count = 0, init_scale = 1) ⇒ ScalableDLS
constructor
Create a new ScalableDynamicLightSprite.
-
#scale ⇒ Numeric
Retrieve the current scale of the sprite (without the animation effect).
-
#scale_to(target_scale, duration = 0)
Tell the sprite to scale.
-
#update
Update the sprite.
-
#zoom=(value)
Change the zoom of the sprite.
Methods inherited from DynamicLightSprite
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(character, light_type, animation_type = 0, zoom_count = 0, opacity_count = 0, init_scale = 1) ⇒ ScalableDLS
Create a new ScalableDynamicLightSprite
157 158 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 157 def initialize(character, light_type, animation_type = 0, zoom_count = 0, opacity_count = 0, init_scale = 1) end |
Instance Method Details
#scale ⇒ Numeric
Retrieve the current scale of the sprite (without the animation effect)
165 166 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 165 def scale end |
#scale_to(target_scale, duration = 0)
Tell the sprite to scale
173 174 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 173 def scale_to(target_scale, duration = 0) end |
#update
Update the sprite
168 169 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 168 def update end |
#zoom=(value)
Change the zoom of the sprite
161 162 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 161 def zoom=(value) end |