lib/ruby2d/camera/sprite.rb in ruby2d-camera-1.1.0 vs lib/ruby2d/camera/sprite.rb in ruby2d-camera-1.1.1
- old
+ new
@@ -47,9 +47,14 @@
super(path, opts)
Ruby2D::Camera << self
Window.remove(self)
end
+ def z=(z)
+ super(z)
+ Ruby2D::Camera._sort_by_z
+ end
+
def remove
@hide = true
end
def add