mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +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);
|
||||
function init() {
|
||||
// Using Phasers asset loader we load up a PNG from the assets folder
|
||||
game.loader.addImageFile('sonic', 'assets/sprites/sonic_havok_sanity.png');
|
||||
game.loader.load();
|
||||
game.load.image('sonic', 'assets/sprites/sonic_havok_sanity.png');
|
||||
game.load.start();
|
||||
}
|
||||
var firstGroup;
|
||||
function create() {
|
||||
|
||||
Reference in New Issue
Block a user