mirror of
https://github.com/wassname/phaser.git
synced 2026-08-07 11:26:10 +08:00
Updated Loader component and fixed a few Pointer issues.
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
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('grid', 'assets/tests/debug-grid-1920x1920.png');
|
||||
game.loader.addImageFile('atari1', 'assets/sprites/atari130xe.png');
|
||||
game.loader.addImageFile('atari2', 'assets/sprites/atari800xl.png');
|
||||
game.loader.load();
|
||||
game.load.image('grid', 'assets/tests/debug-grid-1920x1920.png');
|
||||
game.load.image('atari1', 'assets/sprites/atari130xe.png');
|
||||
game.load.image('atari2', 'assets/sprites/atari800xl.png');
|
||||
game.load.start();
|
||||
}
|
||||
var atari1;
|
||||
var atari2;
|
||||
|
||||
Reference in New Issue
Block a user