mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Group now extends PIXI.DisplayObjectContainer, rather than owning a _container property, which makes life a whole lot easier re: nesting.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create });
|
||||
|
||||
function preload() {
|
||||
|
||||
game.load.image('test', 'assets/pics/nanoha_taiken_blue.png');
|
||||
|
||||
}
|
||||
|
||||
function create() {
|
||||
|
||||
game.stage.backgroundColor = 'rgba(0,0,0,0.3)';
|
||||
|
||||
game.add.sprite(0, 0, 'test');
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user