samples/05_mouse/02_mouse_move/app/main.rb
def render_zombies
    outputs.sprites << state.zombies.map do |z| # performs action on all zombies in the collection
      z.sprite = [z.x, z.y, 4 * 3, 8 * 3, animation_sprite(z)].sprite # sets definition for sprite, calls animation_sprite method
      z.sprite
    end
  end
# Outputs the zombies on the screen and sets values for the sprites, such as the position, width, height, and animation.
Outputs the zombies on the screen and sets values for the sprites, such as the position, width, height, and animation.
Outputs the zombies on the screen and sets values for the sprites such as the position width height and animation .
def render_zombies
    outputs.sprites << state.zombies.map do |z| 
      z.sprite = [z.x, z.y, 4 * 3, 8 * 3, animation_sprite(z)].sprite 
      z.sprite
    end
  end
def render_zombies outputs . sprites << state . zombies . map do | z | z . sprite = [ z . x , z . y , 4 * 3 , 8 * 3 , animation_sprite ( z ) ] . sprite z . sprite end end
Outputs the zombies on the screen and sets values for the sprites, such as the position, width, height, and animation.
Outputs the zombies on the screen and sets values for the sprites such as the position width height and animation .
# performs action on all zombies in the collection # sets definition for sprite, calls animation_sprite method