I can't load images to my project

Hello, I can’t load images!
Please, help me. I don’t know what’s the problem.
I use nodeJS, My files path is true, here some screen shoot from my project:
load





Hey there,

  1. You only need “phaser.js” OR “phaser.min.js”. I suggest you use “phaser.min.js”.

  2. If you’re working on a local machine with “http://localhost” you should not use “//cdn…”. Just use the real absolute url for phaser, starting with “https://cdn…”. Otherwise it will redirect needlessly.

Apart from these two points everything is working fine on my local machine with your code. How do you access your phaser game in the browser?

Look at the console screenshot where it says “sky.png status 304”. This seems rather odd because with the same code my image always has a normal 200 status code. Maybe try another image.

How are you accessing the index.html file - what webserver are you using? Did you follow this step Getting Started with Phaser 3: Part 2 - Installing a web server - Learn - Phaser