mirror of
https://github.com/wassname/phaser.git
synced 2026-07-18 12:30:44 +08:00
Updated Loader component and fixed a few Pointer issues.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
var game = new Phaser.Game(this, 'game', 800, 600, init, create, null, render);
|
||||
function init() {
|
||||
// Using Phasers asset loader we load up a PNG from the assets folder
|
||||
game.loader.addImageFile('sprite', 'assets/sprites/parsec.png');
|
||||
game.loader.load();
|
||||
game.load.image('sprite', 'assets/sprites/parsec.png');
|
||||
game.load.start();
|
||||
}
|
||||
var sprite;
|
||||
function create() {
|
||||
|
||||
Reference in New Issue
Block a user