Sprite is not loaded into the game
I wrote the following code in the preload function: game.load.image (‘myimage’, ‘assets/1.png’); The way is right
Browser writes a mistake

Project: download
“Project\client\main.js:274”
I see you are using expressjs and the assets folder is not served directly.
Add app.use('/assets', express.static(__dirname + '/client/assets')); to app.js
or change all /assets to client/assets in loader functions
1 Like