UNPKG

@petkoneo/phaser3-rex-plugins

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