Skip to content

Commit 4c1413e

Browse files
committed
fixed the responsive example - spriteMiddle was not defined and using game instead of this.game was breaking the entire example
1 parent 1438248 commit 4c1413e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

resources/Project Templates/Responsive/MainMenu.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ BasicGame.MainMenu.prototype = {
1717

1818
this.spriteTopLeft = this.add.sprite(0, 0, 'tetris3');
1919

20-
this.spriteTopRight = this.add.sprite(game.width, 0, 'tetris1');
20+
this.spriteTopRight = this.add.sprite(this.game.width, 0, 'tetris1');
2121
this.spriteTopRight.anchor.set(1, 0);
2222

23-
this.spriteBottomLeft = this.add.sprite(0, game.height, 'tetris2');
23+
this.spriteBottomLeft = this.add.sprite(0, this.game.height, 'tetris2');
2424
this.spriteBottomLeft.anchor.set(0, 1);
2525

26-
this.spriteBottomRight = this.add.sprite(game.width, game.height, 'tetris3');
26+
this.spriteBottomRight = this.add.sprite(this.game.width, this.game.height, 'tetris3');
2727
this.spriteBottomRight.anchor.set(1, 1);
2828

29+
this.spriteMiddle = this.add.sprite(0, 0, 'hotdog');
30+
2931
},
3032

3133
update: function () {

0 commit comments

Comments
 (0)