Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Is it possible to implement some time restricted gameplay in javascript., as we can't write expired time to exe / bin/ apk files. Idea is to give game for free, then after playing 5 hours at level one automatically progress to next level, play another 5 hours at level 2 and then free time is up and player must pay if he wants to game for real. |
||||
|
yes, you can. but the ned user might hack it easily. |
||||
|
Yes, you can do this using the server. You should get some device id and record the time in the game on the server. |
||||
|
ney, my question it intended for offline usage thanks |
||||
|
As I mentioned yes, it is possible, but the user might change it, you can either the save the time as variable to the disk and along with that you can do a simple trick so that if the user even change or delete the regkey the game will still remain unplayable. I don't have enough time to write the whole trick here, but maybe I will provide you a sample ccb file which does this. I don't recommend online server trick, they can be useful only if you have multiplayer integration, as the user can simply turn off his internet or let the app go through firewall and disable net for the app, and it will run on the system for forever. But yeah, most multiplayer games uses server time to check the trial period. |
||||
|
yes if you write the *.cfg file in octal / binary or hex format. that would work on windows. can maybe also zip it. thanks have to explore further but basic idea is there |
|