diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-12-26 12:40:35 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-12-26 12:40:35 -0800 |
commit | e284051105d820c5df1487fc0c811a01a0883472 (patch) | |
tree | 08fe8ecacd5677913536962ccadea7a15a0285e0 /pages/faq.php | |
parent | c018b6ccd03192a890879067f0badeff7a713fdf (diff) | |
download | pathery-e284051105d820c5df1487fc0c811a01a0883472.tar.xz |
Overhauled the FAQ with Demo's
Fixed a bug with PHP 5.4 number_format change
Diffstat (limited to 'pages/faq.php')
-rw-r--r-- | pages/faq.php | 81 |
1 files changed, 80 insertions, 1 deletions
diff --git a/pages/faq.php b/pages/faq.php index 0fccf4c..7b3c09c 100644 --- a/pages/faq.php +++ b/pages/faq.php @@ -4,7 +4,62 @@ htmlHeader(array(), 'FAQ', 'How does the pathing work?'); <body>
<?php
+echo soundManager2();
topbar($Links);
+
+include('./includes/maps.php');
+
+
+// Demo maps:
+//Pathing:
+
+// -------- DEMO1
+$pathing1[] = 'roooooauo';
+$pathing1[] = 'ooooooooo';
+$pathing1[] = 'soooooooo';
+$pathing1[] = 'oooooorof';
+$pathing1[] = 'booootooo';
+
+$myparams['checkpoints'] = 2;
+$myparams['teleports'] = 1;
+$myparams['rockchance'] = 999;
+$myparams['walls'] = 999;
+$myparams['name'] = 'Pathing Demo 1';
+
+$map = GenerateShapedMap($pathing1, $myparams);
+$demo1 = displaymap($map, 1, 'example');
+// --------- DEMO2
+$multi1[] = 'sooXoooooXo';
+$multi1[] = 'xxxXrrorxoo';
+$multi1[] = 'aoooxxxrooo';
+$multi1[] = 'XXXXXXorooo';
+$multi1[] = 'Sooooooroof';
+
+$myparams['checkpoints'] = 1;
+$myparams['teleports'] = 0;
+$myparams['rockchance'] = 999;
+$myparams['walls'] = 999;
+$myparams['name'] = 'Pathing Demo 2';
+
+$map = GenerateShapedMap($multi1, $myparams);
+$demo2 = displaymap($map, 2, 'example');
+// --------- DEMO3
+$greed[] = 'soooooooa';
+$greed[] = 'sooooooob';
+$greed[] = 'soooooooc';
+$greed[] = 'sorooroof';
+$greed[] = 'sraorbroo';
+
+$myparams['checkpoints'] = 1;
+$myparams['teleports'] = 0;
+$myparams['rockchance'] = 999;
+$myparams['walls'] = 999;
+$myparams['name'] = 'Pathing Demo 2';
+
+$map = GenerateShapedMap($greed, $myparams);
+$demo3 = displaymap($map, 3, 'example');
+
+
?>
<div class="wrapper">
@@ -16,6 +71,7 @@ Your question not here? Ask me via the <a href='feedback'>Feedback Page</a>. <ul>
<li><a href='#pathing'>How does the pathing work? / How does it choose which way to go?</a></li>
<li><a href='#multipath'>How does Multi-path work? (Two paths at once)</a></li>
+ <li><a href='#greed'>More than one of the same checkpoint?</a></li>
</ul>
<a name='pathing'> </a>
@@ -31,6 +87,10 @@ This means that the path will go UP as far as it can first – then right, d <br />So, BOTTOM LEFT, from TOP RIGHT? If you answer "DOWN then LEFT" you are correct!
<br />If you answered "uhhmm.. what's up with the directions in caps?" then you get a bonus point!
<br />Remember, teleports are traps and do not effect the path choice.
+<h3>Demo 1</h3>
+<? echo $demo1; ?>
+<div style='clear:both'></div>
+
</p>
<hr width='60%' />
@@ -50,7 +110,26 @@ But they can't cross Red blocks: Likewise, the Red Path noted by red in the arrow may pass over Red Allow blocks:
<div class='grid_td_rockxpath1' style='display: inline-block'></div>
<br />
-12-12-12: - I'm going to update this answer in like 8 hours with some examples... So; if you're reading this. Hi!
+<h3>Demo 2</h3>
+<? echo $demo2; ?>
+<div style='clear:both'></div>
+
+<hr width='60%' />
+
+<a name='greed'> </a>
+<h3>More than one of the same checkpoint?</h3>
+<div class='grid_td_cpa' style='display: inline-block'></div>
+<div class='grid_td_cpa' style='display: inline-block'></div>
+
+<p>The pathing is very greedy. It's only looking at it's next target.
+<b>It does not look at the big-picture</b>. You can use this to your advantage.
+When there's more than one checkpoint, you can completely wall one off.
+<br />Not many maps contain will more than one of any checkpoint.
+<br />The below demo demonstrates it's greed. - The path will actually be shorter if you wall the bottom A.
+
+<h3>Demo 3</h3>
+<? echo $demo3; ?>
+<div style='clear:both'></div>
</div>
|