I’m trying to add sprites from a sprite sheet but the assets won’t load. I’ve attached my code and the console logs below that show the error. I’ve also attached the file to show that my file location seems to be correct. I’m not sure what the issue is any help would be greatly appreciated.
Your paths look wrong from the screen shots. The files are in src/assets but preload is trying to get them from unknown folders. This is because you’re importing the assets and expecting those imported files to be able to be passed to the preload calls, but this won’t work. You need to remove the import statements and just give the proper url to the loader (i.e. assets/white.png etc)