Jump to content

How to send parameters when starting a state


zbzzn
 Share

Recommended Posts

the state manager holds a reference to the game in the property StateManager.game. In addition to that, you should have a globally accessible variable for the game object, depending what you named it when you called new Phaser.game() to load/create the game. 

 

I'd store any persistent data inside the main game object itself. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...