Fix assets path.

This commit is contained in:
Sean 2013-06-14 08:34:03 +08:00
parent 2f03f5fc43
commit 7b6beddc0c
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
(function () {
var game = new Phaser.Game(this, 'demo1', 320, 200, init, create, update);
function init() {
game.load.image('balls', '../assets/sprites/balls.png');
game.load.image('balls', 'assets/sprites/balls.png');
game.load.start();
}
var scroller;

View file

@ -7,7 +7,7 @@
function init() {
game.load.image('balls', '../assets/sprites/balls.png');
game.load.image('balls', 'assets/sprites/balls.png');
game.load.start();
}

View file

@ -3,7 +3,7 @@
var game = new Phaser.Game(this, 'game', 320, 200, init, create);
function init() {
// Using Phasers asset loader we load up a PNG from the assets folder
game.load.image('swirl', '../assets/pics/color_wheel_swirl.png');
game.load.image('swirl', 'assets/pics/color_wheel_swirl.png');
game.load.start();
}
var swirl;