modnar
1
I recently changed the structure of my project, and for some reason Phaser can’t find my images any more.
New structure:
the images are there
One of my scenes:
preload() {
this.load.image("blueTile", "client/src/phaser/assets/blueTile2.png");
};
I get the error:
anyone know why?
thanks in advance
This worked for me
Just add ‘./’ at beginning of the image source
preload() {
this.load.image("blueTile", "./client/src/phaser/assets/blueTile2.png");
};
samme
3
What’s the URL in the browser address bar?
And what’s the full URL of the “not found” asset?
modnar
4
@samme
URL in the browser: http://localhost:8080/game
URL of asset: http://localhost:8080/client/src/phaser/assets/blueTile2.png
modnar
5
Didn’t work sadly. same error
samme
6
What do you see if you open http://localhost:8080/client/src/phaser/assets/blueTile2.png
directly in the browser?
modnar
8