<?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: Thousander Club Update: October 9th</title>
	<atom:link href="http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/feed/" rel="self" type="application/rss+xml" />
	<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/</link>
	<description>An Indie Game Developer's somewhat interesting thoughts</description>
	<lastBuildDate>Tue, 07 Sep 2010 18:56:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: GBGames</title>
		<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/comment-page-1/#comment-28448</link>
		<dc:creator>GBGames</dc:creator>
		<pubDate>Tue, 10 Oct 2006 13:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://gbgames.com/blog/?p=473#comment-28448</guid>
		<description>Yeah, I guess we wouldn&#039;t want it to resemble SimCity too much...B-)</description>
		<content:encoded><![CDATA[<p>Yeah, I guess we wouldn&#8217;t want it to resemble SimCity too much&#8230;B-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Weatherby II</title>
		<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/comment-page-1/#comment-28444</link>
		<dc:creator>Keith Weatherby II</dc:creator>
		<pubDate>Tue, 10 Oct 2006 07:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://gbgames.com/blog/?p=473#comment-28444</guid>
		<description>I think a win condition would be important though, to calling it finished.  If it doesn&#039;t have a win condition, can we really call it a game?

Keith</description>
		<content:encoded><![CDATA[<p>I think a win condition would be important though, to calling it finished.  If it doesn&#8217;t have a win condition, can we really call it a game?</p>
<p>Keith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GBGames</title>
		<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/comment-page-1/#comment-28427</link>
		<dc:creator>GBGames</dc:creator>
		<pubDate>Mon, 09 Oct 2006 20:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://gbgames.com/blog/?p=473#comment-28427</guid>
		<description>Heh, I suppose getting a simple AI isn&#039;t so hard.  Maybe I will add it after all.</description>
		<content:encoded><![CDATA[<p>Heh, I suppose getting a simple AI isn&#8217;t so hard.  Maybe I will add it after all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Impossible</title>
		<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/comment-page-1/#comment-28424</link>
		<dc:creator>Impossible</dc:creator>
		<pubDate>Mon, 09 Oct 2006 18:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://gbgames.com/blog/?p=473#comment-28424</guid>
		<description>Argh... formatting got messed up... try this...
&lt;i&gt;
if(paddle.y+paddle.height &lt; ball.y)
    paddle.y+=paddle.velocity;
else if(paddle.y &gt; ball.y)
    paddle.y-=paddle.velocity;
&lt;/i&gt;</description>
		<content:encoded><![CDATA[<p>Argh&#8230; formatting got messed up&#8230; try this&#8230;<br />
<i><br />
if(paddle.y+paddle.height &lt; ball.y)<br />
    paddle.y+=paddle.velocity;<br />
else if(paddle.y &gt; ball.y)<br />
    paddle.y-=paddle.velocity;<br />
</i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Impossible</title>
		<link>http://gbgames.com/blog/2006/10/thousander-club-update-october-9th/comment-page-1/#comment-28423</link>
		<dc:creator>Impossible</dc:creator>
		<pubDate>Mon, 09 Oct 2006 18:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://gbgames.com/blog/?p=473#comment-28423</guid>
		<description>A simple pong AI that actually works is just a couple of lines of code... Basically
&lt;i&gt;
if(paddle.y+paddle.heightball.y)
    paddle.y-=paddle.velocity;
&lt;/i&gt;
You should be able to replace your player 2 input code, which I imagine looks similar except it&#039;s &quot;if(key==&#039;A&#039;)...&quot; with that AI code and it should work.  Don&#039;t blame me if it does something retarded :). 

There are a lot of tricks you can add to make it more interesting to play against.  Have it hesitate, overshoot or undershoot, etc.</description>
		<content:encoded><![CDATA[<p>A simple pong AI that actually works is just a couple of lines of code&#8230; Basically<br />
<i><br />
if(paddle.y+paddle.heightball.y)<br />
    paddle.y-=paddle.velocity;<br />
</i><br />
You should be able to replace your player 2 input code, which I imagine looks similar except it&#8217;s &#8220;if(key==&#8217;A')&#8230;&#8221; with that AI code and it should work.  Don&#8217;t blame me if it does something retarded <img src='http://gbgames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>There are a lot of tricks you can add to make it more interesting to play against.  Have it hesitate, overshoot or undershoot, etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
