We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 269af69 commit ef610c7Copy full SHA for ef610c7
1 file changed
src/core/State.js
@@ -102,6 +102,16 @@ Phaser.State = function () {
102
103
Phaser.State.prototype = {
104
105
+ /**
106
+ * init is the very first function called when your State starts up. It's called before preload, create or anything else.
107
+ * If you need to route the game away to another State you could do so here, or if you need to prepare a set of variables
108
+ * or objects before the preloading starts.
109
+ *
110
+ * @method Phaser.State#init
111
+ */
112
+ init: function () {
113
+ },
114
+
115
/**
116
* preload is called first. Normally you'd use this to load your game assets (or those needed for the current State)
117
* You shouldn't create any objects in this method that require assets that you're also loading in this method, as
0 commit comments