Skip to content

phaser object variable name #33

@LorenzoBoccaccia

Description

@LorenzoBoccaccia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions