Class: Yuki::Parallax_Object
Overview
Object that describe a parallax as a particle
Instance Attribute Summary collapse
-
#disposed ⇒ Boolean
(also: #disposed?)
readonly
If the parallax is disposed.
-
#factor_x ⇒ Numeric
the factor that creates an automatic offset in x.
-
#factor_y ⇒ Numeric
the factor that creates an automatic offset in y.
-
#sprite ⇒ Sprite
The parallax sprite.
Instance Method Summary collapse
-
#dispose
Dispose the parallax.
-
#initialize(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) ⇒ Parallax_Object
constructor
Creates a new Parallax_Object.
-
#update
Update the parallax position.
Constructor Details
#initialize(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) ⇒ Parallax_Object
Creates a new Parallax_Object
1160 1161 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1160 def initialize(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) end |
Instance Attribute Details
#disposed ⇒ Boolean (readonly) Also known as: disposed?
If the parallax is disposed
1141 1142 1143 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1141 def disposed @disposed end |
#factor_x ⇒ Numeric
the factor that creates an automatic offset in x
1147 1148 1149 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1147 def factor_x @factor_x end |
#factor_y ⇒ Numeric
the factor that creates an automatic offset in y
1150 1151 1152 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1150 def factor_y @factor_y end |
#sprite ⇒ Sprite
The parallax sprite
1144 1145 1146 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1144 def sprite @sprite end |
Instance Method Details
#dispose
Dispose the parallax
1166 1167 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1166 def dispose end |
#update
Update the parallax position
1163 1164 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1163 def update end |