phaser/examples/wip/prerend.js

17 lines
307 B
JavaScript
Raw Normal View History

2013-10-31 05:31:54 +00:00
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');
}