mirror of
https://github.com/wassname/phaser.git
synced 2026-09-11 12:31:29 +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('starray', 'assets/pics/auto_scroll_landscape.png');
|
||||
game.loader.load();
|
||||
game.load.image('starray', 'assets/pics/auto_scroll_landscape.png');
|
||||
game.load.start();
|
||||
}
|
||||
function create() {
|
||||
var zone = game.add.scrollZone('starray');
|
||||
|
||||
Reference in New Issue
Block a user