mirror of
https://github.com/wassname/phaser.git
synced 2026-07-22 12:50:19 +08:00
Updated Loader component and fixed a few Pointer issues.
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
var game = new Phaser.Game(this, 'game', 800, 600, init, create, update, render);
|
||||
function init() {
|
||||
game.world.setSize(1920, 1200, true);
|
||||
game.loader.addImageFile('backdrop', 'assets/pics/remember-me.jpg');
|
||||
game.loader.addImageFile('melon', 'assets/sprites/melon.png');
|
||||
game.loader.load();
|
||||
game.load.image('backdrop', 'assets/pics/remember-me.jpg');
|
||||
game.load.image('melon', 'assets/sprites/melon.png');
|
||||
game.load.start();
|
||||
}
|
||||
function create() {
|
||||
game.add.sprite(0, 0, 'backdrop');
|
||||
|
||||
Reference in New Issue
Block a user