mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Fix assets path.
This commit is contained in:
parent
2f03f5fc43
commit
7b6beddc0c
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue