You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading the code to my web server for live editing and experimenting, I notice that it doesn't load at all in chrome, it simply crashes the page but in firefox and safari it works fine.
Wondering if this has been fixed or someone knows how to put it right.
Now I've looked into it, it seems that chrome (latest version) isn't running the scrolling background function, and not loading the rest in the process.
The image width and height values in the Background function are what the issue is. The easiest fix is just to put in the actual background size of the image you are using. Chrome will not detect the image attributes and this is what is causing the error. I tried using an onload function to no avail, so I just hard coded in the size of the background. It will work after doing this. If you are using the background provided just put 400 and 400:
while (x < W) {
var y = 0;
while (y < H) {
c.drawImage(this.image, x, y, 400, 400);
y += 400;
}
x += 400;
}
When uploading the code to my web server for live editing and experimenting, I notice that it doesn't load at all in chrome, it simply crashes the page but in firefox and safari it works fine.
Wondering if this has been fixed or someone knows how to put it right.
http://rhyspacker.com/gamedemo/lim.html
Thanks,
Rhys.
The text was updated successfully, but these errors were encountered: