javascript - Web Game has many errors: does this matter? -
recently finished (or finished) coding core concept of web game i'm still working on. however, when run code in chrome (the game meant webkit browsers only), lot of errors. but, not affect code trying achieve. code written in javascript/html/css.
to more detail, code part of "battle" sequence , looped each turn. each loop produces hundreds of errors (i assume can produce 1000's each loop), each successive loop producing more errors previous one. depending on number of turns battle takes, page may spitting out thousands , thousands of errors each loop... not good. errors literally "cannot set property "classname" of undefined" (my code uses bunch of these change animations of sprites i'm using). thing though, mentioned above, these errors not seem affecting overall battle itself, ie battle can progress smoothly.
so question this: enormous amount of errors pose kind of problem, example browser or web page performance? plan transfer game onto android , using webview in android studio. errors problem there either? try , fix up, if isn't big issue leave later , start working on other parts of game.
thank reading question, , if it's confusing try explain more.
cheers.
good news guys, fixed code , getting no errors! did add if
statement checks if element exists on page, , if doesn't code doesn't run in turn doesn't give error.
Comments
Post a Comment