<?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: Diodontidae &#8211; postmortem</title>
	<atom:link href="http://www.ludumdare.com/compo/2009/05/02/diodontidae-postmortem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ludumdare.com/compo/2009/05/02/diodontidae-postmortem/</link>
	<description>A tri-annual 48 hour solo game development competition.</description>
	<lastBuildDate>Wed, 19 Jun 2013 21:16:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Jpfed</title>
		<link>http://www.ludumdare.com/compo/2009/05/02/diodontidae-postmortem/comment-page-1/#comment-6365</link>
		<dc:creator>Jpfed</dc:creator>
		<pubDate>Tue, 05 May 2009 04:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=6062#comment-6365</guid>
		<description><![CDATA[Regarding destroying objects: I&#039;m weirded out by modifying the game objects table while iterating over it.  Even if it works, it seems like it shouldn&#039;t.  I do something like 

-- &quot;garbage collect&quot; the gameObjects table
keptObjects = {}
for k,v in ipairs(gameObjects) do
if v.dead then
v.shape:destroy()
v.body:destroy()
else
table.insert(keptObjects,v)
end
end
gameObjects = keptObjects]]></description>
		<content:encoded><![CDATA[<p>Regarding destroying objects: I&#8217;m weirded out by modifying the game objects table while iterating over it.  Even if it works, it seems like it shouldn&#8217;t.  I do something like </p>
<p>&#8211; &#8220;garbage collect&#8221; the gameObjects table<br />
keptObjects = {}<br />
for k,v in ipairs(gameObjects) do<br />
if v.dead then<br />
v.shape:destroy()<br />
v.body:destroy()<br />
else<br />
table.insert(keptObjects,v)<br />
end<br />
end<br />
gameObjects = keptObjects</p>
]]></content:encoded>
	</item>
</channel>
</rss>
