setTimeout(\"showNotification('".$note."');\", 1000);
if (getCookie('pref_mute') != 'true') {
setTimeout(\"soundManager.setVolume('achieve', 40);\", 1340);
setTimeout(\"soundManager.play('achieve');\", 1350);
}
";
}
}
?>
//
//
//
?>
$soundManager1 = '
DATE HERE. Update complete! This update made several changes to allow for some new upcoming features.
If you find any bugs please let us know using the Feedback Page !
Thank you so much!
if ($accepted) {
if (!hasCompletedTutorial($userID)) {
echo "
Complete the tutorial to unlock a blue wall color:";
echo "";
}
}
// 3 Main maps
$motd = MapOfTheDay(1);
$jmid[1] = $motd['id'];
$mapContent = displayMaze($motd, 1);
$motd = MapOfTheDay(2);
$jmid[2] = $motd['id'];
$mapContent .= displayMaze($motd, 2);
$motd = MapOfTheDay(3);
$jmid[3] = $motd['id'];
$mapContent .= displayMaze($motd, 3);
$mapNames[1] = 'Simple';
$mapNames[2] = 'Normal';
$mapNames[3] = 'Complex';
// Additional or special maps:
$motd = MapOfTheDay(4);
$jmid[4] = $motd['id'];
$mapContent .= displayMaze($motd, 4);
$mapNames[4] = $motd['map'][0][6];
if ($mapNames[4] == '') {
$mapNames[4] = 'Special';
}
// $motd = MapOfTheDay(5);
// $jmid[5] = $motd['id'];
// $mapContent .= displayMaze($motd, 5);
// $special2 = $motd['map'][0][6];
// if ($special2 == '') {
// $special2 = 'Special';
// }
echo '
';
foreach ($mapNames as $key => $value) {
echo "
$value \n";
}
echo '
';
?>
Sorry, this game requires scripts to run. Please enable javascript and Reload this site
This game is best viewed in Google Chrome
echo $mapContent; ?>
function displayMaze($motd, $mapType) {
global $accepted, $userID;
//Gather data for map;
$mapID = $motd['id'];
$map = $motd['map'];
$width = $map[0][0];
//data for the topscores
//$topscores = topScores($motd['id'], 30);
//$topscorediv = "
\n$topscores\n
";
$topscorediv = "
";
$mysolution = '';
$mymoves = '';
if ($accepted) {
$sol = getSolution($userID, $mapID);
$mysolution = $sol['solution'];
//TODO: implement mymoves
$mymoves = $sol['moves'];
}
if (isset($_SESSION[$mapID.'sol']) && $mysolution == '') {
$mysolution = $_SESSION[$mapID.'sol'];
$mymoves = $_SESSION[$mapID.'moves'];
}
$r = "
";
$r .= "
";
$r .= "
";
$r .= "
";
$r .= $topscorediv;
$r .= '
';
$r .= '
';
$r .= '
';
$mapSolDiv = "";
$r .= $mapSolDiv;
//Clear our floatingness
$r .= '
';
return $r;
}
$timerem = strtotime("tomorrow") - strtotime("now");
?>
New maps