Anti-cheat Javascript for browser/HTML5 game

Posted by Billy Ninja on Game Development See other posts from Game Development or by Billy Ninja
Published on 2012-09-20T14:29:31Z Indexed on 2012/09/20 21:56 UTC
Read the original article Hit count: 394

Filed under:
|
|

I'm planning on venturing on making a single player action rpg in js/html5, and I'd like to prevent cheating. I don't need 100% protection, since it's not going to be a multiplayer game, but I want some level of protection.

So what strategies you suggest beyond minify and obfuscation?

I wouldn't bother to make some server side simple checking, but I don't want to go the Diablo 3 path keeping all my game state changes on the server side.

Since it's going to be a rpg of sorts I came up with the idea of making a stats inspector that checks abrupt changes in their values, but I'm not sure how it consistent and trusty it can be.

What about variables and functions escopes? Working on smaller escopes whenever possible is safer, but it's worth the effort?

Is there anyway for the javascript to self inspect it's text, like in a checksum?

There are browser specific solutions? I wouldn't bother to restrain it for Chrome only in the early builds.

© Game Development or respective owner

Related posts about JavaScript

Related posts about html5