bstouls 8 tahun lalu
induk
melakukan
47039145b2
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      h2d/Graphics.hx

+ 2 - 0
h2d/Graphics.hx

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