From 5f46f1f975bd621fbca9c7e173de78e83ad70e3a Mon Sep 17 00:00:00 2001 From: tradam Date: Mon, 27 Sep 2021 08:39:23 -0400 Subject: partially complete fixing code, found a strange bug with ruby2d --- lib/ruby2d/camera/sprite.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/ruby2d/camera/sprite.rb') diff --git a/lib/ruby2d/camera/sprite.rb b/lib/ruby2d/camera/sprite.rb index d01a86f..da67d54 100644 --- a/lib/ruby2d/camera/sprite.rb +++ b/lib/ruby2d/camera/sprite.rb @@ -28,7 +28,6 @@ module Ruby2D temp_y += temp_width temp_width = -temp_width temp_height = -temp_height - puts 'both' when :horizontal temp_y += temp_width temp_height = -temp_height @@ -45,13 +44,13 @@ module Ruby2D def initialize(path, opts = {}) super(path, opts) - Ruby2D::Camera << self + Camera << self Window.remove(self) end def z=(z) super(z) - Ruby2D::Camera._sort_by_z + Camera._sort_by_z end def remove -- cgit v1.2.3