draw tiled only by X
This commit is contained in:
parent
8ea015eee0
commit
1e50ed7a48
@ -132,6 +132,9 @@ export class TiledSprite extends Sprite {
|
||||
case 'y':
|
||||
context.drawImage(this.image(), this.x, this.y - this.image().height * iy);
|
||||
break;
|
||||
case 'x':
|
||||
context.drawImage(this.image(), this.x - this.image().width * ix, this.y);
|
||||
break;
|
||||
case null:
|
||||
default:
|
||||
context.drawImage(
|
||||
@ -163,6 +166,9 @@ export class TiledSprite extends Sprite {
|
||||
case 'y':
|
||||
context.drawImage(this.image(), this.x, this.y + this.image().height * iy);
|
||||
break;
|
||||
case 'x':
|
||||
context.drawImage(this.image(), this.x + this.image().width * ix, this.y);
|
||||
break;
|
||||
case null:
|
||||
default:
|
||||
context.drawImage(
|
||||
|
Loading…
Reference in New Issue
Block a user