Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Green square on game canvas using Phaser

Can someone please tell me why I'm getting a green square on my Phaser game canvas as below?

Green Square

like image 811
Richard Ansell Avatar asked Nov 07 '25 00:11

Richard Ansell


1 Answers

Without seeing any code I can tell you that you'll see that when an image can't be loaded by the Phaser framework.

Open developer tools in your browser of choice and refresh after opening the Network tab. You should see a 404 for one of your images.

I believe if you look at the standard browser console you may also see messages about the name of the asset that it failed to load.

like image 114
James Skemp Avatar answered Nov 12 '25 15:11

James Skemp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!