mirror of
https://github.com/wassname/phaser.git
synced 2026-08-02 13:00:25 +08:00
Set the default camera to direct itself to the Stage.
This commit is contained in:
@@ -31,8 +31,10 @@
|
||||
|
||||
function clickedIt() {
|
||||
if (this.image.visible == true) {
|
||||
game.stage.backgroundColor = '';
|
||||
this.image.visible = false;
|
||||
} else {
|
||||
game.stage.backgroundColor = 'rgb(0,0,0)';
|
||||
this.image.visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user