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
992 993 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 992 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
973 974 975 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 973 def disposed @disposed end |
#factor_x ⇒ Numeric
the factor that creates an automatic offset in x
979 980 981 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 979 def factor_x @factor_x end |
#factor_y ⇒ Numeric
the factor that creates an automatic offset in y
982 983 984 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 982 def factor_y @factor_y end |
#sprite ⇒ Sprite
The parallax sprite
976 977 978 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 976 def sprite @sprite end |
Instance Method Details
#dispose
Dispose the parallax
998 999 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 998 def dispose end |
#update
Update the parallax position
995 996 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 995 def update end |