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