bstouls 8 vuotta sitten
vanhempi
commit
47039145b2
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      h2d/Graphics.hx

+ 2 - 0
h2d/Graphics.hx

@@ -369,6 +369,8 @@ class Graphics extends Drawable {
 			throw "Tile not specified";
 			throw "Tile not specified";
 		if( scaleX == null ) scaleX = 1;
 		if( scaleX == null ) scaleX = 1;
 		if( scaleY == null ) scaleY = 1;
 		if( scaleY == null ) scaleY = 1;
+		dx -= tile.x;
+		dy -= tile.y;
 
 
 		var tex = tile.getTexture();
 		var tex = tile.getTexture();
 		var pixWidth = 1 / tex.width;
 		var pixWidth = 1 / tex.width;