UNPKG

@petkoneo/phaser3-rex-plugins

Version:
7 lines (6 loc) 239 B
import ImageBox from './ImageBox.js'; export default function (x, y, texture, frame, config) { var gameObject = new ImageBox(this.scene, x, y, texture, frame, config); this.scene.add.existing(gameObject); return gameObject; };