UNPKG

phaser4-rex-plugins

Version:
14 lines (12 loc) 372 B
const DynamicTexture = Phaser.Textures.DynamicTexture; var CreateDynamicTexture = function (scene, width, height) { if (width === undefined) { width = 2; } if (height === undefined) { height = 2; } var dt = new DynamicTexture(scene.sys.textures, null, width, height); return dt; } export default CreateDynamicTexture;