UNPKG

@petkoneo/phaser3-rex-plugins

Version:
11 lines (8 loc) 317 B
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;