lib/gamebox/core/renderer.rb
# move all actors from one layer to another
# note, this will remove all actors in that layer!
move all actors from one layer to another
note, this will remove all actors in that layer!
move all actors from one layer to another note this will remove all actors in that layer!
def move_layer(from_parallax, from_layer, to_parallax, to_layer)
    drawable_list = @drawables[from_parallax][from_layer].dup
    drawable_list.each do |drawable|
      unregister_drawable drawable      
      drawable.parallax = to_parallax
      drawable.layer = to_layer
      register_drawable drawable      
    end
  end
def move_layer ( from_parallax , from_layer , to_parallax , to_layer ) drawable_list = @drawables [ from_parallax ] [ from_layer ] . dup drawable_list . each do | drawable | unregister_drawable drawable drawable . parallax = to_parallax drawable . layer = to_layer register_drawable drawable end end
move all actors from one layer to another
note, this will remove all actors in that layer!
move all actors from one layer to another note this will remove all actors in that layer!
from_parallax
<not_specific>
from_layer
<not_specific>
to_parallax
<not_specific>
to_layer
<not_specific>