<?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: Exercise 10-4: Raindrop Game</title>
	<atom:link href="http://www.learningprocessing.com/exercises/chapter-10/exercise-10-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningprocessing.com</link>
	<description>A Beginner's Guide to Programming Images, Animation, and Interaction by Daniel Shiffman</description>
	<lastBuildDate>Fri, 10 Feb 2012 19:58:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.learningprocessing.com/exercises/chapter-10/exercise-10-4/comment-page-1/#comment-20639</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 27 Oct 2011 01:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1260#comment-20639</guid>
		<description>In the example, the drop is only checked if it is not &quot;finished.&quot;  So if you don&#039;t set finished equal to true then it reaches the bottom over and over again, incremented your missed variable over and over again.</description>
		<content:encoded><![CDATA[<p>In the example, the drop is only checked if it is not &#8220;finished.&#8221;  So if you don&#8217;t set finished equal to true then it reaches the bottom over and over again, incremented your missed variable over and over again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rbhghs0</title>
		<link>http://www.learningprocessing.com/exercises/chapter-10/exercise-10-4/comment-page-1/#comment-20579</link>
		<dc:creator>Rbhghs0</dc:creator>
		<pubDate>Sat, 27 Aug 2011 01:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1260#comment-20579</guid>
		<description>// I have a question about the raindrops.....
// the variable missed simply increments...
// when the drop hits the ground...

if (drops[i].reachedBottom()){
       drops[i].finished();  // why is this needed?
       missed++;
}

// But if I take out the code : drops[i].finished();
// then the missed counter increments out of control because of the
// for loop that this is in....
// can someone explain why? Thank You.</description>
		<content:encoded><![CDATA[<p>// I have a question about the raindrops&#8230;..<br />
// the variable missed simply increments&#8230;<br />
// when the drop hits the ground&#8230;</p>
<p>if (drops[i].reachedBottom()){<br />
       drops[i].finished();  // why is this needed?<br />
       missed++;<br />
}</p>
<p>// But if I take out the code : drops[i].finished();<br />
// then the missed counter increments out of control because of the<br />
// for loop that this is in&#8230;.<br />
// can someone explain why? Thank You.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

