Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phaser object variable name #33

Open
LorenzoBoccaccia opened this issue Aug 9, 2018 · 0 comments
Open

phaser object variable name #33

LorenzoBoccaccia opened this issue Aug 9, 2018 · 0 comments

Comments

@LorenzoBoccaccia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant