Game demo: www.game.darkkyshadow.com
Feel free to use "harvard1932" as the username or you can create one for your own at www.darkkyshadow.com
If you need help setting up your own cloud based save system, feel free to ask any questions 😛 I am here to help
Also, I am providing hosting services for your game (not free) since I need to cut down the dedicated server cost 😀
Answered:
First: Make a script within your game that calls the following
var xhttp = new XMLHttpRequest(); xhttp.open("POST", "checkuser.php", false); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send("username="+bpusername);
xhttp.responseText <------- contains the returned data from the request! It is very important if you want to process the returned data within the game script!
Sample of php receiver:
<?php
$currentversion=1.1;
$version = $_POST['version'];
$version = floatval($version);
$beta = $_POST['beta'];
if ($version<$currentversion){
echo "Not up to date " . $version . " current version " . $currentversion;
}
else{
//echo "Up to date " . $version . " current version " . $currentversion;
echo "Up to date";
}
?>
Sample about SQL depends on your SQL database structure.
Feel free to use "harvard1932" as the username or you can create one for your own at www.darkkyshadow.com
If you need help setting up your own cloud based save system, feel free to ask any questions 😛 I am here to help
Also, I am providing hosting services for your game (not free) since I need to cut down the dedicated server cost 😀
Answered:
First: Make a script within your game that calls the following
var xhttp = new XMLHttpRequest(); xhttp.open("POST", "checkuser.php", false); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send("username="+bpusername);
xhttp.responseText <------- contains the returned data from the request! It is very important if you want to process the returned data within the game script!
Sample of php receiver:
<?php
$currentversion=1.1;
$version = $_POST['version'];
$version = floatval($version);
$beta = $_POST['beta'];
if ($version<$currentversion){
echo "Not up to date " . $version . " current version " . $currentversion;
}
else{
//echo "Up to date " . $version . " current version " . $currentversion;
echo "Up to date";
}
?>
Sample about SQL depends on your SQL database structure.