mirror of
https://github.com/wassname/phaser.git
synced 2026-07-20 12:30:48 +08:00
Updated Loader component and fixed a few Pointer issues.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
(function () {
|
||||
var game = new Phaser.Game(this, 'game', 800, 600, init, create);
|
||||
function init() {
|
||||
game.loader.addImageFile('crystal', 'assets/pics/jim_sachs_time_crystal.png');
|
||||
game.loader.load();
|
||||
game.load.image('crystal', 'assets/pics/jim_sachs_time_crystal.png');
|
||||
game.load.start();
|
||||
}
|
||||
function create() {
|
||||
// This creates our ScrollZone. It is positioned at x0 y0 (world coodinates) by default and uses
|
||||
|
||||
Reference in New Issue
Block a user