UNPKG

@petkoneo/phaser3-rex-plugins

Version:
7 lines (6 loc) 253 B
import Quad from './Quad.js'; export default function (x, y, width, height, fillColor, fillAlpha) { var gameObject = new Quad(this.scene, x, y, width, height, fillColor, fillAlpha); this.scene.add.existing(gameObject); return gameObject; };