mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Updated Loader component and fixed a few Pointer issues.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
(function () {
|
||||
var game = new Phaser.Game(this, 'game', 800, 600, init, create);
|
||||
function init() {
|
||||
game.loader.addImageFile('atari1', 'assets/sprites/atari130xe.png');
|
||||
game.loader.addImageFile('atari2', 'assets/sprites/atari800xl.png');
|
||||
game.loader.load();
|
||||
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