|
@@ -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;
|