UNPKG

@petkoneo/phaser3-rex-plugins

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