Method: MiniGL::Particles#draw
- Defined in:
- lib/minigl/particles.rb
#draw(map = nil, z_index = 0) ⇒ Object
Draws the particles. Parameters:
-
map (Map|nil): a map whose camera will be used to determine the position of particles in the screen.
-
z_index (Integer): z-index to draw the particles. Default: 0.
149 150 151 152 153 |
# File 'lib/minigl/particles.rb', line 149 def draw(map = nil, z_index = 0) @particles.each do |particle| particle.draw(map, z_index) end end |