mirror of
https://github.com/photonstorm/phaser
synced 2024-12-05 02:50:55 +00:00
16 lines
307 B
JavaScript
16 lines
307 B
JavaScript
|
|
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');
|
|
|
|
}
|