4 ms·
How do you implement a leaderboard that can’t be spoofed with REST POST calls from curl or postman?(Genuine question for my own JavaScript game) doesn’t need to
by TedDoesntTalk 4y ago
How do you implement a leaderboard that can’t be spoofed with REST POST calls from curl or postman?(Genuine question for my own JavaScript game) doesn’t need to be perfect just a barrier that makes it painful to spoof easily
- someweirdperson 4y agoInclude the complete inputs for the solution, and verify on upload. Then don't accept dupes and make the leaders winning flights watchable.
- fouronnes3 4y agoThis requires deterministic physics.
- TedDoesntTalk 4y agoSave the random seed
- crispisulcans 4y agoYes this is what I'm thinking. The replay links already include the full input. I would then just have to verify it and show the link for each entry. For example this is my flight just now for today's daily with a time of 12.97s: https://rocket-drone.lol/?level=5550594399&replay=IIgmIUWAJBJGDuAhAwsJJYHNgGt0CqiSAFsAGICKeOAzsCgAwwgCWFCwAItQMwgBNYAGkQ5dJ2HV85ISmQBWdNS44AGtwD2wasACuDEABVqQ8kQDyyALYN6ANWoAzBgBYWwAI4h6AcWpQSPAQyAA2IDi%2BnACmINQAsjgAxlrA8MC%2B3NQARjj4SNqZIMAAUgjxALxAA https://rocket-drone.lol/?level=5550594399&replay=IIgmIUWAJB...
- someweirdperson 4y agoOoooh, replays already exist. I didn't notice the button. https://rocket-drone.lol/?level=9&replay=IIiKIUWARAOBhYBzAQgTWKAqsADAd3gGlgAJJM0FAaxgBZgVCAmGcAdXAAVgAxASWCIUAJWABxEACsKtYDmj5gAUyFKAchQrRavJQHk1ZVLXgMARkoBSjEAGMKpGAHtgAZUYA2I%2BvAANRlcAWUYAGxBYYAhUDBAUaBRgAF4koA https://rocket-drone.lol/?level=9&replay=IIiKIUWARAOBhYBzAQg...
- crispisulcans 4y agonice one!
- someweirdperson 4y agosub-10s. feels like cheating with slowed reality of course. https://rocket-drone.lol/?level=5550594399&replay=IIhSIUWBhBJYBGB3AQgVxk4AZAisACWADEBNYeaAE2AgHMd8BjEgVWHGAGVgBxSfEU4R8AZ2AARANbAAcqhkQALMBSoAniAYgy0IA https://rocket-drone.lol/?level=5550594399&replay=IIhSIUWBhB...
- crispisulcans 4y agoa little downward boost at the beginning, trading away some health for time, love it!