<?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: Integrating Chipmunk into Objective C iPhone Games</title>
	<atom:link href="http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/</link>
	<description>Programming projects and sample code</description>
	<lastBuildDate>Wed, 16 May 2012 04:00:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sacramento bankruptcy attorney</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-17224</link>
		<dc:creator>Sacramento bankruptcy attorney</dc:creator>
		<pubDate>Wed, 09 May 2012 08:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-17224</guid>
		<description>&lt;strong&gt;Title...&lt;/strong&gt;

Hey man, I like your website, what background image do you use?...</description>
		<content:encoded><![CDATA[<p><strong>Title&#8230;</strong></p>
<p>Hey man, I like your website, what background image do you use?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louis vuitton</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-16134</link>
		<dc:creator>louis vuitton</dc:creator>
		<pubDate>Fri, 27 Apr 2012 07:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-16134</guid>
		<description>louis vuitton</description>
		<content:encoded><![CDATA[<p>louis vuitton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Busy Gdańsk</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-14717</link>
		<dc:creator>Busy Gdańsk</dc:creator>
		<pubDate>Mon, 26 Mar 2012 17:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-14717</guid>
		<description>I have really learned newer and more effective things from the blog post. Also a thing to I have noticed is that usually, FSBO sellers will certainly reject people. Remember, they might prefer to not ever use your services. But if anyone maintain a steady, professional partnership, offering aid and keeping contact for four to five weeks, you will usually be able to win an interview. From there, a listing follows. Cheers</description>
		<content:encoded><![CDATA[<p>I have really learned newer and more effective things from the blog post. Also a thing to I have noticed is that usually, FSBO sellers will certainly reject people. Remember, they might prefer to not ever use your services. But if anyone maintain a steady, professional partnership, offering aid and keeping contact for four to five weeks, you will usually be able to win an interview. From there, a listing follows. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louis vuitton speedy 35</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-14670</link>
		<dc:creator>louis vuitton speedy 35</dc:creator>
		<pubDate>Sat, 24 Mar 2012 17:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-14670</guid>
		<description>Would love to always get updated outstanding site!</description>
		<content:encoded><![CDATA[<p>Would love to always get updated outstanding site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-1790</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sat, 18 Jul 2009 23:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-1790</guid>
		<description>To be honest, Chipmunk isn&#039;t great when you try to add and remove objects very often, so I just add every figure on the screen to Chipmunk as soon as it is &#039;live&#039; and only remove it a half second or so after it dies.

This is because if you try to remove objects during collision events, you get unpredictable crashes. I might be able to make it run a bit smoother by trying to keep Chipmunks objects to a minimum, but I&#039;m scared of trying it out cause playing around with Chipmuck objects led to a LOT of hard-to-track crashes in the beginning that hung around for many weeks.

I&#039;ve found that about 20-30 objects in Chipmunk is all that StickWars will support at once on an 1-gen 400 mhz processor (iPhone 2G, 3G, iPod Touch 1G).

The optimizations I mainly did was to make sure what ever gameplay was going on, I wouldn&#039;t have to create a lot of new objects at once. So I took the trouble to create caches for objects like &#039;explosions&#039; (which are actually additional Chipmunk objects themselves!) as well as the particle animations which represents them visually.

It was a lot more work at first, but now it works nicely as I just keep an array of these objects and my LevelController pulls them in as needed from the cache, or does nothing if the cache is empty (too many explosions going on at once, like 10 or 15).</description>
		<content:encoded><![CDATA[<p>To be honest, Chipmunk isn&#8217;t great when you try to add and remove objects very often, so I just add every figure on the screen to Chipmunk as soon as it is &#8216;live&#8217; and only remove it a half second or so after it dies.</p>
<p>This is because if you try to remove objects during collision events, you get unpredictable crashes. I might be able to make it run a bit smoother by trying to keep Chipmunks objects to a minimum, but I&#8217;m scared of trying it out cause playing around with Chipmuck objects led to a LOT of hard-to-track crashes in the beginning that hung around for many weeks.</p>
<p>I&#8217;ve found that about 20-30 objects in Chipmunk is all that StickWars will support at once on an 1-gen 400 mhz processor (iPhone 2G, 3G, iPod Touch 1G).</p>
<p>The optimizations I mainly did was to make sure what ever gameplay was going on, I wouldn&#8217;t have to create a lot of new objects at once. So I took the trouble to create caches for objects like &#8216;explosions&#8217; (which are actually additional Chipmunk objects themselves!) as well as the particle animations which represents them visually.</p>
<p>It was a lot more work at first, but now it works nicely as I just keep an array of these objects and my LevelController pulls them in as needed from the cache, or does nothing if the cache is empty (too many explosions going on at once, like 10 or 15).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xun Cai</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-1789</link>
		<dc:creator>Xun Cai</dc:creator>
		<pubDate>Sat, 18 Jul 2009 21:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-1789</guid>
		<description>Hi Eric,
Thanks for you postings and you game is great. 
I have a question about Optimization of Chipmunk.
I am using it to make a game called 9000BC where there are a lot of soldiers.
I am testing the performance now. I noticed that if I have 20 or 30 chipmunk objects (body and shape) in the space, then the speed of the game drop down. Also, sometimes it runs faster sometimes it runs slower.

I notice that your game runs smoothly. Did you add the chipmunk body and shape when you throw the enemies to the sky and remove it from the chipmunk space once done?

Can you tell me some of the strategies you apply to make things run smoothly? 

Thanks
Xun Cai</description>
		<content:encoded><![CDATA[<p>Hi Eric,<br />
Thanks for you postings and you game is great.<br />
I have a question about Optimization of Chipmunk.<br />
I am using it to make a game called 9000BC where there are a lot of soldiers.<br />
I am testing the performance now. I noticed that if I have 20 or 30 chipmunk objects (body and shape) in the space, then the speed of the game drop down. Also, sometimes it runs faster sometimes it runs slower.</p>
<p>I notice that your game runs smoothly. Did you add the chipmunk body and shape when you throw the enemies to the sky and remove it from the chipmunk space once done?</p>
<p>Can you tell me some of the strategies you apply to make things run smoothly? </p>
<p>Thanks<br />
Xun Cai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-1782</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 16 Jul 2009 23:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-1782</guid>
		<description>Okay, I believe you might want to check over a few tutorials about OOP with Objective C. Try http://www.otierney.net/objective-c.html it is pretty good.

Basically, you need the follow the instructions above so that you can call the step: method inside of an object that holds references to the labels you create (make sure to store pointers to the labels when you create them).</description>
		<content:encoded><![CDATA[<p>Okay, I believe you might want to check over a few tutorials about OOP with Objective C. Try <a href="http://www.otierney.net/objective-c.html" rel="nofollow">http://www.otierney.net/objective-c.html</a> it is pretty good.</p>
<p>Basically, you need the follow the instructions above so that you can call the step: method inside of an object that holds references to the labels you create (make sure to store pointers to the labels when you create them).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Carmody</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-1781</link>
		<dc:creator>Sean Carmody</dc:creator>
		<pubDate>Thu, 16 Jul 2009 23:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-1781</guid>
		<description>Hi Eric,

Excellent job on Stick Wars. I actually have a question on this specific blog subject. 

If you are using Chipmunk and you have the &quot;update&quot; function running, how do you update a score from within &quot;update&quot;? I can&#039;t seem to reach any labels that I had set at initialization, and references to &quot;self&quot; don&#039;t work. The labels are not within the &quot;update&quot; function.

Do you have any tips or recommendations?

Thank you</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>Excellent job on Stick Wars. I actually have a question on this specific blog subject. </p>
<p>If you are using Chipmunk and you have the &#8220;update&#8221; function running, how do you update a score from within &#8220;update&#8221;? I can&#8217;t seem to reach any labels that I had set at initialization, and references to &#8220;self&#8221; don&#8217;t work. The labels are not within the &#8220;update&#8221; function.</p>
<p>Do you have any tips or recommendations?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-24</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-24</guid>
		<description>I don&#039;t quite understand what you mean by a &#039;command line&#039; for the game. However, I will be posting various parts of the source for the game to this website over the next few weeks, so check pack for tips and code samples.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t quite understand what you mean by a &#8216;command line&#8217; for the game. However, I will be posting various parts of the source for the game to this website over the next few weeks, so check pack for tips and code samples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richy</title>
		<link>http://johnehartzog.com/2009/04/integrating-chipmunk-into-objective-c/comment-page-1/#comment-21</link>
		<dc:creator>Richy</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://johnehartzog.com/?p=177#comment-21</guid>
		<description>Hey u r so awesome. Would it be possible if u could send me ur command line on stickwars bcuz I&#039;m trying to make my own game 
 for the itouch and I&#039;m kinda new at this stuff. Thanx my email address is ammadat@pacbell.net</description>
		<content:encoded><![CDATA[<p>Hey u r so awesome. Would it be possible if u could send me ur command line on stickwars bcuz I&#8217;m trying to make my own game<br />
 for the itouch and I&#8217;m kinda new at this stuff. Thanx my email address is <a href="mailto:ammadat@pacbell.net">ammadat@pacbell.net</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

