From ccf54babbca209c4d239f0249f79a890d3ef51ca Mon Sep 17 00:00:00 2001 From: jiannibang Date: Wed, 25 Nov 2020 10:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80phaser=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phaser/game-ballmove/game.js | 1 + phaser/game-flipbird/game.js | 1 + phaser/game-rect/game.js | 1 + phaser/match3/game.js | 1 + phaser/slidingPuzzle/index.js | 1 + 5 files changed, 5 insertions(+) diff --git a/phaser/game-ballmove/game.js b/phaser/game-ballmove/game.js index d64c401..91d4f43 100644 --- a/phaser/game-ballmove/game.js +++ b/phaser/game-ballmove/game.js @@ -10,6 +10,7 @@ function launch({ containerId, onLose }) { width, height, parent: containerId, + backgroundColor: 0xbbada0, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, diff --git a/phaser/game-flipbird/game.js b/phaser/game-flipbird/game.js index 943f21b..e314a32 100644 --- a/phaser/game-flipbird/game.js +++ b/phaser/game-flipbird/game.js @@ -10,6 +10,7 @@ function launch({ containerId, onLose }) { width, height, parent: containerId, + backgroundColor: 0xbbada0, physics: { default: "arcade", arcade: { diff --git a/phaser/game-rect/game.js b/phaser/game-rect/game.js index dee76cc..acac791 100644 --- a/phaser/game-rect/game.js +++ b/phaser/game-rect/game.js @@ -11,6 +11,7 @@ function launch({ containerId, onLose }) { width, height, parent: containerId, + backgroundColor: 0xbbada0, physics: { default: "arcade", arcade: { diff --git a/phaser/match3/game.js b/phaser/match3/game.js index 4a5ce92..fc984ac 100644 --- a/phaser/match3/game.js +++ b/phaser/match3/game.js @@ -10,6 +10,7 @@ function launch({ containerId, onLose }) { width, height, parent: containerId, + backgroundColor: 0xbbada0, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, diff --git a/phaser/slidingPuzzle/index.js b/phaser/slidingPuzzle/index.js index 65e9c87..c0f3725 100644 --- a/phaser/slidingPuzzle/index.js +++ b/phaser/slidingPuzzle/index.js @@ -226,6 +226,7 @@ export default class Game extends Phaser.Game { width: containerWH, height: containerWH, parent: containerId, + backgroundColor: 0xbbada0, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH,