Jump to content

Undocumentated state method "resumed()"


JazzAceman
 Share

Recommended Posts

Hello, 

I'm new to Phaser and this forum. I am currently dealing with game state transitions and I was wondering because in the Phaser.State.prototype object is a method called "paused" wich get called when the game goes in pause mode. But there was no "awake" method, neither in the documentation nor in the implementation of the Phaser.State.prototype object. But than I saw that there is an "OnResumedCallback" property in Phaser.StateManager. Looking in the source code I saw that this property is setted by the framework to an method called "resumed" for the current active Game State. I've tried it out and and it worked: If I override the (non existing) Phaser.State.prototype.resumed() method, this method is called by the framework when the game returns to active mode. 

 

My question is: Is there a reason that this method is not implemented in the Phaser.State.prototype Object? Is it a deprecated method or can I use this method in that way? Thanks for your help!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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