Flaxis / slick-ui

Lightweight Phaser UI plugin
http://slick-ui.com/
190 stars 25 forks source link

phaser object variable name #33

Open LorenzoBoccaccia opened 6 years ago

LorenzoBoccaccia commented 6 years ago

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();