slick-ui icon indicating copy to clipboard operation
slick-ui copied to clipboard

phaser object variable name

Open LorenzoBoccaccia opened this issue 7 years ago • 0 comments

it appears if you don't spell the phaser object exactly as game and make it global, slick fails to create some components

ReferenceError: game is not defined
    at SlickUI.Element.Slider.init (slick-ui.min.js:1)
    at SlickUI.Container.Container.add (slick-ui.min.js:1)
    at SlickUI.Element.Panel.add (slick-ui.min.js:1)
    at Object.create (game.js:22)

line is this.displayGroup=game.add.group();

LorenzoBoccaccia avatar Aug 09 '18 20:08 LorenzoBoccaccia