MRK Posted April 10, 2016 Share Posted April 10, 2016 Hi , http://mizannet38-001-site1.btempurl.com/ A game I am working on. Runs fine but canvas stops redrawing intermittently. Hope someone could help. If you require further information pls reply. Quote Link to comment Share on other sites More sharing options...
mattstyles Posted April 11, 2016 Share Posted April 11, 2016 Didnt work for me at all in Chrome, might want to mention that you only have touch handlers and not click ones. Using emulation via Chrome I couldnt get the canvas to not redraw, all went fine in that respect. I did run into a couple of errors though: 1) It tried telling me Benteke played for Bradford at one point, leading to game over, not sure what that was about, did some of the elements maybe render in incorrect positions? 2) The following error nuked the whole thing: NewGame2.js:1967 Uncaught InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state. You have quite a few globals in your code, I can't replicate the error (the not redrawing thing), but it's possible that it is redrawing but that your game is just in an incorrect state. Of course, any error in the console, like the one above, is killing the JS thread so your game will stop running, and hence stop redrawing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.