Skip to content

Commit 6e92ff6

Browse files
authored
Merge pull request phaserjs#3331 from rblopes/pass-game-instance-in-boot-callback-arguments
Pass game instance as boot callback arguments
2 parents bfabe35 + 61fbbda commit 6e92ff6

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/boot/Game.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var Game = new Class({
5050
{
5151
/**
5252
* The parsed Game Configuration object.
53-
*
53+
*
5454
* The values stored within this object are read-only and should not be changed at run-time.
5555
*
5656
* @name Phaser.Game#config
@@ -118,7 +118,7 @@ var Game = new Class({
118118

119119
/**
120120
* An instance of the Animation Manager.
121-
*
121+
*
122122
* The Animation Manager is a global system responsible for managing all animations used within your game.
123123
*
124124
* @name Phaser.Game#anims
@@ -129,7 +129,7 @@ var Game = new Class({
129129

130130
/**
131131
* An instance of the Texture Manager.
132-
*
132+
*
133133
* The Texture Manager is a global system responsible for managing all textures being used by your game.
134134
*
135135
* @name Phaser.Game#textures
@@ -140,7 +140,7 @@ var Game = new Class({
140140

141141
/**
142142
* An instance of the Cache Manager.
143-
*
143+
*
144144
* The Cache Manager is a global system responsible for caching, accessing and releasing external game assets.
145145
*
146146
* @name Phaser.Game#cache
@@ -160,7 +160,7 @@ var Game = new Class({
160160

161161
/**
162162
* An instance of the Input Manager.
163-
*
163+
*
164164
* The Input Manager is a global system responsible for the capture of browser-level input events.
165165
*
166166
* @name Phaser.Game#input
@@ -171,7 +171,7 @@ var Game = new Class({
171171

172172
/**
173173
* An instance of the Scene Manager.
174-
*
174+
*
175175
* The Scene Manager is a global system responsible for creating, modifying and updating the Scenes in your game.
176176
*
177177
* @name Phaser.Game#scene
@@ -265,7 +265,7 @@ var Game = new Class({
265265
{
266266
this.isBooted = true;
267267

268-
this.config.preBoot();
268+
this.config.preBoot(this);
269269

270270
CreateRenderer(this);
271271

@@ -292,7 +292,7 @@ var Game = new Class({
292292
{
293293
this.isRunning = true;
294294

295-
this.config.postBoot();
295+
this.config.postBoot(this);
296296

297297
if (this.renderer)
298298
{
@@ -379,7 +379,7 @@ var Game = new Class({
379379

380380
/**
381381
* A special version of the Game Step for the HEADLESS renderer only.
382-
*
382+
*
383383
* The main Game Step. Called automatically by the Time Step, once per browser frame (typically as a result of
384384
* Request Animation Frame, or Set Timeout on very old browsers.)
385385
*
@@ -504,7 +504,7 @@ var Game = new Class({
504504
*
505505
* @method Phaser.Game#resize
506506
* @since 3.2.0
507-
*
507+
*
508508
* @param {number} width - The new width of the game.
509509
* @param {number} height - The new height of the game.
510510
*/

0 commit comments

Comments
 (0)