Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Online HighScore : AGK client + Php script

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 23rd Nov 2021 15:21
Hi

Here is a simple example to set and Get an online hightscore.
- send the php script on your webserver, and use the AppGameKit code in your game .

AGK code :
Change "YourUrl.com" by your server url (line : MyURL$ = "YourURL.com").


Php script : to send to your webserver :


Cheers !
AGK2 tier1 - http://www.dracaena-studio.com
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Nov 2021 06:10
To make purple token work with itch.io I had to add the following to the PHP:

header("Access-Control-Allow-Origin: *");

I would also recommend using SSL/TLS and some sort of private identifier sent with the data, otherwise anyone could access the file.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-03-29 04:37:08
Your offset time is: 2024-03-29 04:37:08