<?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: Know when to be lazy</title>
	<atom:link href="http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 01:34:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Poopa</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-454</link>
		<dc:creator>Poopa</dc:creator>
		<pubDate>Fri, 28 May 2010 12:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-454</guid>
		<description>Managed to get some things to work, however it seems that some Tiles wont read its properties correct..some are null even if i&#039;ve placed properties for them :/</description>
		<content:encoded><![CDATA[<p>Managed to get some things to work, however it seems that some Tiles wont read its properties correct..some are null even if i&#8217;ve placed properties for them :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poopa</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-453</link>
		<dc:creator>Poopa</dc:creator>
		<pubDate>Wed, 19 May 2010 13:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-453</guid>
		<description>Got it to work in my own project, but what if i would like to change the position of the map etc? I have a rather big tileset and would like to change position of the camera.. the map.Draw method just seem to take Spritebatch..</description>
		<content:encoded><![CDATA[<p>Got it to work in my own project, but what if i would like to change the position of the map etc? I have a rather big tileset and would like to change position of the camera.. the map.Draw method just seem to take Spritebatch..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poopa</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-452</link>
		<dc:creator>Poopa</dc:creator>
		<pubDate>Wed, 19 May 2010 11:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-452</guid>
		<description>I&#039;m having trouble just building the demo you made...

Error	1	Building content threw FormatException: Input string was not in a correct format.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble just building the demo you made&#8230;</p>
<p>Error	1	Building content threw FormatException: Input string was not in a correct format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziple</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-444</link>
		<dc:creator>Ziple</dc:creator>
		<pubDate>Mon, 22 Mar 2010 19:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-444</guid>
		<description>Thank you, it&#039;s working like a charm now!
Yeaaahh!</description>
		<content:encoded><![CDATA[<p>Thank you, it&#8217;s working like a charm now!<br />
Yeaaahh!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-442</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 21 Mar 2010 17:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-442</guid>
		<description>@Ziple: You can fix that by finding any of the int.Parse or float.Parse in the library and adding a second parameter of CultureInfo.InvariantCulture. I should have remembered that.

@Shalarim: Nice find. I had no idea you could end up with an object that didn&#039;t have a width and height.</description>
		<content:encoded><![CDATA[<p>@Ziple: You can fix that by finding any of the int.Parse or float.Parse in the library and adding a second parameter of CultureInfo.InvariantCulture. I should have remembered that.</p>
<p>@Shalarim: Nice find. I had no idea you could end up with an object that didn&#8217;t have a width and height.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shalarim</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-441</link>
		<dc:creator>shalarim</dc:creator>
		<pubDate>Sun, 21 Mar 2010 17:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-441</guid>
		<description>Nick,
  After following your excellent Alien Aggressors tutorial (just started trying to learn XNA this week), I started reading around for more tutorials and read this blog post. I managed to get a map up and running without too much difficulty. 

After getting a basic map displaying, I moved on to trying to add some objects, first up was a pair of start points for my players. Here&#039;s where I found a problem, the MapObjectContent class assumes that the objects will have a width/height. Whereas I had just added points.
I tweaked the code to get around this:
   Location = new Rectangle(
    int.Parse(node.Attributes[&quot;x&quot;].Value),
    int.Parse(node.Attributes[&quot;y&quot;].Value),
    node.Attributes[&quot;width&quot;] == null ? 0 : int.Parse(node.Attributes[&quot;width&quot;].Value),
    node.Attributes[&quot;height&quot;] == null ?  0 : int.Parse(node.Attributes[&quot;height&quot;].Value));

Hope this helps prevent other people from running into this error.

Thanks for the tutorials and sample codes
Shalarim</description>
		<content:encoded><![CDATA[<p>Nick,<br />
  After following your excellent Alien Aggressors tutorial (just started trying to learn XNA this week), I started reading around for more tutorials and read this blog post. I managed to get a map up and running without too much difficulty. </p>
<p>After getting a basic map displaying, I moved on to trying to add some objects, first up was a pair of start points for my players. Here&#8217;s where I found a problem, the MapObjectContent class assumes that the objects will have a width/height. Whereas I had just added points.<br />
I tweaked the code to get around this:<br />
   Location = new Rectangle(<br />
    int.Parse(node.Attributes["x"].Value),<br />
    int.Parse(node.Attributes["y"].Value),<br />
    node.Attributes["width"] == null ? 0 : int.Parse(node.Attributes["width"].Value),<br />
    node.Attributes["height"] == null ?  0 : int.Parse(node.Attributes["height"].Value));</p>
<p>Hope this helps prevent other people from running into this error.</p>
<p>Thanks for the tutorials and sample codes<br />
Shalarim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziple</title>
		<link>http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/comment-page-1/#comment-440</link>
		<dc:creator>Ziple</dc:creator>
		<pubDate>Sat, 20 Mar 2010 14:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=1511#comment-440</guid>
		<description>I would like to say YEEAAAHHH...
But it doesn&#039;t work for me.
I just get this error while compiling your demo:

Error	1	Building content threw FormatException: Le format de la chaîne d&#039;entrée est incorrect (translation: incorrect string format).
   in System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)
   in System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
   in System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
   in System.Single.Parse(String s)
   in TiledContentPipeline.LayerContent..ctor(XmlNode node) dans C:\Users\Me\Documents\Projects\XNA\TiledDemo\TiledDemo\TiledContentPipeline\Content Types\LayerContent.cs:line 25

I suppose it is due to the fact that the decimal separator in the french language is &quot;,&quot; instead of &quot;.&quot; .
I do not know how to fix the problem so, could you help me please(I&#039;m sure it will also help a lot of other people)?

Thank you.</description>
		<content:encoded><![CDATA[<p>I would like to say YEEAAAHHH&#8230;<br />
But it doesn&#8217;t work for me.<br />
I just get this error while compiling your demo:</p>
<p>Error	1	Building content threw FormatException: Le format de la chaîne d&#8217;entrée est incorrect (translation: incorrect string format).<br />
   in System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)<br />
   in System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)<br />
   in System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)<br />
   in System.Single.Parse(String s)<br />
   in TiledContentPipeline.LayerContent..ctor(XmlNode node) dans C:\Users\Me\Documents\Projects\XNA\TiledDemo\TiledDemo\TiledContentPipeline\Content Types\LayerContent.cs:line 25</p>
<p>I suppose it is due to the fact that the decimal separator in the french language is &#8220;,&#8221; instead of &#8220;.&#8221; .<br />
I do not know how to fix the problem so, could you help me please(I&#8217;m sure it will also help a lot of other people)?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>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>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>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>
</channel>
</rss>
