<?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: iPhone Game Programming &#8211; Tutorial 10 &#8211; Game Structure</title>
	<atom:link href="http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/</link>
	<description>iPhone Game Development - Web Development</description>
	<lastBuildDate>Fri, 12 Mar 2010 13:58:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Claire</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2847</link>
		<dc:creator>Claire</dc:creator>
		<pubDate>Tue, 09 Mar 2010 15:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2847</guid>
		<description>Hey Mike,
I&#039;m having the same problem as the two above posters, your example code doesnt work properly if i change the PORTRAIT_MODE flag to NO and i have tried your suggestiosn above but am still no getting a coordinate system that relates to any of the corners.
Any ideas what i am doing wrong? (or could you update tutorial 10 so when landscape is used it will work properly?)
Loving your tutorials though its been so helpful.</description>
		<content:encoded><![CDATA[<p>Hey Mike,<br />
I&#8217;m having the same problem as the two above posters, your example code doesnt work properly if i change the PORTRAIT_MODE flag to NO and i have tried your suggestiosn above but am still no getting a coordinate system that relates to any of the corners.<br />
Any ideas what i am doing wrong? (or could you update tutorial 10 so when landscape is used it will work properly?)<br />
Loving your tutorials though its been so helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2798</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sun, 28 Feb 2010 18:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2798</guid>
		<description>Hey Mike 

I&#039;m a little lost here I&#039;ve switched the game over to Landscape mode using glRotate and glOthof but i cant figure out how to get it to render properly it keeps stretching the image, is that suposed to happen

THX for all your Help, when my game is done I&#039;m definitely giving you a shout out in the credits</description>
		<content:encoded><![CDATA[<p>Hey Mike </p>
<p>I&#8217;m a little lost here I&#8217;ve switched the game over to Landscape mode using glRotate and glOthof but i cant figure out how to get it to render properly it keeps stretching the image, is that suposed to happen</p>
<p>THX for all your Help, when my game is done I&#8217;m definitely giving you a shout out in the credits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2787</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 26 Feb 2010 23:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2787</guid>
		<description>Great video Mike 

Very helpful but I&#039;m a little lost and I just have 2 questions, first how to I set this thing to landscape and second how can i move the little guy around with the joy stick instead of the accelerometer. (i see the code there for it, and I&#039;ve watch Tutorial 11 twice but I just cant get it to work) 

Thanks for any help that anyone can give.</description>
		<content:encoded><![CDATA[<p>Great video Mike </p>
<p>Very helpful but I&#8217;m a little lost and I just have 2 questions, first how to I set this thing to landscape and second how can i move the little guy around with the joy stick instead of the accelerometer. (i see the code there for it, and I&#8217;ve watch Tutorial 11 twice but I just cant get it to work) </p>
<p>Thanks for any help that anyone can give.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2753</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 24 Feb 2010 09:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2753</guid>
		<description>Hi Andy

Your not being dumb, part 2 is still missing in action.  With the book I just didn&#039;t get time to do it.

I&#039;m planning on more tutorials once the book is out though.

Mike</description>
		<content:encoded><![CDATA[<p>Hi Andy</p>
<p>Your not being dumb, part 2 is still missing in action.  With the book I just didn&#8217;t get time to do it.</p>
<p>I&#8217;m planning on more tutorials once the book is out though.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andyewebb</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2752</link>
		<dc:creator>Andyewebb</dc:creator>
		<pubDate>Wed, 24 Feb 2010 08:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2752</guid>
		<description>Hi 

Great Tutorials. Not sure if i am being dumb but dont seem to be able to find tutorial 10 part 2? Anyone point me in the right direction.

Andy</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Great Tutorials. Not sure if i am being dumb but dont seem to be able to find tutorial 10 part 2? Anyone point me in the right direction.</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2749</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 23 Feb 2010 09:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2749</guid>
		<description>Thanks Mike,

That&#039;s pretty much what I thought :)

Simon

PS it&#039;s a bug - one that probably isn&#039;t in code for SLQ :-)</description>
		<content:encoded><![CDATA[<p>Thanks Mike,</p>
<p>That&#8217;s pretty much what I thought :)</p>
<p>Simon</p>
<p>PS it&#8217;s a bug &#8211; one that probably isn&#8217;t in code for SLQ :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-24/#comment-2748</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 23 Feb 2010 09:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2748</guid>
		<description>Thanks Mike,

That&#039;s pretty much what I thought :)

I just checked again and it&#039;s not in the GameScene.

Simon

PS it&#039;s a bug - one that probably still isn&#039;t in code for SLQ :-)</description>
		<content:encoded><![CDATA[<p>Thanks Mike,</p>
<p>That&#8217;s pretty much what I thought :)</p>
<p>I just checked again and it&#8217;s not in the GameScene.</p>
<p>Simon</p>
<p>PS it&#8217;s a bug &#8211; one that probably still isn&#8217;t in code for SLQ :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-23/#comment-2747</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Tue, 23 Feb 2010 07:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2747</guid>
		<description>Hi Simon

Your right that anything created with alloc should be released when your done with it.  This should be in the dealloc method for the GameScene so if its not then that is a bug.

As long as you released the original object after you added it to the NSArray, then just releasing the NSArray will also release the retain it has on all its objects.  If this causes the objects to have a retain of 0 then they will be deleted.  That is why it&#039;s important to release the object after adding it to the array.

Adding an object to an NSArray will up its retain count to 2, as long as nothing else has also upped the count, so releasing the original object drops it to 1 which is then dropped to 0 when the array is deallocated.

Hope that makes sense.

Mike</description>
		<content:encoded><![CDATA[<p>Hi Simon</p>
<p>Your right that anything created with alloc should be released when your done with it.  This should be in the dealloc method for the GameScene so if its not then that is a bug.</p>
<p>As long as you released the original object after you added it to the NSArray, then just releasing the NSArray will also release the retain it has on all its objects.  If this causes the objects to have a retain of 0 then they will be deleted.  That is why it&#8217;s important to release the object after adding it to the array.</p>
<p>Adding an object to an NSArray will up its retain count to 2, as long as nothing else has also upped the count, so releasing the original object drops it to 1 which is then dropped to 0 when the array is deallocated.</p>
<p>Hope that makes sense.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-23/#comment-2746</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 22 Feb 2010 20:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2746</guid>
		<description>Hi Mike,

I&#039;m just going back over the code in your tutorial because I wanted to make sure I was cleaning up NSArray correctly. But I&#039;m looking in the GameScene.m where you&#039;re using a mutable array to hold your entity objects and I don&#039;t see a dealloc anywhere?

Can you confirm that it&#039;s a mistake? (As the array is set using alloc)

Could you also confirm whether i need to release each object and then the array. I assume that I&#039;ll get a memory leak if I don&#039;t do this.

Don&#039;t mean to ask potentialy obvious questions, but I use your tuts as a base for my understanding so I get confused when things don&#039;t seem to be how I think they should be, at which point doubt creeps in :-)

Thanks

Simon</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I&#8217;m just going back over the code in your tutorial because I wanted to make sure I was cleaning up NSArray correctly. But I&#8217;m looking in the GameScene.m where you&#8217;re using a mutable array to hold your entity objects and I don&#8217;t see a dealloc anywhere?</p>
<p>Can you confirm that it&#8217;s a mistake? (As the array is set using alloc)</p>
<p>Could you also confirm whether i need to release each object and then the array. I assume that I&#8217;ll get a memory leak if I don&#8217;t do this.</p>
<p>Don&#8217;t mean to ask potentialy obvious questions, but I use your tuts as a base for my understanding so I get confused when things don&#8217;t seem to be how I think they should be, at which point doubt creeps in :-)</p>
<p>Thanks</p>
<p>Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.71squared.com/2009/07/iphone-game-programming-tutorial-10-game-structure/comment-page-23/#comment-2474</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 19 Jan 2010 18:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=603#comment-2474</guid>
		<description>Sorry finally figured out you can&#039;t post url&#039;s in here.  The website is squaresmile.com</description>
		<content:encoded><![CDATA[<p>Sorry finally figured out you can&#8217;t post url&#8217;s in here.  The website is squaresmile.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>
