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