<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Windows Phone 7, XNA and Farseer Physics. And source... and a game... and...</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/blog/Windows-Phone-7-XNA-and-Farseer-Physics-And-source-and-a-game-and/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/f0997b26-3e6d-40fd-afef-4b16be322671.png</url>
		<title>Channel 9 - Windows Phone 7, XNA and Farseer Physics. And source... and a game... and...</title>
		<link></link>
	</image>
	<description> Today&#39;s project takes us further down the Windows Phone 7 &amp;amp; XNA trail, this time adding some cool stuff like Physics, level editors and more. Found via Windows Phone Geek&#39;sBounceBall - XNA Farseer Magic (full source code) post and is hosted Code Project  BounceBall - XNA Farseer Magic WHO, WHAT, WHERE AND WHY? Who this Article for? This article, written to accommodate developers new to building mobile games, as well as those who have built mobile applications using XNA. In order to get the most out of this Article, it is recommended that you have at least a good understanding of C# and the.NET Framework &amp;amp; some knowledge of Microsoft XNA Game studio. If you are new to Farseer Physics Engine, don’t be afraid, I started learning Farseer alongside this game. What the [heck]l I’m reading? Games for Windows Phone have a unique set of requirements and challenges that need to be addressed. Through the course of this Article, you will learn how to structure your application so as to provide a consistent and reliable experience to user. And for developer this article gives many reusable but very required components which a Game must have. Why this Article? I have many game Ideas for Windows Phone 7 and want to make them happen but when I started with the XNA and Farseer Physics Engine, I could not figure out optimum and productive way to build games fast and easily. Like there is no clear framework or reusable code available under one roof. So I started collecting/building the basic building block of any game. And after assembling everything in one project it seems very easy to work with the XNA and Farseer Physics Engine. So this article will give you power to build games within few days or even hours. What you will need? (Prerequisites) All the tools which we used are free to use.Microsoft Visual Studio 2010 Express for Windows PhoneGIMP, The GNU Image Manipulation ProgramFarseer Physics Engine ... The article is not just about the game, but a tutorial as well. It&#39;s as much, or more, about using and consuming the Farseer Physics Engine in WP7 as it is about the game... And you have to admit physics engine&#39;s are pretty cool... Once you get the source, there&#39;s a minor bit of setup to get started. First Step: Download Farseer Physics Engine What I found worked best for me was Farseer Physics Engine 3.2 WP7 download.  Download and unzip. Second Step: Building the VS Solution. I couldn&#39;t find a SLN file in the BounceBall - XNA Farseer Magic source download, but that&#39;s quickly fixed. Open one of the Projects, and then add the other projects.  I started with the FarseerXNAWP7 Project (&amp;quot;\BounceBall - XNA Farseer Magic\FarseerXNAWP7\FarseerXNAWP7\FarseerXNAWP7.csproj&amp;quot;) and then added FarseerXNAWP7Content, FarseerXNABase, and RenderXNA Projects to the Solution. Finally I added the Farseer Engine (first step above) and fixed up the references. Third Step: There is no third step... Run it! Now that we have working code, I&#39;d suggest going back to the article and read it in detail. There&#39;s a great deal of information about Farseer, XNA and Windows Phone 7 game writing (like screens, levels, etc). What I liked was how the author started with the simple and built up to the more complex. Usage Demo for Farseer Physics EngineSo far, we have physics objects, we know what measurements we need to follow, but there is no UI related stuff, because Farseer is physics engine not UI generator. Hence if we go ahead and create a body in world we can’t see anything on screen even if the body is there. To make Farseer physics objects to appear on screen we need to draw them using XNA. We can use Draw and DrawText methods from SpriteBatch class to render texture and text on screen. Below is sample to draw Rectangle (Square) of 10x10 size and fill it with MyTexture texture. So let’s build one sample to make a rectangle fall, because of gravity, on floor. Fire up Visual Studio 2010 Express for Windows Phone, create new project, and select XNA Game Studio 4.0 from templates and Windows Phone Game (4.0) from project template and name it FarseerXNADemo1. It will give you 2 projects, first one is XNA project and another one is content project to manage resources (like Images, Sound, Fonts etc). - First we need to reference to the Farseer Physics Engine for WP7 dll (can be found on http://farseerphysics.codeplex.com at Download tab). Now we need to get some texture (by texture we are referring to images) which will be rendered, but we are ok with the simple colors too so I’m going to add blank png Image (blank.png) to Content project. After following above step our solution explorer will look like below. ...   ... It just builds from there, all the way to the level editor (which the source is available for too)  From start to gaming... It&#39;s all there. &amp;nbsp; Here’s a few more links you might find interesting: App Hub Mixing the Game State Management and Platformer XNA RecipesMister Goodcat, Peter&#39;s blog Webday WP7 Preconf: Windows Phone 7 Application &amp;amp; Game platform - Silverlight &amp;amp; XNAWebday WP7 Preconf: WP7 XNA Game Platform - Deep DiveWP7 &amp;quot;XNA for Silverlight Developers&amp;quot; Series</description>
	<link></link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 18:24:52 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 18:24:52 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Windows Phone 7, XNA and Farseer Physics. And source... and a game... and...</title>
		<description>
			<![CDATA[nice blog&#33;<p>posted by mike</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Windows-Phone-7-XNA-and-Farseer-Physics-And-source-and-a-game-and#c634383530610000000</link>
		<pubDate>Thu, 14 Apr 2011 04:44:21 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Windows-Phone-7-XNA-and-Farseer-Physics-And-source-and-a-game-and#c634383530610000000</guid>
		<dc:creator>mike</dc:creator>
	</item>
</channel>
</rss>