From 33dfdb5654c3ba8fe43203e3212cefd8495cf2ea Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 9 Sep 2011 23:44:51 -0700 Subject: Files added for future use. --- pages/embed.php | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/tutorial.php | 52 ++++++++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 pages/embed.php create mode 100644 pages/tutorial.php diff --git a/pages/embed.php b/pages/embed.php new file mode 100644 index 0000000..4c1ca68 --- /dev/null +++ b/pages/embed.php @@ -0,0 +1,113 @@ + + + + + +Normal'; + break; + + case "hard": + case "3": + $maptype = 3; + $hard = 'Complex'; + break; + + case "day": + case "4": + $maptype = 4; + $special = "$special"; + break; + + case "easy": + case "1": + default: + $maptype = 1; + $easy = 'Simple'; +} + +$motd = MapOfTheDay($maptype); +$mapID = $motd['id']; +$map = $motd['map']; +$userID = $_SESSION['userID']; +$date = date("m-d-y"); +//$mergesolution = mergeMapSolution($map, $mysolution); +$topscores = topScores($motd['id'], 30); +$topscorediv = "
\n$topscores\n
"; +$mergesolution = $map; + +?> +
+Easy | "; +echo "Normal | "; +echo "Hard | "; +echo "Special"; + +echo DisplayMap($mergesolution, $mapID); + +$mysolution = getSolution($userID, $mapID); +$solutiondiv .= " + + + + diff --git a/pages/tutorial.php b/pages/tutorial.php new file mode 100644 index 0000000..1980bb5 --- /dev/null +++ b/pages/tutorial.php @@ -0,0 +1,52 @@ + + + + + + + +
+

+Place blocks where it says to... +

+
+Previous | Next "; + +$challenge1[] = "soooraoof"; +$challenge1[] = "sooooroof"; +$challenge1[] = "sooooooof"; +$challenge1[] = "sooooooof"; +$challenge1[] = "sooooooof"; + +$myparams['checkpoints'] = 3; +$myparams['teleports'] = 1; +$myparams['walls'] = 2; + +$map1 = GenerateShapedMap($challenge1, $myparams); + +echo DisplayMap($map1, 1); + +//$mysolution = getSolution($userID, $mapID); +//$solutiondiv .= " + + + + -- cgit v1.2.3