How to prevent cheating with Gamecih?

前端 未结 10 1550
孤独总比滥情好
孤独总比滥情好 2021-01-31 12:07

Background

I\'ve had problems for quite a while now with players cheating in my android game. For a strict single-player game this wouldn\'t be a big is

10条回答
  •  时光说笑
    2021-01-31 12:22

    To prevent memory cheating you can do one of the following:

    • Store the most important values in arrays of digits rather than in variables
    • Store the value as string as well and whenever you modify it check to see if it matches the string.
    • Take a look at MochiDigits classes from Mochi (Actionscript 3) and come up with a Java port. https://code.google.com/p/cunitescore/source/browse/trunk/as3/unitescore/mochi/MochiDigits.as?r=92

提交回复
热议问题