var config = {
type: Phaser.AUTO,
parent: 'phaser-example',
width: 800,
height: 600,
scene: {
preload: preload,
create: create
},
// Open the Dev Tools and notice how there is no banner printed
// when the game loads. Change this value to 'true' to see the
// default banner.
banner: false
};
var game = new Phaser.Game(config);
function preload ()
{
this.load.image('pic', 'assets/pics/baal-loader.png');
}
function create ()
{
this.add.image(400, 300, 'pic');
}
var config = {
type: Phaser.AUTO,
parent: 'phaser-example',
width: 800,
height: 600,
scene: {
preload: preload,
create: create
},
// Open the Dev Tools and notice how there is no banner printed
// when the game loads. Change this value to 'true' to see the
// default banner.
banner: false
};
var game = new Phaser.Game(config);
function preload ()
{
this.load.image('pic', 'assets/pics/baal-loader.png');
}
function create ()
{
this.add.image(400, 300, 'pic');
}