<?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: Space Rocks game step 4: Inheriting from Sprite</title>
	<atom:link href="http://blogs.silverarcade.com/silverlight-games-101/14/silverlight-space-rocks-game-step-4-inheriting-from-sprite/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.silverarcade.com/silverlight-games-101/14/silverlight-space-rocks-game-step-4-inheriting-from-sprite/</link>
	<description>Learn to write games in Silverlight using C#</description>
	<lastBuildDate>Fri, 02 Sep 2011 02:38:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Space Rocks game step 9: the asteroid sprite &#124; Silverlight Games 101</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/14/silverlight-space-rocks-game-step-4-inheriting-from-sprite/comment-page-1/#comment-2343</link>
		<dc:creator>Space Rocks game step 9: the asteroid sprite &#124; Silverlight Games 101</dc:creator>
		<pubDate>Mon, 19 Apr 2010 02:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/14/silverlight-space-rocks-game-step-4-inheriting-from-sprite/#comment-2343</guid>
		<description>[...] Just like with the ship, we can create a Silverlight Templated Control for the asteroids and then change it to inherit from Sprite. By inheriting from Sprite we’ll get support for movement based on a velocity and wrapping at the edges of the screen. So create a new Silverlight Templated Control from the new item wizard and call it Rock.cs. As we previously saw with the ship, this creates a new entry in Generic.xaml which contains the control template for the Rock sprite. You can edit this in Blend or by hand to make it look how you want. The asteroids are a bit different from the ship since there are 3 different shapes for the asteroids. Even the smaller versions (asteroids come in large, medium, and small) have those same 3 shapes. You could create a different Silverlight Templated Control for each variation and have them all inherit from Rock (which inherits from Sprite) but since they are so similar we can do a little visual magic instead. [...]</description>
		<content:encoded><![CDATA[<p>[...] Just like with the ship, we can create a Silverlight Templated Control for the asteroids and then change it to inherit from Sprite. By inheriting from Sprite we’ll get support for movement based on a velocity and wrapping at the edges of the screen. So create a new Silverlight Templated Control from the new item wizard and call it Rock.cs. As we previously saw with the ship, this creates a new entry in Generic.xaml which contains the control template for the Rock sprite. You can edit this in Blend or by hand to make it look how you want. The asteroids are a bit different from the ship since there are 3 different shapes for the asteroids. Even the smaller versions (asteroids come in large, medium, and small) have those same 3 shapes. You could create a different Silverlight Templated Control for each variation and have them all inherit from Rock (which inherits from Sprite) but since they are so similar we can do a little visual magic instead. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

