Here is a method I use to make a cheat system in a test or published game so friends don't see adverts, etc...
1) Use the facebook labs interface in your code.
2) Collect the facebook id numbers of your friends, put them into an array early in your main code
local cheat=false
local cheaters={"1234567890","098765432","123456789","9876543",...and so on...} |
3) Do a /me call for facebook, then in the request complete event...
if e.type=="\me" then
local test=json.decode(e.response)
for loop=1,#cheaters do
if test.id==cheaters[loop] then
cheat=true
break
end
end
end |
now just check for cheat and if true then don't show adverts, allow free coins, extra lives, etc...
Your friends can give you their facebook id using :
http://findmyfacebookid.com/
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
Comments
Couldnt you go back the old game methods, like at the main menu, hit a sequence of buttons, or enter a code by clicking on the tiny symbol at the bottom on the screen that looks like it shouldnt be there lol
But with the introduction of Gyro detectors, you could program things like:
- extra money - ( place phone flat, then spin it 3 times to the left, and 1 time to right)
- more lives - put the phone vertical in your right hand. shake 3 times and turn phone upside down for 3 secs, repeat for more lives.
- unlimited life - ( get the phone accelerator to detect as speed in excess of 200klm, near the AutoBahn. )
only a thought )
http://artleeapps.com/
Bubble Adventure - Colors
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
http://artleeapps.com/
Bubble Adventure - Colors
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
https://deluxepixel.com
Btw, why not tell friends support some revenue by clicking ads )
But you could also retrieve cheaters ids from a remote server (your own server that is)
Still, awesome idea
At the start of the code:
In the result of the call I save the users facebook ID in 'facebookID'...
I now start a call to get the members of 'sinisterFriends'...
Likes: ar2rsawseen
https://deluxepixel.com
https://deluxepixel.com
Likes: SinisterSoft
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Likes: SinisterSoft
https://deluxepixel.com
https://deluxepixel.com
brings back memories of Quake like games, unlimited ammo, no damage, the biggest gun ever made... (where did i put that cd...)
Likes: SinisterSoft
http://artleeapps.com/
Bubble Adventure - Colors
https://deluxepixel.com
Simple but effective.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
There is only one (major) flaw with your method. Once it method becomes known then it will spread really quickly and everyone will be cheating/you will make no money from adverts.
https://deluxepixel.com
I don't put any passwords or anything in the code. The group is secret, only members of the group know who the owner of the group is.
https://deluxepixel.com
Likes: SinisterSoft
It will allow me to figure out who they are, track them down and inact my revenge.
https://deluxepixel.com
Likes: SinisterSoft