Class: NuriYuri::DynamicLight::DynamicLightSprite
- Inherits:
-
Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- NuriYuri::DynamicLight::DynamicLightSprite
- Defined in:
- docs/4_Systems_951_DynamicLight.rb
Overview
Sprite that simulate the dynamic light
Direct Known Subclasses
Constant Summary collapse
- DIRECTION_OFFSET =
Offset of the light in :direction mode
-12 # Offset of the light in other modes
- NORMAL_OFFSET =
Offset of the light in other modes
-8 # Zoom of a tile to process coodinate properly
- TILE_ZOOM =
Zoom of a tile to process coodinate properly
Configs.display.tilemap_settings.character_tile_zoom
Instance Attribute Summary collapse
-
#light_id ⇒ Integer
ID of the light in the stack.
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
-
#dispose
Dispose the sprite.
-
#initialize(character, light_type, animation_type = 0, zoom_count = 0, opacity_count = 0) ⇒ DynamicLightSprite
constructor
Create a new DynamicLightSprite.
-
#update
Update the sprite.
-
#visible=(value)
(also: #on=)
Change the sprite visibility.
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) ⇒ DynamicLightSprite
Create a new DynamicLightSprite
118 119 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 118 def initialize(character, light_type, animation_type = 0, zoom_count = 0, opacity_count = 0) end |
Instance Attribute Details
#light_id ⇒ Integer
Returns ID of the light in the stack.
111 112 113 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 111 def light_id @light_id end |
Instance Method Details
#dispose
Dispose the sprite
129 130 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 129 def dispose end |
#update
Update the sprite
121 122 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 121 def update end |
#visible=(value) Also known as: on=
Change the sprite visibility
126 127 |
# File 'docs/4_Systems_951_DynamicLight.rb', line 126 def visible=(value) end |