Class: Core::Particles
Instance Method Summary collapse
- #draw(xoff = 0, yoff = 0) ⇒ Object
- #gravity=(g) ⇒ Object
-
#initialize(str, x = 0, y = 0) ⇒ Particles
constructor
A new instance of Particles.
- #update ⇒ Object
- #wind=(w) ⇒ Object
- #x=(x) ⇒ Object
- #y=(y) ⇒ Object
Constructor Details
Instance Method Details
#draw(xoff = 0, yoff = 0) ⇒ Object
32 33 34 |
# File 'lib/particles.rb', line 32 def draw(xoff=0, yoff=0) @emitter.draw(xoff, yoff) end |
#gravity=(g) ⇒ Object
26 27 28 |
# File 'lib/particles.rb', line 26 def gravity=(g) @emitter.gravity = g end |
#update ⇒ Object
29 30 31 |
# File 'lib/particles.rb', line 29 def update @emitter.update end |
#wind=(w) ⇒ Object
23 24 25 |
# File 'lib/particles.rb', line 23 def wind=(w) @emitter.wind = w end |
#x=(x) ⇒ Object
17 18 19 |
# File 'lib/particles.rb', line 17 def x=(x) @emitter.x = x end |
#y=(y) ⇒ Object
20 21 22 |
# File 'lib/particles.rb', line 20 def y=(y) @emitter.y = y end |