Jump to content

Canvas stops redrawing


MRK
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...