mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
fixed the responsive example - spriteMiddle was not defined and using game instead of this.game was breaking the entire example
This commit is contained in:
parent
1438248388
commit
4c1413e9dd
1 changed files with 5 additions and 3 deletions
|
@ -17,15 +17,17 @@ BasicGame.MainMenu.prototype = {
|
|||
|
||||
this.spriteTopLeft = this.add.sprite(0, 0, 'tetris3');
|
||||
|
||||
this.spriteTopRight = this.add.sprite(game.width, 0, 'tetris1');
|
||||
this.spriteTopRight = this.add.sprite(this.game.width, 0, 'tetris1');
|
||||
this.spriteTopRight.anchor.set(1, 0);
|
||||
|
||||
this.spriteBottomLeft = this.add.sprite(0, game.height, 'tetris2');
|
||||
this.spriteBottomLeft = this.add.sprite(0, this.game.height, 'tetris2');
|
||||
this.spriteBottomLeft.anchor.set(0, 1);
|
||||
|
||||
this.spriteBottomRight = this.add.sprite(game.width, game.height, 'tetris3');
|
||||
this.spriteBottomRight = this.add.sprite(this.game.width, this.game.height, 'tetris3');
|
||||
this.spriteBottomRight.anchor.set(1, 1);
|
||||
|
||||
this.spriteMiddle = this.add.sprite(0, 0, 'hotdog');
|
||||
|
||||
},
|
||||
|
||||
update: function () {
|
||||
|
|
Loading…
Reference in a new issue