From 16567167343024754247818e92115ed83255ed0d Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 8 Jan 2013 22:47:13 -0800 Subject: Map class and Challenges The mapclass should eventually replace the current mapmatrix array w/ headers. Work on challenges progresses nicely --- pages/gallery.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'pages/gallery.php') diff --git a/pages/gallery.php b/pages/gallery.php index 9df059a..f8e1b9d 100644 --- a/pages/gallery.php +++ b/pages/gallery.php @@ -54,6 +54,32 @@ $myparams['name'] = 'Round and Round'; $map = GenerateShapedMap($spin, $myparams); +include('./includes/mapclass.php'); + +$mapCode = GenerateMapCode($map); +echo $mapCode; +echo "
"; +echo "
"; + +$mapClass = new map($mapCode); +echo DisplayMapThumbnail($mapClass); + +echo "
"; +echo "
"; +echo $mapClass->width; +echo "
"; +echo $mapClass; +echo "
"; +echo "
"; +var_dump($mapClass); +echo "
"; +echo TileStart; +echo TileFinish; +echo "
"; + +exit; + + echo DisplayMap($map, 2); //addNewChallengeMap($map, 0, 0, 'Round and Round'); -- cgit v1.2.3