summaryrefslogtreecommitdiffstats
path: root/pages/gallery.php
diff options
context:
space:
mode:
authorraylu <raylu@cmu.edu>2011-04-07 00:27:27 -0400
committerraylu <raylu@cmu.edu>2011-04-07 00:27:27 -0400
commitf8c9eb5220afaf2f9a62f9a176a45913240f4081 (patch)
tree99775178acfcef6e86e39184be0ac96083042f1b /pages/gallery.php
downloadpathery-f8c9eb5220afaf2f9a62f9a176a45913240f4081.tar.xz
Initial import from Dropbox
Diffstat (limited to 'pages/gallery.php')
-rw-r--r--pages/gallery.php113
1 files changed, 113 insertions, 0 deletions
diff --git a/pages/gallery.php b/pages/gallery.php
new file mode 100644
index 0000000..68c17ae
--- /dev/null
+++ b/pages/gallery.php
@@ -0,0 +1,113 @@
+<?PHP
+htmlHeader();
+?>
+
+<body>
+<?php
+topbar($Links);
+
+
+include('../mazetd/includes/maps.php');
+include('../mazetd/includes/mapoftheday.php');
+
+
+echo "<br />";
+echo "<br />";
+echo "";
+
+echo rand(0,1);
+echo rand(0,1);
+echo rand(0,1);
+echo rand(0,1);
+echo rand(0,1);
+
+//15x9.c3.r28.w12.t2.:0s.8r.4f.0s.9r.3f.0s.12r.0f.0s.8r.0r.3f.0s.5r.5r.1f.0s.1r.11f.0s.0r.8r.1r.1f.0s.8r.4f.0s.4r.3r.4f.
+
+$map = GenerateMap(
+ 15, 9, 7 , //width, height, rocks
+ rand(11,13) , //Walls
+ weight(0,1,2,2,3,3) , //Checkpoints
+ rand(0,1) //Teleports
+ );
+
+
+$map = GenerateMap(
+ 14, 15, 50 , //width, height, rocks
+ weight(17,18,19,20) , //Walls
+ weight(1,2,2,3,3) , //Checkpoints
+ weight(0,0,0,1) //Teleports
+);
+
+//Weekend Map
+$map = GenerateMap(
+ 25, 15, 9 , //width, height, rocks
+ weight(20) , //Walls
+ weight(5) , //Checkpoints
+ weight(5) //Teleports
+);
+
+
+//Rocky Maze
+$map = GenerateMap(
+ 19, 15, 5 , //width, height, rocks
+ weight(16,17,18) , //Walls
+ weight(1,2,2,2,3,3) , //Checkpoints
+ weight(0) //Teleports
+);
+
+
+//Tele Madness
+$map = GenerateMap(
+ 17, 12, 10 , //width, height, rocks
+ weight(17,18) , //Walls
+ weight(1) , //Checkpoints
+ weight(5) //Teleports
+);
+
+//Tall tall
+$map = GenerateMap(
+ 6, 17, 10 , //width, height, rocks
+ weight(17,18,19,20) , //Walls
+ weight(1,2,2,2,3,3) , //Checkpoints
+ weight(0,0,0,1) //Teleports
+);
+//Side to Side
+$map = GenerateMap(
+ 26, 6, 12 , //width, height, rocks
+ weight(17,18,19) , //Walls
+ weight(2,2,2,3,3) , //Checkpoints
+ weight(3,3,3,4) //Teleports
+);
+
+
+
+$mapdisplay = DisplayMap($map);
+$code = GenerateMapCode($map);
+
+
+echo "<br />$mapdisplay";
+echo "<br />$code";
+print_r ($map);
+
+echo "<br />";
+echo "<br />";
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+echo "<br />";
+echo weight(1,2,3,4,5,6);
+
+
+
+
+
+?>
+</body>
+</html>