lib/ruby2d/camera/quad.rb in ruby2d-camera-1.1.0 vs lib/ruby2d/camera/quad.rb in ruby2d-camera-1.1.1

- old
+ new

@@ -47,17 +47,22 @@ def add @hide = false end # Methods for moving the shape + attr_writer :x, :y + def x @x ||= 0 end - attr_writer :x, :y - def y @y ||= 0 + end + + def z=(z) + super(z) + Ruby2D::Camera._sort_by_z end end end end