<?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: When Things Collide, We Detect!</title>
	<atom:link href="http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/</link>
	<description>Game Development Demystified!</description>
	<lastBuildDate>Mon, 19 Jul 2010 10:31:59 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Reisuke</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-587</link>
		<dc:creator>Reisuke</dc:creator>
		<pubDate>Fri, 08 Jan 2010 18:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-587</guid>
		<description>nazeeh, if you don`t mind help me out a bit here.
Does this look ok for the kind of class you were saying? If so, how will I use it in my code exactly? Cause, i`ve tried it, and I get no errors compiling, but I can`t see it drawn, even though I added the draw command.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;


namespace When_Things_Collide_We_Detect
{
    class CollidingSprite
    {
        private Rectangle bounds;
        public Vector2 Position = new Vector2(0, 0);
        private Texture2D cSpriteTexture;

        public void LoadContent(ContentManager theContentManager, string theAssetName)
        {
            cSpriteTexture = theContentManager.Load(theAssetName);
            bounds = new Rectangle(0, 0, cSpriteTexture.Width, cSpriteTexture.Height);
        }

        public void Draw(SpriteBatch theSpriteBatch)
        {
            theSpriteBatch.Draw(cSpriteTexture, Position, new Rectangle(0, 0, cSpriteTexture.Width, cSpriteTexture.Height), Color.Red, 0.0f, new Vector2(cSpriteTexture.Width / 2, cSpriteTexture.Height / 2), 0.0f, SpriteEffects.None, 0);
        }
    }
}</description>
		<content:encoded><![CDATA[<p>nazeeh, if you don`t mind help me out a bit here.<br />
Does this look ok for the kind of class you were saying? If so, how will I use it in my code exactly? Cause, i`ve tried it, and I get no errors compiling, but I can`t see it drawn, even though I added the draw command.</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using Microsoft.Xna.Framework;<br />
using Microsoft.Xna.Framework.Content;<br />
using Microsoft.Xna.Framework.Graphics;</p>
<p>namespace When_Things_Collide_We_Detect<br />
{<br />
    class CollidingSprite<br />
    {<br />
        private Rectangle bounds;<br />
        public Vector2 Position = new Vector2(0, 0);<br />
        private Texture2D cSpriteTexture;</p>
<p>        public void LoadContent(ContentManager theContentManager, string theAssetName)<br />
        {<br />
            cSpriteTexture = theContentManager.Load(theAssetName);<br />
            bounds = new Rectangle(0, 0, cSpriteTexture.Width, cSpriteTexture.Height);<br />
        }</p>
<p>        public void Draw(SpriteBatch theSpriteBatch)<br />
        {<br />
            theSpriteBatch.Draw(cSpriteTexture, Position, new Rectangle(0, 0, cSpriteTexture.Width, cSpriteTexture.Height), Color.Red, 0.0f, new Vector2(cSpriteTexture.Width / 2, cSpriteTexture.Height / 2), 0.0f, SpriteEffects.None, 0);<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reisuke</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-586</link>
		<dc:creator>Reisuke</dc:creator>
		<pubDate>Fri, 08 Jan 2010 16:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-586</guid>
		<description>Sorry, not really. I`m really new to coding so I can`t imagine how I would do it. Anyway, thanks :)</description>
		<content:encoded><![CDATA[<p>Sorry, not really. I`m really new to coding so I can`t imagine how I would do it. Anyway, thanks :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nazeeh</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-584</link>
		<dc:creator>nazeeh</dc:creator>
		<pubDate>Fri, 08 Jan 2010 00:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-584</guid>
		<description>Hey Reisuke,

What I mean by that is that you create a Class for your game objects that includes everything they need. So that class would include a member variable that stores the Texture2D for that creature. It would also include a member variable of type Rectangle that is its BoundingRectange, etc. 

Then you can have a Update method in that class that you call in the game&#039;s Update method. The per class Update method would do move the creature around, move the bounding rectangle along with it, etc... 

Hope that makes some sense.</description>
		<content:encoded><![CDATA[<p>Hey Reisuke,</p>
<p>What I mean by that is that you create a Class for your game objects that includes everything they need. So that class would include a member variable that stores the Texture2D for that creature. It would also include a member variable of type Rectangle that is its BoundingRectange, etc. </p>
<p>Then you can have a Update method in that class that you call in the game&#8217;s Update method. The per class Update method would do move the creature around, move the bounding rectangle along with it, etc&#8230; </p>
<p>Hope that makes some sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reisuke</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-583</link>
		<dc:creator>Reisuke</dc:creator>
		<pubDate>Thu, 07 Jan 2010 12:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-583</guid>
		<description>How exactly can I create a container object for that?
Sorry if the question is stupid, but I just want to know how it`s done. By the way, great tutorials!</description>
		<content:encoded><![CDATA[<p>How exactly can I create a container object for that?<br />
Sorry if the question is stupid, but I just want to know how it`s done. By the way, great tutorials!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nazeeh</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-129</link>
		<dc:creator>nazeeh</dc:creator>
		<pubDate>Thu, 03 Jan 2008 17:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-129</guid>
		<description>Thanks KaBaL :) That&#039;s a good one. I put it as part of the post. Keep&#039;em coming :)</description>
		<content:encoded><![CDATA[<p>Thanks KaBaL :) That&#8217;s a good one. I put it as part of the post. Keep&#8217;em coming :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KaBaL</title>
		<link>http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/comment-page-1/#comment-128</link>
		<dc:creator>KaBaL</dc:creator>
		<pubDate>Thu, 03 Jan 2008 16:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2008/01/02/when-things-collide-we-detect/#comment-128</guid>
		<description>Don&#039;t forget, you can use more then one Bounding Box for a single object (sprite) that way you can get better detail for irregular shaped objects (ship&#039;s nose, wings, tail)</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget, you can use more then one Bounding Box for a single object (sprite) that way you can get better detail for irregular shaped objects (ship&#8217;s nose, wings, tail)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
