<?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: Cocos2d Example &#8211; Bouncing Ball</title>
	<atom:link href="http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/</link>
	<description>iPhone Development, Objective C, Cocoa</description>
	<lastBuildDate>Mon, 06 Sep 2010 16:28:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: dude</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-270</link>
		<dc:creator>dude</dc:creator>
		<pubDate>Wed, 30 Jun 2010 11:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-270</guid>
		<description>this blog desperately needs some code-formatting love.</description>
		<content:encoded><![CDATA[<p>this blog desperately needs some code-formatting love.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John From Berkeley &#187; links for 2010-04-26</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-263</link>
		<dc:creator>John From Berkeley &#187; links for 2010-04-26</dc:creator>
		<pubDate>Tue, 27 Apr 2010 00:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-263</guid>
		<description>[...] iPhone Dev » Cocos2d Example – Bouncing Ball (tags: cocos2d development howto iphone physics programming tutorials animation) [...]</description>
		<content:encoded><![CDATA[<p>[...] iPhone Dev » Cocos2d Example – Bouncing Ball (tags: cocos2d development howto iphone physics programming tutorials animation) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-262</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 16 Apr 2010 19:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-262</guid>
		<description>@Shafiq - could the problem be as simple as a typo? Probably not, but I thought I&#039;d ask just in case - because this:

&amp;updateStaticShap

looks like you might have meant:

&amp;updateStaticShape

(with an &quot;e&quot; at the end)</description>
		<content:encoded><![CDATA[<p>@Shafiq &#8211; could the problem be as simple as a typo? Probably not, but I thought I&#8217;d ask just in case &#8211; because this:</p>
<p>&amp;updateStaticShap</p>
<p>looks like you might have meant:</p>
<p>&amp;updateStaticShape</p>
<p>(with an &#8220;e&#8221; at the end)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shafiq</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-261</link>
		<dc:creator>Shafiq</dc:creator>
		<pubDate>Thu, 08 Apr 2010 23:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-261</guid>
		<description>Hi Guys,

It is one of the brilliant example I came across for Cocos2D, first of I am using 0.99, and I agree class names has been changed so I changed in this example, but somehow it seems there is no  cpContact point in collision function anymore, and second thing I wanna know if anyone of you came across to move an static sprite by action and it never called collision function to the floor static bodies/shapes, even I defined separate collision type for them.

I am making a game where you have two balls one you control by accelerometer and second one I animate using random actions. Now when first ball touch any of the floor shape collision function gets called and I showed a little particle effects but when second ball which has static body touch the floor no collision function gets called.

Now I know I have to update static body position according to sprite, thats exactly I am doing like this:
cpSpaceHashEach(space-&gt;activeShapes, &amp;updateShape, self);
cpSpaceHashEach(space-&gt;staticShapes, &amp;updateStaticShap, self);
cpSpaceRehashStatic(space);

It seems a dead end to my game, any help would be extremely appreciative.

regards,
Shafiq</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>It is one of the brilliant example I came across for Cocos2D, first of I am using 0.99, and I agree class names has been changed so I changed in this example, but somehow it seems there is no  cpContact point in collision function anymore, and second thing I wanna know if anyone of you came across to move an static sprite by action and it never called collision function to the floor static bodies/shapes, even I defined separate collision type for them.</p>
<p>I am making a game where you have two balls one you control by accelerometer and second one I animate using random actions. Now when first ball touch any of the floor shape collision function gets called and I showed a little particle effects but when second ball which has static body touch the floor no collision function gets called.</p>
<p>Now I know I have to update static body position according to sprite, thats exactly I am doing like this:<br />
cpSpaceHashEach(space-&gt;activeShapes, &amp;updateShape, self);<br />
cpSpaceHashEach(space-&gt;staticShapes, &amp;updateStaticShap, self);<br />
cpSpaceRehashStatic(space);</p>
<p>It seems a dead end to my game, any help would be extremely appreciative.</p>
<p>regards,<br />
Shafiq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-260</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 31 Mar 2010 09:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-260</guid>
		<description>Great tutorial and introduction.

One thing I found while messing around though was that if I &quot;dropped&quot; the ball from a greater height (500), the ball would pass right through the floor.

Is there any reason why this would happen?</description>
		<content:encoded><![CDATA[<p>Great tutorial and introduction.</p>
<p>One thing I found while messing around though was that if I &#8220;dropped&#8221; the ball from a greater height (500), the ball would pass right through the floor.</p>
<p>Is there any reason why this would happen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apple Trees &#124; Bytesize Adventures</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-259</link>
		<dc:creator>Apple Trees &#124; Bytesize Adventures</dc:creator>
		<pubDate>Sun, 07 Mar 2010 11:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-259</guid>
		<description>[...] An Introduction to game physics with Chipmunk Cocos2d Example &#8211; Bouncing Ball [...]</description>
		<content:encoded><![CDATA[<p>[...] An Introduction to game physics with Chipmunk Cocos2d Example &#8211; Bouncing Ball [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-256</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 10 Feb 2010 23:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-256</guid>
		<description>Hi Lt_Ender,

Exactly, some APIs change, more features included. This post
just provides a basic idea. :)</description>
		<content:encoded><![CDATA[<p>Hi Lt_Ender,</p>
<p>Exactly, some APIs change, more features included. This post<br />
just provides a basic idea. <img src='http://iphonedev.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lt_Ender</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-255</link>
		<dc:creator>Lt_Ender</dc:creator>
		<pubDate>Wed, 10 Feb 2010 23:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-255</guid>
		<description>more changes are required to update to cocos2d version 0.9 or 0.99

- class names have changed, most now use prefix &quot;CC&quot;, for example &quot;CCLayer&quot; instead of &quot;Layer&quot;</description>
		<content:encoded><![CDATA[<p>more changes are required to update to cocos2d version 0.9 or 0.99</p>
<p>- class names have changed, most now use prefix &#8220;CC&#8221;, for example &#8220;CCLayer&#8221; instead of &#8220;Layer&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joelrb</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-247</link>
		<dc:creator>joelrb</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-247</guid>
		<description>This tutorial needs updating for cocos2d v0.8.2 and  iPhone OS 3.1.2.

The following are my changes as the original code does not work in the latest iPhone OS 3.1.2.

In BallLayer.m: 
- Change [self add:ballSprite] to [self addChild:ballSprite]

Also in MyScene.m:
- Change [self add:ballLayer] to [self addChild:ballLayer] 

You can add the optional z-order like [self addChild:ballLayer z:0].  

In BouncingBallAppDelegate.m:

This method [director setLandscape:YES] is deprecated in cocos2d v0.8.2. 

Current version already provides in the template support for device orientation, like [[Director sharedDirector] setDeviceOrientation:CCDeviceOrientationPortrait].

The above changes made this tutorial work in cocos2d v0.8.2 and  iPhone OS 3.1.2.</description>
		<content:encoded><![CDATA[<p>This tutorial needs updating for cocos2d v0.8.2 and  iPhone OS 3.1.2.</p>
<p>The following are my changes as the original code does not work in the latest iPhone OS 3.1.2.</p>
<p>In BallLayer.m:<br />
- Change [self add:ballSprite] to [self addChild:ballSprite]</p>
<p>Also in MyScene.m:<br />
- Change [self add:ballLayer] to [self addChild:ballLayer] </p>
<p>You can add the optional z-order like [self addChild:ballLayer z:0].  </p>
<p>In BouncingBallAppDelegate.m:</p>
<p>This method [director setLandscape:YES] is deprecated in cocos2d v0.8.2. </p>
<p>Current version already provides in the template support for device orientation, like [[Director sharedDirector] setDeviceOrientation:CCDeviceOrientationPortrait].</p>
<p>The above changes made this tutorial work in cocos2d v0.8.2 and  iPhone OS 3.1.2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: angellixf</title>
		<link>http://iphonedev.net/2009/05/10/cocos2d-example-bouncing-ball/comment-page-1/#comment-246</link>
		<dc:creator>angellixf</dc:creator>
		<pubDate>Fri, 27 Nov 2009 08:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://iphonedev.net/?p=13#comment-246</guid>
		<description>Thanks...</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
