<?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 for Nick Gravelyn</title>
	<atom:link href="http://blog.nickgravelyn.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nickgravelyn.com</link>
	<description></description>
	<lastBuildDate>Thu, 18 Mar 2010 14:06:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Know when to be lazy by jessechounard</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-439</link>
		<dc:creator>jessechounard</dc:creator>
		<pubDate>Thu, 18 Mar 2010 14:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-439</guid>
		<description>My posts are up.  Thanks a ton for posting about Tiled, and for your code.  I like it alot.

&lt;a href=&quot;http://thirdpartyninjas.com/blog/2010/03/17/tiled-map-editor-part1/&quot; rel=&quot;nofollow&quot;&gt;Part 1&lt;/a&gt;
&lt;a href=&quot;http://thirdpartyninjas.com/blog/2010/03/17/tiled-map-editor-part2/&quot; rel=&quot;nofollow&quot;&gt;Part 2&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>My posts are up.  Thanks a ton for posting about Tiled, and for your code.  I like it alot.</p>
<p><a href="http://thirdpartyninjas.com/blog/2010/03/17/tiled-map-editor-part1/" rel="nofollow">Part 1</a><br />
<a href="http://thirdpartyninjas.com/blog/2010/03/17/tiled-map-editor-part2/" rel="nofollow">Part 2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Nick</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-438</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 17 Mar 2010 02:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-438</guid>
		<description>It&#039;s all Ms-Pl so you can extend it, re-release it, blog it, or do whatever you want with it. :)

That&#039;s probably a good fix there. The property of TmxProcessor was sort of an afterthought for me. I tend to just keep the tile images with the maps.</description>
		<content:encoded><![CDATA[<p>It&#8217;s all Ms-Pl so you can extend it, re-release it, blog it, or do whatever you want with it. <img src='http://blog.nickgravelyn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>That&#8217;s probably a good fix there. The property of TmxProcessor was sort of an afterthought for me. I tend to just keep the tile images with the maps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by jessechounard</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-437</link>
		<dc:creator>jessechounard</dc:creator>
		<pubDate>Tue, 16 Mar 2010 15:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-437</guid>
		<description>This is pretty neat.  I&#039;ve been playing with it for the last couple of days, and I like it.  Is it alright if I do a blog post expanding about this on my site?  (I&#039;m using reflection to automatically create game objects based on the stuff in the MapObject layers.)

I had a bit of a problem with the paths.  I setup my folders just like you did in the example, but then Tiled couldn&#039;t find the png file, since it was looking in the same folder.  If I fix that, Tiled uses a relative path like &quot;../TileSets/Tiles.png&quot; which confuses Path.Combine in the TmxProcessor.  So I changed that bit to this:

Path.Combine(TileSetDirectory, Path.GetFileName(tileSet.Image))</description>
		<content:encoded><![CDATA[<p>This is pretty neat.  I&#8217;ve been playing with it for the last couple of days, and I like it.  Is it alright if I do a blog post expanding about this on my site?  (I&#8217;m using reflection to automatically create game objects based on the stuff in the MapObject layers.)</p>
<p>I had a bit of a problem with the paths.  I setup my folders just like you did in the example, but then Tiled couldn&#8217;t find the png file, since it was looking in the same folder.  If I fix that, Tiled uses a relative path like &#8220;../TileSets/Tiles.png&#8221; which confuses Path.Combine in the TmxProcessor.  So I changed that bit to this:</p>
<p>Path.Combine(TileSetDirectory, Path.GetFileName(tileSet.Image))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Andi_S</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-436</link>
		<dc:creator>Andi_S</dc:creator>
		<pubDate>Mon, 15 Mar 2010 20:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-436</guid>
		<description>sorry, I jsut noticed it actually seems to work, collisionlayer is not null, but contains my single object...yeeesss ;-)</description>
		<content:encoded><![CDATA[<p>sorry, I jsut noticed it actually seems to work, collisionlayer is not null, but contains my single object&#8230;yeeesss <img src='http://blog.nickgravelyn.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Andi_S</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-435</link>
		<dc:creator>Andi_S</dc:creator>
		<pubDate>Mon, 15 Mar 2010 20:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-435</guid>
		<description>Nick, thanks for the reply, but I still don&#039;t quite understand. Would you mind to maybe write one or two lines of code that would show me how to do it?
I have a lyer named &quot;Collision&quot; where I have all my collision rectangles. 

I have two variables, one Layer object &quot;layer&quot; and one MapObjectLayer &quot;Collisionlayer&quot;.

now i do in Loadcontent, just after loading the map:


            layer = map.GetLayer(&quot;Collision&quot;);
            collisionLayer = (MapObjectLayer)layer;

But when I insert a breakpoint in this line, collisionlayer is null? What am I doing wrong? I guess I have not understood this casting somehow. Can you please help?</description>
		<content:encoded><![CDATA[<p>Nick, thanks for the reply, but I still don&#8217;t quite understand. Would you mind to maybe write one or two lines of code that would show me how to do it?<br />
I have a lyer named &#8220;Collision&#8221; where I have all my collision rectangles. </p>
<p>I have two variables, one Layer object &#8220;layer&#8221; and one MapObjectLayer &#8220;Collisionlayer&#8221;.</p>
<p>now i do in Loadcontent, just after loading the map:</p>
<p>            layer = map.GetLayer(&#8220;Collision&#8221;);<br />
            collisionLayer = (MapObjectLayer)layer;</p>
<p>But when I insert a breakpoint in this line, collisionlayer is null? What am I doing wrong? I guess I have not understood this casting somehow. Can you please help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Nick</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-434</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 15 Mar 2010 02:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-434</guid>
		<description>@Rabid: Download the project again. When I first uploaded it had that bug, but I fixed it and reuploaded it. Or you can fix it yourself. Just make sure line 51 of MapContent.cs looks like this:

foreach (XmlNode layerNode in document.SelectNodes(&quot;map/layer&#124;map/objectgroup&quot;))

I had an error in my query string in the first upload.

@Michael: You need to add the content project and library project to your solution. Then add a reference on your game to the library and a reference on the content to the content project. The demo has this set up so look at the project references in there if you&#039;re confused.

@Andi: You can get a named layer from the Map.GetLayer method. Then cast that to a MapObjectLayer which lets you use the GetObject method to get an object by name or you can simply enumerate the Objects collection.</description>
		<content:encoded><![CDATA[<p>@Rabid: Download the project again. When I first uploaded it had that bug, but I fixed it and reuploaded it. Or you can fix it yourself. Just make sure line 51 of MapContent.cs looks like this:</p>
<p>foreach (XmlNode layerNode in document.SelectNodes(&#8220;map/layer|map/objectgroup&#8221;))</p>
<p>I had an error in my query string in the first upload.</p>
<p>@Michael: You need to add the content project and library project to your solution. Then add a reference on your game to the library and a reference on the content to the content project. The demo has this set up so look at the project references in there if you&#8217;re confused.</p>
<p>@Andi: You can get a named layer from the Map.GetLayer method. Then cast that to a MapObjectLayer which lets you use the GetObject method to get an object by name or you can simply enumerate the Objects collection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Rabid Baboon</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-433</link>
		<dc:creator>Rabid Baboon</dc:creator>
		<pubDate>Mon, 15 Mar 2010 02:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-433</guid>
		<description>May have found a bug or I am not doing something right. I added a object layer to my map and from what I can tell it never reads the object layer, so it never gets added to the layers list. More info would be great!</description>
		<content:encoded><![CDATA[<p>May have found a bug or I am not doing something right. I added a object layer to my map and from what I can tell it never reads the object layer, so it never gets added to the layers list. More info would be great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Andi_S</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-432</link>
		<dc:creator>Andi_S</dc:creator>
		<pubDate>Sun, 14 Mar 2010 14:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-432</guid>
		<description>Nick,
thanks a lot for this! Could you maybe add a little example on how to do more than just draw the map? It&#039;s not clear to me how I can access different objects from game which are in the map.
My goal is to integrate this with farseer, so I have a collision layer,where I have drawn rectangles (like your cutscenes in your examples). Now I need to get all the rectangles I have drawn in my collision layer so that I can construct the collision geometry for farseer. I know probalby a stupid question, and one that shows that I still need to learn a lot in programming, but how can I access all the objects in a layer? So that I can go trough all of them with &quot;foreach&quot; and create for all of them a collision rectangle.? Also, how do I read the size of such a rectangle?
Hopefully anyone can shed some light into this for me.</description>
		<content:encoded><![CDATA[<p>Nick,<br />
thanks a lot for this! Could you maybe add a little example on how to do more than just draw the map? It&#8217;s not clear to me how I can access different objects from game which are in the map.<br />
My goal is to integrate this with farseer, so I have a collision layer,where I have drawn rectangles (like your cutscenes in your examples). Now I need to get all the rectangles I have drawn in my collision layer so that I can construct the collision geometry for farseer. I know probalby a stupid question, and one that shows that I still need to learn a lot in programming, but how can I access all the objects in a layer? So that I can go trough all of them with &#8220;foreach&#8221; and create for all of them a collision rectangle.? Also, how do I read the size of such a rectangle?<br />
Hopefully anyone can shed some light into this for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Michael Adaixo</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-431</link>
		<dc:creator>Michael Adaixo</dc:creator>
		<pubDate>Thu, 11 Mar 2010 23:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-431</guid>
		<description>Hey this is very nice, thank you. I was thinking in making a loader myself, but never thought it could get that complex. But I have some problems. I&#039;m using XNA for 6 months now, maybe, and I don&#039;t know how to use the code you gave. There are 3 different projects on the solution. How can I use what you&#039;ve created in my project??

I just need anyone to point me to the right direction.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hey this is very nice, thank you. I was thinking in making a loader myself, but never thought it could get that complex. But I have some problems. I&#8217;m using XNA for 6 months now, maybe, and I don&#8217;t know how to use the code you gave. There are 3 different projects on the solution. How can I use what you&#8217;ve created in my project??</p>
<p>I just need anyone to point me to the right direction.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Know when to be lazy by Crowbar</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-430</link>
		<dc:creator>Crowbar</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-430</guid>
		<description>Having been working on my own Platformer using XML and dreading the whole &quot;I need to make a level editor now :(&quot; thing, Tiled looks to be a blessing. I shall be playing with this later tonight for sure.

Thanks!</description>
		<content:encoded><![CDATA[<p>Having been working on my own Platformer using XML and dreading the whole &#8220;I need to make a level editor now <img src='http://blog.nickgravelyn.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> &#8221; thing, Tiled looks to be a blessing. I shall be playing with this later tonight for sure.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
