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.