As suggested here I just added the plugin inside my vendors bundle and added it in my game using the preload function (src/states/Boot.js) but I get an unexpected result :
Slick-Ui add itselft to Phaser's plugins global object :
Phaser.Plugin.SlickUI // I can reach this one
It need Phaser.Plugin.prototype to properly initiate the plugin (before using it in game)
Any help welcome, Im stuck with this issue since a few days..
Hello,
I try to use some Phaser plugins but nothing works for me.
My first attempt was with Slick-UI.
As suggested here I just added the plugin inside my vendors bundle and added it in my game using the preload function (src/states/Boot.js) but I get an unexpected result :
webpack.config.js :
src/index.html :
src/states/Boot.js :
src/states/Boot.js :
In the plugin demo (here) the plugin object looks like this (Plugin added to the game):
But in my case I get a different object (Plugin added to the game):
Slick-Ui add itselft to Phaser's plugins global object : Phaser.Plugin.SlickUI // I can reach this one It need Phaser.Plugin.prototype to properly initiate the plugin (before using it in game)
Any help welcome, Im stuck with this issue since a few days..