3 ms·
Aww, I thought that was to easy. That trick works for basically any level. Also, is there a good way to completly prevent tampering with functions, or is this
by gizmo686 13y ago
Aww, I thought that was to easy. That trick works for basically any level.
Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?
- lawl 13y agoDon't use the functions from the map object, but keep a separate function reference for validation? I mean if you want to cheat you always can. But that's not the point. Right now you can cheat using official apis. Just use map._blah() for internal use By the way: Same trick works for keys.
- demallien 13y agoObject.defineProperty with 'writable' = false?
- yuchi 13y agoObject.freeze?
- TeMPOraL 13y ago> Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race? Let's hope for an arms race - it will be far more fun and educating at the same time.
- skrebbel 13y agohmm a multi player javascript API tampering arms race game would be pretty awesome too.
- alnis 13y agoI just added a feature to the game that watches certain functions and compares them to what they were at the start of the game (during the level validation phase). I'm sure this can still be gamed though.