<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A simple PHP pathfinder class &#8211; as promised</title>
	<atom:link href="http://waher.net/archives/313/feed" rel="self" type="application/rss+xml" />
	<link>http://waher.net/archives/313</link>
	<description>inventas vitam iuvat excoluisse per artes</description>
	<lastBuildDate>Fri, 18 May 2012 02:57:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kristo Vaher</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-12839</link>
		<dc:creator>Kristo Vaher</dc:creator>
		<pubDate>Wed, 25 May 2011 07:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-12839</guid>
		<description>Hey there!

The working example that runs in http://waher.net/pathfinder can be downloaded from here: http://waher.net/pathfinder.rar

In my implementation of pathfinder the movement can be not just in four directions but in eight directions (also diagonally). Every &#039;square&#039; on a map has weight, aka how easy this tile is to be passed, so on a more complicated map you could have plains and forests and the solution would prefer to use the plains, rather than forests.

If you look at my example, then I generate a map there with getMap() function in functions.php

It is entirely hardcoded in getMap() functon, in reality this should be called from database for example. The snippet I used to randomly generate that map is also there, commented out.

So the entire map is an array, consisting of tile graphic (which is only used for rendering), modifier (which I planned to use for other purposes, but didn&#039;t) and weight (during pathfinding the system will always prefer tiles with lower weights, so if you want to make a tile unpassable, just give it a very high weight).

If you have further problems, let me know. I&#039;ll gladly help get this solution of yours working (I am at work right now though, so apologies if I am unable to respond right away).

-K</description>
		<content:encoded><![CDATA[<p>Hey there!</p>
<p>The working example that runs in <a href="http://waher.net/pathfinder" rel="nofollow">http://waher.net/pathfinder</a> can be downloaded from here: <a href="http://waher.net/pathfinder.rar" rel="nofollow">http://waher.net/pathfinder.rar</a></p>
<p>In my implementation of pathfinder the movement can be not just in four directions but in eight directions (also diagonally). Every &#8216;square&#8217; on a map has weight, aka how easy this tile is to be passed, so on a more complicated map you could have plains and forests and the solution would prefer to use the plains, rather than forests.</p>
<p>If you look at my example, then I generate a map there with getMap() function in functions.php</p>
<p>It is entirely hardcoded in getMap() functon, in reality this should be called from database for example. The snippet I used to randomly generate that map is also there, commented out.</p>
<p>So the entire map is an array, consisting of tile graphic (which is only used for rendering), modifier (which I planned to use for other purposes, but didn&#8217;t) and weight (during pathfinding the system will always prefer tiles with lower weights, so if you want to make a tile unpassable, just give it a very high weight).</p>
<p>If you have further problems, let me know. I&#8217;ll gladly help get this solution of yours working (I am at work right now though, so apologies if I am unable to respond right away).</p>
<p>-K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David c</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-12838</link>
		<dc:creator>David c</dc:creator>
		<pubDate>Tue, 24 May 2011 23:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-12838</guid>
		<description>Hi there, I&#039;ve recently been looking around on Google to find a pathfinder that I can incorporate into my website. The reason I&#039;m looking to do this is for a game that I play more so for the purpose of learning new programming techniques, well anyway, the game has a 2d map and I am trying to get from point A on the map to point B, in each node of the map there are 4 possible directions that you can go, North, South, East and West. 

http://i55.tinypic.com/213okkk.jpg 

That is an example of what a piece of the map looks like, I added lines to show each room individually. I can&#039;t quite grasp how your solution works, the map array that it creates, are there 4 different ways that you can move on it? That&#039;s kind of what I don&#039;t understand about your &#039;weight&#039; part of the class.

Any information on this would be greatly appreciated! Your example is the most simplistic I&#039;ve found as yet and I would love to figure it out to work for my needs :)

Thanks, Dave.</description>
		<content:encoded><![CDATA[<p>Hi there, I&#8217;ve recently been looking around on Google to find a pathfinder that I can incorporate into my website. The reason I&#8217;m looking to do this is for a game that I play more so for the purpose of learning new programming techniques, well anyway, the game has a 2d map and I am trying to get from point A on the map to point B, in each node of the map there are 4 possible directions that you can go, North, South, East and West. </p>
<p><a href="http://i55.tinypic.com/213okkk.jpg" rel="nofollow">http://i55.tinypic.com/213okkk.jpg</a> </p>
<p>That is an example of what a piece of the map looks like, I added lines to show each room individually. I can&#8217;t quite grasp how your solution works, the map array that it creates, are there 4 different ways that you can move on it? That&#8217;s kind of what I don&#8217;t understand about your &#8216;weight&#8217; part of the class.</p>
<p>Any information on this would be greatly appreciated! Your example is the most simplistic I&#8217;ve found as yet and I would love to figure it out to work for my needs <img src='http://waher.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks, Dave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristo Vaher</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-12712</link>
		<dc:creator>Kristo Vaher</dc:creator>
		<pubDate>Mon, 28 Mar 2011 12:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-12712</guid>
		<description>Well it requires a bit more knowledge to implement the pathfinder class, pathfinder class is mainly intended for only finding the shortest path. This example includes an entire user interface which uses that. But if you&#039;re interested, I have it uploaded here:

http://waher.net/pathfinder/pathfinder.rar

It&#039;s not documented and explained though, since it was not meant for public release, but perhaps it helps.</description>
		<content:encoded><![CDATA[<p>Well it requires a bit more knowledge to implement the pathfinder class, pathfinder class is mainly intended for only finding the shortest path. This example includes an entire user interface which uses that. But if you&#8217;re interested, I have it uploaded here:</p>
<p><a href="http://waher.net/pathfinder/pathfinder.rar" rel="nofollow">http://waher.net/pathfinder/pathfinder.rar</a></p>
<p>It&#8217;s not documented and explained though, since it was not meant for public release, but perhaps it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-12704</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Sat, 26 Mar 2011 21:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-12704</guid>
		<description>Hi Kristo,

the class ist cool, But unfortunately I do not understand how the demo works.
I have tried everything possible to move any figure on my map, but unfortunately all in vain. Maybe you can help me, because you have solved it so wonderfully

Best regards, Ralf</description>
		<content:encoded><![CDATA[<p>Hi Kristo,</p>
<p>the class ist cool, But unfortunately I do not understand how the demo works.<br />
I have tried everything possible to move any figure on my map, but unfortunately all in vain. Maybe you can help me, because you have solved it so wonderfully</p>
<p>Best regards, Ralf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristo Vaher</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-10531</link>
		<dc:creator>Kristo Vaher</dc:creator>
		<pubDate>Tue, 07 Sep 2010 19:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-10531</guid>
		<description>My mistake, the website was compromised not too long ago and it seems the jquery file was incomplete. It should work now.

Thanks for pointing it out!</description>
		<content:encoded><![CDATA[<p>My mistake, the website was compromised not too long ago and it seems the jquery file was incomplete. It should work now.</p>
<p>Thanks for pointing it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Streak</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-10530</link>
		<dc:creator>Streak</dc:creator>
		<pubDate>Tue, 07 Sep 2010 18:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-10530</guid>
		<description>Unfortunately, the example page (http://waher.net/pathfinder/) is not available :( Otherwise, a very fine thing.


Cheese and best greet:=)</description>
		<content:encoded><![CDATA[<p>Unfortunately, the example page (<a href="http://waher.net/pathfinder/" rel="nofollow">http://waher.net/pathfinder/</a>) is not available <img src='http://waher.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Otherwise, a very fine thing.</p>
<p>Cheese and best greet:=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Kristo Vaher » As promised, here is a simple PHP pathfinder class - creating castles in the air, from air, by exertion of the imagination -- Topsy.com</title>
		<link>http://waher.net/archives/313/comment-page-1#comment-10412</link>
		<dc:creator>Tweets that mention Kristo Vaher » As promised, here is a simple PHP pathfinder class - creating castles in the air, from air, by exertion of the imagination -- Topsy.com</dc:creator>
		<pubDate>Tue, 25 May 2010 21:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://waher.net/?p=313#comment-10412</guid>
		<description>[...] This post was mentioned on Twitter by Janne Siera, Kristo Vaher. Kristo Vaher said: As promised, the simple PHP tile-map pathfinder (useful for PBBG&#039;s) is now available through my blog: http://waher.net/archives/313 [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Janne Siera, Kristo Vaher. Kristo Vaher said: As promised, the simple PHP tile-map pathfinder (useful for PBBG&#39;s) is now available through my blog: <a href="http://waher.net/archives/313" rel="nofollow">http://waher.net/archives/313</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

