mirror of
https://github.com/wassname/phaser.git
synced 2026-06-29 16:30:29 +08:00
Fix assets path.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user