summaryrefslogtreecommitdiffstats
path: root/pages/howtoplay.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/howtoplay.php
downloadpathery-f8c9eb5220afaf2f9a62f9a176a45913240f4081.tar.xz
Initial import from Dropbox
Diffstat (limited to 'pages/howtoplay.php')
-rw-r--r--pages/howtoplay.php102
1 files changed, 102 insertions, 0 deletions
diff --git a/pages/howtoplay.php b/pages/howtoplay.php
new file mode 100644
index 0000000..11dc429
--- /dev/null
+++ b/pages/howtoplay.php
@@ -0,0 +1,102 @@
+<?PHP
+htmlHeader();
+?>
+
+<body>
+<?php
+topbar($Links);
+
+include('./includes/maps.php');
+
+// function GenerateMap($rows, $cols, $rockchance, $numBlocks = -1, $cp = -1, $tp = -1) {
+//$map = GenerateMap(6, 3, 1000, 3, 5, 0);
+//$mapcode = GenerateMapCode($map);
+
+//echo "$mapcode <br />";
+//echo displaymap($map, 0, true);
+
+//Demo nothing.
+$basicmapcode = '6x3.c0.r0.w9.t0.:0s.4f.0s.4f.0s.4f.';
+$basicmap = displaymap(GenerateMapByCode($basicmapcode), 1, true);
+
+//Map Demoing the checkpoints
+$cpcode = "6x3.c5.r0.w9.t0.:0s.0a.2b.0f.0s.1e.2f.0s.0d.2c.0f.";
+$cpmap = displaymap(GenerateMapByCode($cpcode), 2, true);
+
+//Map Demoing the teleports
+$tpcode = "6x3.c0.r0.w5.t4.:0s.0n.2t.0f.0s.4f.0s.0u.2m.0f.";
+$tpmap = displaymap(GenerateMapByCode($tpcode), 3, true);
+
+?>
+
+<h1>Tutorial</h2>
+<p>
+<br />The object of the game is to make the longest maze.
+<br />The "Snake" (name pending) must go to all the checkpoints.
+<br />It starts from the red arrows:
+<table><tr><td class='grid_td_start'></td></tr></table>
+and goes to the blue arrows:
+<table><tr><td class='grid_td_finish'></td></tr></table>
+<br />Build a maze by clicking to place blocks. You can remove a block by clicking it again.
+<br />It must be able to make it through your maze, so no walling completely!
+<br />Try it:
+<div style='width:200px;'>
+<? echo $basicmap; ?>
+</div>
+</p>
+<br /><h2>Checkpoints:</h2>
+<table>
+ <tr>
+ <td class='grid_td_cpa'></td>
+ <td class='grid_td_cpb'></td>
+ <td class='grid_td_cpc'></td>
+ <td class='grid_td_cpd'></td>
+ <td class='grid_td_cpe'></td>
+ </tr>
+</table>
+<p>
+The path must reach all these (if they exist) before going to finish. Try it:
+
+<div style='width:200px;'>
+<? echo $cpmap; ?>
+</div>
+<br />
+<br />
+<br />Tip: - Try to combine odd-letters with each other;
+<br />I.E. If A, B, C exist, try to make a box around A and C, then maze the entrance to the box.
+<br />This way, the path enters the box for A, leaves for B, returns for C, and leaves for the exit.
+This would make the path go through your maze 4 times!
+</p>
+<h2>Teleports:</h2>
+<table>
+ <tr>
+ <td><b>Teleport 1:</b></td>
+ <td class='grid_td_tp1_in' ></td>
+ <td class='grid_td_tp1_out' ></td>
+ </tr>
+ <tr>
+ <td><b>Teleport 2:</b></td>
+ <td class='grid_td_tp2_in' ></td>
+ <td class='grid_td_tp2_out' ></td>
+ </tr>
+</table>
+<p>
+<br />Teleport tiles are traps. When the path goes across the "IN" tile, it gets thrown to the "OUT" tile.
+<br />The path will not avoid teleports. Check this example out:
+<div style='width:200px;'>
+<? echo $tpmap; ?>
+</div>
+<br />
+<br />
+Implementing a teleport into your maze can have a big impact.
+</p>
+
+<br /><p>That should be enough information to get you started.
+<br />Now <a href='?page=home'>go try it out!</a>
+<br /></p>
+<br />
+<br />
+<br />
+
+</body>
+</html>