LearningPhaser9 Posted August 10, 2015 Share Posted August 10, 2015 Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at file:///Users/me/Desktop/Phaser_practice/assets/nightsky.png may not be loaded. So I wanted to open my game again then, My game went all black. So I decided to check the console and that shows up. I refreshed multiple times and nothing happens.Why is this happening? Link to comment Share on other sites More sharing options...
tips4design Posted August 10, 2015 Share Posted August 10, 2015 You must use a web server: http://phaser.io/tutorials/getting-started/index Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 10, 2015 Share Posted August 10, 2015 or Use only CANVAS Regards, Nicholls Link to comment Share on other sites More sharing options...
tips4design Posted August 10, 2015 Share Posted August 10, 2015 or Use only CANVAS Regards, NichollsWell, I guess canvas won't work in chrome unless you do this: http://www.chrome-allow-file-access-from-file.com/ Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 10, 2015 Share Posted August 10, 2015 There are some things that don't work without server and without doing that, but I created some games that running perfectly without web server using only CANVAS (not WebGL). PD: Sorry for my bad english Regards Link to comment Share on other sites More sharing options...
Recommended Posts