summaryrefslogtreecommitdiffstats
path: root/pages/faq.php
blob: 3df08eb0abc51627a332852d3e12eed68a3934c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
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">


Your question not here? Ask me via the <a href='feedback'>Feedback Page</a>.

<h2>Questions and Answers</h2>
<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'>&nbsp;</a>
<h3>How does the pathing work?</h3>
<p>The pathing tries to find the best route possible.
In open areas there's lots of identical paths for it to take;
To choose which path it will go it follows these priorities:
<b> UP, RIGHT, DOWN, LEFT.</b>
This means that the path will go UP as far as it can first &ndash; then right, down, left.
<br />If the path is going to the TOP RIGHT from the BOTTOM LEFT, the path will go UP all the way to the top, then RIGHT.
<br />If the path is going to the BOTTOM LEFT, from the TOP RIGHT, the path will go all the way DOWN and then LEFT.
<br />TOP LEFT, from BOTTOM RIGHT, UP, then LEFT.
<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%' />

<a name='multipath'>&nbsp;</a>
<h3>How does Multi-path work? (Two paths at once)</h3>
<div class='grid_td_start' style='display: inline-block'></div>
<div class='grid_td_startB' style='display: inline-block'></div>

<p>The Green start location on a map starts the Green Path, or 'Path 1'.

<br />The Green Path noted by the green in the arrow may pass over Green Allow blocks:
<div class='grid_td_rockxpath2' style='display: inline-block'></div>
But they can't cross Red blocks:
<div class='grid_td_rockxpath1' style='display: inline-block'></div>
<br />
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 />
<h3>Demo 2</h3>
<? echo $demo2; ?>
<div style='clear:both'></div>

<hr width='60%' />

<a name='greed'>&nbsp;</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 will contain 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>


<?php
htmlFooter();
?>