phaser3-rex-plugins-fix-chun
Version:
11 lines (8 loc) • 327 B
JavaScript
import GetStampGameObject from './GetStampGameObject.js';
var DrawTileSprite = function (key, frame, x, y, width, height) {
var gameObject = GetStampGameObject(this, 'TileSprite')
.setTexture(key, frame)
.setSize(width, height);
this.draw(gameObject, x, y);
}
export default DrawTileSprite;