Method: Core::Particles#initialize

Defined in:
lib/particles.rb

#initialize(str, x = 0, y = 0) ⇒ Particles

Returns a new instance of Particles.



13
14
15
16
# File 'lib/particles.rb', line 13

def initialize(str, x=0, y=0)
  @emitter = Core.particles[str].dup
  @emitter.x, @emitter.y = x, y
end