phaser4-rex-plugins
Version:
7 lines (6 loc) • 317 B
JavaScript
import RoundRectangle from './RoundRectangle.js';
export default function (x, y, width, height, radiusConfig, fillColor, fillAlpha) {
var gameObject = new RoundRectangle(this.scene, x, y, width, height, radiusConfig, fillColor, fillAlpha);
this.scene.add.existing(gameObject);
return gameObject;
};