<?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: SDL Per Pixel Collision</title>
	<atom:link href="http://www.sdltutorials.com/sdl-per-pixel-collision/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sdltutorials.com/sdl-per-pixel-collision/</link>
	<description>SDL Tutorials - Game Tutorials - Programming Tutorials</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:45:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jason Norris</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-9530</link>
		<dc:creator>Jason Norris</dc:creator>
		<pubDate>Thu, 15 Jul 2010 16:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-9530</guid>
		<description>SDL_PollEvent works like a queue and will return NULL when no items are left in the queue. If you use it in an if-statement, it will only pull the first event in the queue. If you use a while-loop, it will continue until the queue has been entirely emptied.</description>
		<content:encoded><![CDATA[<p>SDL_PollEvent works like a queue and will return NULL when no items are left in the queue. If you use it in an if-statement, it will only pull the first event in the queue. If you use a while-loop, it will continue until the queue has been entirely emptied.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-9495</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Wed, 14 Jul 2010 12:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-9495</guid>
		<description>Hello!
Wonderful tutorial! 

But I think, we should have:

void Game::OnThink()
{
	if(SDL_PollEvent(&amp;event))
    {

instead of:

void Game::OnThink()
{
    while(SDL_PollEvent(&amp;event))</description>
		<content:encoded><![CDATA[<p>Hello!<br />
Wonderful tutorial! </p>
<p>But I think, we should have:</p>
<p>void Game::OnThink()<br />
{<br />
	if(SDL_PollEvent(&amp;event))<br />
    {</p>
<p>instead of:</p>
<p>void Game::OnThink()<br />
{<br />
    while(SDL_PollEvent(&amp;event))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Norris</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-6807</link>
		<dc:creator>Jason Norris</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-6807</guid>
		<description>Thank you for catching that, Erik. For those of you not seeing why this is a problem, this could cause the SDL_Surface&#039;s pixel array to go out of bounds in the GetAlphaXY function, resulting in a crash. The changes have now been made. :)</description>
		<content:encoded><![CDATA[<p>Thank you for catching that, Erik. For those of you not seeing why this is a problem, this could cause the SDL_Surface&#8217;s pixel array to go out of bounds in the GetAlphaXY function, resulting in a crash. The changes have now been made. <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-6802</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Mon, 22 Feb 2010 03:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-6802</guid>
		<description>found a bug in 
bool Entity::CheckCollision(Entity* entityA, Entity* entityB)


THIS
    for(int y = 0; y &lt;= collisionRect.h; y++)
        for(int x = 0; x &lt;= collisionRect.w; x++)

SHOULD BE
    for(int y = 0; y &lt;collisionRect.h; y++)
        for(int x = 0; x &lt; collisionRect.w; x++)

very good tutorial though one of the best i&#039;ve come across!</description>
		<content:encoded><![CDATA[<p>found a bug in<br />
bool Entity::CheckCollision(Entity* entityA, Entity* entityB)</p>
<p>THIS<br />
    for(int y = 0; y &lt;= collisionRect.h; y++)<br />
        for(int x = 0; x &lt;= collisionRect.w; x++)</p>
<p>SHOULD BE<br />
    for(int y = 0; y &lt;collisionRect.h; y++)<br />
        for(int x = 0; x &lt; collisionRect.w; x++)</p>
<p>very good tutorial though one of the best i&#039;ve come across!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NordCoder</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-6407</link>
		<dc:creator>NordCoder</dc:creator>
		<pubDate>Wed, 03 Feb 2010 19:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-6407</guid>
		<description>Very nice tutorial with good explanations. The red/green box feature is a nice visual touch. Keep up the good work :)</description>
		<content:encoded><![CDATA[<p>Very nice tutorial with good explanations. The red/green box feature is a nice visual touch. Keep up the good work <img src='http://www.sdltutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonardo</title>
		<link>http://www.sdltutorials.com/sdl-per-pixel-collision/comment-page-1/#comment-6396</link>
		<dc:creator>Leonardo</dc:creator>
		<pubDate>Tue, 02 Feb 2010 15:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.sdltutorials.com/?p=213#comment-6396</guid>
		<description>Good tutorials on pixel perfect collision with SDL are hard to find out there, thank you for this one. It is clear and very well written. The code is very easy to follow.</description>
		<content:encoded><![CDATA[<p>Good tutorials on pixel perfect collision with SDL are hard to find out there, thank you for this one. It is clear and very well written. The code is very easy to follow.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
