renegadecitizen Posted March 17, 2016 Share Posted March 17, 2016 this is my main.js http://take.ms/Xr8S2 and this is my index.html http://take.ms/nNTHM why can i load images in safari and not chrome? what am i doing wrong? the syntax looks correct, is it a setting in chrome? chrome has this error in the console Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at file:///Users/robmccrady/Desktop/Test%20Projects/JavaScript/Farm%20Animal/assets/images/background.png may not be loaded. im using phasor 2.4.6 Link to comment Share on other sites More sharing options...
rich Posted March 18, 2016 Share Posted March 18, 2016 By the look of the error you're trying to open your web page by dragging it into your browser, and not actually serving it via a web server or some kind. This is why it doesn't work. Part 1 of the Getting Started guide covers this in detail: http://phaser.io/tutorials/getting-started Link to comment Share on other sites More sharing options...
renegadecitizen Posted March 18, 2016 Author Share Posted March 18, 2016 thanks very much, i got it working thanks Link to comment Share on other sites More sharing options...
Recommended Posts