mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +08:00
You can now set the Stage.backgroundColor using either hex or numeric values.
This commit is contained in:
@@ -9,6 +9,9 @@ function preload() {
|
||||
|
||||
function create() {
|
||||
|
||||
// game.stage.backgroundColor = '#239923';
|
||||
game.stage.backgroundColor = 0xff8855;
|
||||
|
||||
var mummy = game.add.sprite(300, 200, 'mummy', 5);
|
||||
|
||||
mummy.animations.add('walk');
|
||||
|
||||
Reference in New Issue
Block a user