<?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: How To Create A Breakout Game with Box2D and Cocos2D Tutorial: Part 2</title>
	<atom:link href="http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22/feed" rel="self" type="application/rss+xml" />
	<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22</link>
	<description>Tutorials for iPhone / iOS Developers and Gamers</description>
	<lastBuildDate>Sun, 29 Jan 2012 06:07:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Amol Chaudhari</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-8151</link>
		<dc:creator>Amol Chaudhari</dc:creator>
		<pubDate>Wed, 22 Dec 2010 05:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-8151</guid>
		<description>Simply awesome tutorials.... i cant wait to start working on it...

Thanx a lot  :)</description>
		<content:encoded><![CDATA[<p>Simply awesome tutorials&#8230;. i cant wait to start working on it&#8230;</p>
<p>Thanx a lot  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilja</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7805</link>
		<dc:creator>Ilja</dc:creator>
		<pubDate>Wed, 15 Dec 2010 13:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7805</guid>
		<description>Ray,

another thing i am worried about. I have slightly modified your code: added more blocks, made them smaller etc. I didn&#039;t introduce any randomness though. What I get every time I run the simulation is different behavior for the ball and (or) the blocks. The ball seems to hit the blocks by the slightly different angle every time I do restart, (or) the blocks move slightly different each time.

I do believe it&#039;s not my modifications which causes it, i don&#039;t have any randomness in my code (no random stuff in your code either as far as i am concerned). What do you think it is? Round-off errors in core of Box2D? But why are they different each time?</description>
		<content:encoded><![CDATA[<p>Ray,</p>
<p>another thing i am worried about. I have slightly modified your code: added more blocks, made them smaller etc. I didn&#8217;t introduce any randomness though. What I get every time I run the simulation is different behavior for the ball and (or) the blocks. The ball seems to hit the blocks by the slightly different angle every time I do restart, (or) the blocks move slightly different each time.</p>
<p>I do believe it&#8217;s not my modifications which causes it, i don&#8217;t have any randomness in my code (no random stuff in your code either as far as i am concerned). What do you think it is? Round-off errors in core of Box2D? But why are they different each time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7743</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Tue, 14 Dec 2010 20:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7743</guid>
		<description>Hi,

thanks ray, thats what i did, just wanted to make sure its the right way and i&#039;m not missing something :)

Thanks again,

Guy.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks ray, thats what i did, just wanted to make sure its the right way and i&#8217;m not missing something :)</p>
<p>Thanks again,</p>
<p>Guy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilja</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7717</link>
		<dc:creator>Ilja</dc:creator>
		<pubDate>Tue, 14 Dec 2010 12:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7717</guid>
		<description>@Ray: yes it solves the problem and now I can add more blocks and it all looks good. Thank you for your help!</description>
		<content:encoded><![CDATA[<p>@Ray: yes it solves the problem and now I can add more blocks and it all looks good. Thank you for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Wenderlich</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7674</link>
		<dc:creator>Ray Wenderlich</dc:creator>
		<pubDate>Tue, 14 Dec 2010 02:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7674</guid>
		<description>@Ilja: Whoops, nope that was my own mistake.  When setting the Box2D position for the blocks, it should be this:

&lt;pre&gt;
blockBodyDef.position.Set(((float)xOffset)/PTM_RATIO, 250/PTM_RATIO);
&lt;/pre&gt;

Before the xOffset was just an int, so it was having a rounding error.</description>
		<content:encoded><![CDATA[<p>@Ilja: Whoops, nope that was my own mistake.  When setting the Box2D position for the blocks, it should be this:</p>
<pre>
blockBodyDef.position.Set(((float)xOffset)/PTM_RATIO, 250/PTM_RATIO);
</pre>
<p>Before the xOffset was just an int, so it was having a rounding error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Wenderlich</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7671</link>
		<dc:creator>Ray Wenderlich</dc:creator>
		<pubDate>Tue, 14 Dec 2010 02:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7671</guid>
		<description>@guy: One way is to set a flag on a brick when the ball collides with it, but don&#039;t delete it till after the ball stops colliding with the brick (i.e. has bounced away).</description>
		<content:encoded><![CDATA[<p>@guy: One way is to set a flag on a brick when the ball collides with it, but don&#8217;t delete it till after the ball stops colliding with the brick (i.e. has bounced away).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilja</title>
		<link>http://www.raywenderlich.com/505/how-to-create-a-simple-breakout-game-with-box2d-and-cocos2d-tutorial-part-22#comment-7631</link>
		<dc:creator>Ilja</dc:creator>
		<pubDate>Tue, 14 Dec 2010 00:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=505#comment-7631</guid>
		<description>Hello Ray, and thank you for the tutorial!

I am observing a strange thing while running your code. You create 4 blocks and you use a constant padding value to create a gap between them. What I see on the screen, this gap is not always of the same width! In particular, the 4th block is 2 gaps away from the 3rd block...

My guess is Box2d causes this behavior. If I only create block sprites and place them on the screen and don&#039;t connect any bodies to the sprites, I get gaps of the same width between the blocks.

Thanks!
Greets from Latvia.</description>
		<content:encoded><![CDATA[<p>Hello Ray, and thank you for the tutorial!</p>
<p>I am observing a strange thing while running your code. You create 4 blocks and you use a constant padding value to create a gap between them. What I see on the screen, this gap is not always of the same width! In particular, the 4th block is 2 gaps away from the 3rd block&#8230;</p>
<p>My guess is Box2d causes this behavior. If I only create block sprites and place them on the screen and don&#8217;t connect any bodies to the sprites, I get gaps of the same width between the blocks.</p>
<p>Thanks!<br />
Greets from Latvia.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

