<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://geeks.netindonesia.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Just a game developer :D</title><link>http://geeks.netindonesia.net/blogs/shieny/default.aspx</link><description>Let&amp;#39;s Develop Our Dream Gaaammeee ^^</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Playing with Sound on XNA 4 WP7</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx</link><pubDate>Tue, 22 Jun 2010 10:31:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:190014</guid><dc:creator>shieny</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=190014</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx#comments</comments><description>&lt;p&gt;Hi game geeks! :D&lt;/p&gt;&lt;p&gt;Like we&amp;#39;ve all already know, we can play sound on our XNA games by using Microsoft XACT (Cross-platfom Audio Creation Tool), which will produce an .xap file that we have to add to our game project, and then we can just call the sound by its name and play it :)&lt;/p&gt;&lt;p&gt;I thought that it&amp;#39;s the common thing on all XNA games, regardless to the game platform, but several days ago, I&amp;#39;ve found that AudioEngine class that is needed to play sound &amp;quot;compressed&amp;quot; using XACT, is not supported on Windows Phone 7 platform &amp;gt;&amp;lt; &lt;/p&gt;&lt;p&gt;Luckily XNA has provided another way to play sound on our game without using XACT and AudioEngine class :D&lt;/p&gt;&lt;p&gt;First, we declare the SoundEffect variable: &lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;SoundEffect sfx;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Then we load the SoundEffect using ContentManager: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;sfx = Content.Load&amp;lt;SoundEffect&amp;gt;(&amp;quot;sfx&amp;quot;);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And we have to create instance of SoundEffect using SoundEffect.CreateInstance(): &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;SoundEffectInstance sfxInstance; &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;sfxInstance = sfx.CreateInstance();&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And then we can just play the sound using SoundEffectInstance.Play():&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;sfxInstance.Play();&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Absolutely easy, isn&amp;#39;t it? :D&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can get the example project &lt;a href="http://geeks.netindonesia.net/controlpanel/blogs/agategames.com/SoundPlayer.rar" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Happy game developing! ^^ &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx&amp;amp;subject=Playing with Sound on XNA 4 WP7" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx&amp;amp;t=Playing+with+Sound+on+XNA+4+WP7" target="_blank" title="Submit Playing with Sound on XNA 4 WP7 to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx&amp;amp;title=Playing+with+Sound+on+XNA+4+WP7" target="_blank" title="Submit Playing with Sound on XNA 4 WP7 to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx&amp;amp;phase=2" target="_blank" title="Submit Playing with Sound on XNA 4 WP7 to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/22/playing-with-sound-on-xna-4-wp7.aspx&amp;amp;title=Playing+with+Sound+on+XNA+4+WP7" target="_blank" title="Add Playing with Sound on XNA 4 WP7 to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=190014" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA/default.aspx">XNA</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/Windows+Phone+7/default.aspx">Windows Phone 7</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA4/default.aspx">XNA4</category></item><item><title>XNA 4 on Windows Phone 7: Beware of Memory Leak!</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx</link><pubDate>Fri, 18 Jun 2010 09:38:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:189933</guid><dc:creator>shieny</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=189933</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx#comments</comments><description>Hello all~~~ :D
&lt;br /&gt;&lt;br /&gt;
Lately we&amp;#39;ve been busy on developing our WP7 games using XNA 4, while researching about that deeper (since there are some differences with using XNA to develop game on PC or Xbox360).
&lt;br /&gt;&lt;br /&gt;
Two days ago we are confused when we got OutOfMemoryException thrown, when we were trying to load a Texture2D. We admitted it that we&amp;#39;ve been loading many Texture2D before that, so it finally reached the maximum memory available for games on WP7 (our friend once said that most frustrating issues on developing mobile game is memory and processor issues &amp;gt;:)
Actually we never unload or dispose the Texture2D (or other class instances) we&amp;#39;ve been loading to any game we&amp;#39;ve developed using XNA, because XNA has handled it very well, without the game developers have to actually overriding the UnloadContent method :) 
&lt;br /&gt;&lt;br /&gt;
But when this problem appears, we guess it is because we can utilize much more memories when we&amp;#39;re developing games on PC or Xbox360 :D
&lt;br /&gt;&lt;br /&gt;
So we have tried to used ContentManager.Dispose() and ContentManager.Unload() in the body of our Game.UnloadContent(), but it&amp;#39;s failed :(
And then we have tried to used Texture2D.Dispose() and Texture2D.Unload() for each Texture2D we&amp;#39;ve loaded in our Game.LoadContent(), but it&amp;#39;s also failed &amp;gt;&lt;br /&gt;&lt;br /&gt;
Our actions above actually made the exception didn&amp;#39;t appear anymore and we had successfully load all Texture2D we need, but when we called SpriteBatch.End() in the end of our Game.Draw() function, another exception was appearing (_ _&amp;quot;), said that Texture2D had been disposed, so we couldn&amp;#39;t use it anymore.
&lt;br /&gt;&lt;br /&gt;
We considered to give up and take the easiest way to deal with this problem, that is reducing the 2D assets of the game and maximize the reusability of the assets &amp;gt;:D Fortunately we don&amp;#39;t take that way because the solution to this problem is actually very easy and make us learn to build games with higher quality code :D
&lt;br /&gt;&lt;br /&gt;
These are the steps:
&lt;br /&gt;&lt;br /&gt;
1. Divide the games by stages or scenes that defines which assets that currently being drawn on the game. Simply, if we are currently on stage 1 of the game, assets of stage 2 won&amp;#39;t be drawn, right? So we have to make sure that we only load assets that is currently needed and load the rest later, when they are needed. But finally when we reach the final stage where all assets from first to end stage have been drawn, it means that all textures have been loaded and we never unload it, the OutOfMemoryException will still be thrown. So, what the next step to make this isn&amp;#39;t happen anymore?
&lt;br /&gt;&lt;br /&gt;
2. We have to unload the assets each time we advance to the next stages or scenes using ContentManager.Unload(). But wait, I did mention that we have tried it and it threw another exception, right? But luckily it only happens when we load the assets using same ContentManager that has been unloaded, it means -&amp;gt; calling ContentManager.Load() after ContentManager.Unload() will throw InvalidOperationException on next SpriteBatch.End() call. So all we have to do is: using a new ContentManager to load assets for each stages or scenes :D And then we can allocate the memory just with the assets we currently need when the game is running, because we immediately unload all assets of a stage when we move to another stage.
&lt;br /&gt;&lt;br /&gt;
We bet some of you are a little bit confused by what we explained above, because of my English XD So we give another form of explanation in more universal language :D
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Class Scene&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;font face="Courier New"&gt;
public class Scene()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Game1 ParentGame;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public ContentManager Content;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Texture2D Bg;	&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Scene(Game1 parentGame)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ParentGame = parentGame;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void LoadContent()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Content = new ContentManager(this.Services, &amp;quot;Content&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bg = Content.Load(“bg”);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void UnloadContent()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Content.Unload();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void Update(GameTime gameTime)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void Draw(GameTime gameTime)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parentGame.SpriteBatch.Draw(Bg, Vector2.Zero, Color.White);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
&lt;/font&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Enum EGameState&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;font face="Courier New"&gt;
public enum EGameState&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;Undefined,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;OnScene1,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;OnScene2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/font&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Class Game1&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;font face="Courier New"&gt;
public class Game1 : Microsoft.Xna.Framework.Game&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Scene Scene1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Scene Scene2;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public SpriteBatch SpriteBatch;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;EGameState currentGameState;&lt;br /&gt;	
&amp;nbsp;&amp;nbsp;&amp;nbsp;public EGameState CurrentGameState&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return currentGameState;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch (currentGameState)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene1.UnloadContent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene2.UnloadContent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch (value)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene1.LoadContent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene2.LoadContent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;currentGameState = value;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Game1()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene1 = new Scene();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene2 = new Scene();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void LoadContent()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SpriteBatch = new SpriteBatch(GraphicsDevice);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CurrentGameState = OnScene1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void Update(GameTime gameTime)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch (currentGameState)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene1.Update(gameTime);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene2.Update(gameTime);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public void Draw(GameTime gameTime)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch (currentGameState)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene1.Draw(gameTime);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case OnScene2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scene2.Draw(gameTime);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;/font&gt;
&lt;br /&gt;
We can see on property Game1.CurrentGameState, that each time we change scene of our game, it unloads the previous scene before loads the new scene.
&lt;br /&gt;&lt;br /&gt;
I still don’t know if this is the best solution of memory leak issue on WP7, but until now we haven’t found any new problems arise because of this solution. If you do, please kindly tell me :D
&lt;br /&gt;&lt;br /&gt;
Happy game developing! ^^ 

&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx&amp;amp;subject=XNA 4 on Windows Phone 7: Beware of Memory Leak!" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx&amp;amp;t=XNA+4+on+Windows+Phone+7%3a+Beware+of+Memory+Leak!" target="_blank" title="Submit XNA 4 on Windows Phone 7: Beware of Memory Leak! to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx&amp;amp;title=XNA+4+on+Windows+Phone+7%3a+Beware+of+Memory+Leak!" target="_blank" title="Submit XNA 4 on Windows Phone 7: Beware of Memory Leak! to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx&amp;amp;phase=2" target="_blank" title="Submit XNA 4 on Windows Phone 7: Beware of Memory Leak! to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/06/18/xna-4-on-windows-phone-7-beware-of-memory-leak.aspx&amp;amp;title=XNA+4+on+Windows+Phone+7%3a+Beware+of+Memory+Leak!" target="_blank" title="Add XNA 4 on Windows Phone 7: Beware of Memory Leak! to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=189933" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA/default.aspx">XNA</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/WP7/default.aspx">WP7</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/Windows+Phone+7/default.aspx">Windows Phone 7</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA4/default.aspx">XNA4</category></item><item><title>Creating a Game using Silverlight?</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx</link><pubDate>Tue, 04 May 2010 10:21:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:187136</guid><dc:creator>shieny</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=187136</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx#comments</comments><description>&lt;p&gt;Hello all! :D&lt;/p&gt;&lt;p&gt;Do you love playing web games on Facebook, MySpace, or games portal? &lt;/p&gt;&lt;p&gt;Have you ever dream to build your own web games and let everybody in the world playing it happily?&lt;/p&gt;&lt;p&gt;Here we are, Agate Studio, with eager to invite more people to become a game developer, presents you a new e-book to guide you start developing web games using a magnificent technology, Microsoft Silverlight 4!&lt;/p&gt;&lt;p&gt;&lt;img src="http://agategames.com/silverlightbooks/cover_silverlight.jpg" alt="" width="" align="" border="" height="" hspace="" /&gt;&lt;/p&gt;&lt;p&gt;It&amp;#39;s FREE!! &lt;/p&gt;&lt;p&gt;You can download it &lt;a href="http://netindonesia.net/files/folders/ebook/entry187134.aspx"&gt;here&lt;/a&gt;. And download the source code &lt;a href="http://netindonesia.net/files/folders/ebook_sourcecode/entry187135.aspx"&gt;here&lt;/a&gt;. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Happy Silverlighting, everyone!! ^^ &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx&amp;amp;subject=Creating a Game using Silverlight?" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx&amp;amp;t=Creating+a+Game+using+Silverlight%3f" target="_blank" title="Submit Creating a Game using Silverlight? to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx&amp;amp;title=Creating+a+Game+using+Silverlight%3f" target="_blank" title="Submit Creating a Game using Silverlight? to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx&amp;amp;phase=2" target="_blank" title="Submit Creating a Game using Silverlight? to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/05/04/creating-a-game-using-silverlight.aspx&amp;amp;title=Creating+a+Game+using+Silverlight%3f" target="_blank" title="Add Creating a Game using Silverlight? to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=187136" width="1" height="1"&gt;</description></item><item><title>Hot E-book about XNA and Game Development is Here! :D</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx</link><pubDate>Wed, 14 Apr 2010 04:11:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:186777</guid><dc:creator>shieny</dc:creator><slash:comments>35</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=186777</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx#comments</comments><description>&lt;p&gt;Hi there! It&amp;#39;s been a long time since my last blog post &amp;gt;_&amp;lt;&lt;/p&gt;&lt;p&gt;But this time I&amp;#39;m not going to share any news on my post. I will give you some good news, instead ;) &lt;/p&gt;&lt;p&gt;My new e-book, a collaboration with my partner, &lt;a href="http://geeks.netindonesia.net/blogs/clawford/" target="_blank"&gt;Arief Widhiyasa&lt;/a&gt;, has been released, it&amp;#39;s about XNA game development and how to make a simple game using XNA.&lt;/p&gt;&lt;p&gt;This book is dedicated to everyone (especially Indonesian people, because the e-book is in Indonesian :) who ever dream to make her/his own game, but don&amp;#39;t know where to start!&lt;/p&gt;&lt;p&gt;&lt;img src="http://agategames.com/xnabooks/cover.jpg" alt="Books Cover" width="128" align="" border="" height="165" hspace="" /&gt;&lt;/p&gt;&lt;p&gt;Feel free to download it &lt;a href="http://geeks.netindonesia.net/files/folders/ebook/entry186774.aspx" target="_blank"&gt;here&lt;/a&gt;!&lt;/p&gt;&lt;p&gt;And the source code &amp;amp; assets of the game created on the book &lt;a href="http://geeks.netindonesia.net/files/folders/ebook_sourcecode/entry186776.aspx" target="_blank"&gt;here&lt;/a&gt;! (but it&amp;#39;s much much better if you just open the assets, and leave the source code unopened until you finished the steps provided on the book on your own! :) &lt;/p&gt;&lt;p&gt;Thank you very much and... Happy game developing!! \(^o^)/ &lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx&amp;amp;subject=Hot E-book about XNA and Game Development is Here! :D" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx&amp;amp;t=Hot+E-book+about+XNA+and+Game+Development+is+Here!+%3aD" target="_blank" title="Submit Hot E-book about XNA and Game Development is Here! :D to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx&amp;amp;title=Hot+E-book+about+XNA+and+Game+Development+is+Here!+%3aD" target="_blank" title="Submit Hot E-book about XNA and Game Development is Here! :D to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx&amp;amp;phase=2" target="_blank" title="Submit Hot E-book about XNA and Game Development is Here! :D to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2010/04/14/hot-e-book-about-xna-is-here-d.aspx&amp;amp;title=Hot+E-book+about+XNA+and+Game+Development+is+Here!+%3aD" target="_blank" title="Add Hot E-book about XNA and Game Development is Here! :D to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=186777" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA/default.aspx">XNA</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/book/default.aspx">book</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/game/default.aspx">game</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/game+development/default.aspx">game development</category></item><item><title>XNA Game Studio 2.0 and 3.0 CTP</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx</link><pubDate>Mon, 21 Jul 2008 05:32:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:57244</guid><dc:creator>shieny</dc:creator><slash:comments>74</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=57244</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx#comments</comments><description>&lt;p&gt;Hello everyone.. Sorry for taking you so long, if you&amp;#39;re all waiting for this post, that is the first post actually talking about XNA, since my first post isn&amp;#39;t talking about XNA at all, hehe..&lt;/p&gt;
&lt;p&gt;Hmmpph.. I think before we go deeper into XNA world, it will be nice if we can know what features that XNA provides, that can make our game-developing activity become easier and more interesting.&lt;/p&gt;
&lt;p&gt;Although it&amp;#39;s been a while since XNA Game Studio 3.0 CTP was released earlier this year, I want to write about the differences between this version and the previous version. I&amp;#39;m sure there are many people out there who still don&amp;#39;t know about this, even they don&amp;#39;t know about the newest version of XNA. So, here we go...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;XNA Game Studio 2.0&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;If we open our Microsoft Visual Studio 2005 installed with XNA Game Studio 2.0, we will find this dialog box if we go to the menu File &amp;gt; New &amp;gt; Project...&lt;/p&gt;
&lt;p&gt;&lt;img src="http://geeks.netindonesia.net/blogs/shieny/XNA%201.png" alt="" border="0" height="405" width="602" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So in the picture above, we can see 7 installed templates that is provided by XNA Game Studio 2.0. Let&amp;#39;s take a closer look to each of them..:)&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Windows Game (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;This is the template that we choose if we want to make a game for Windows (the name has described it clearly, hasn&amp;#39;t it?). By using XNA, we don&amp;#39;t have to do many things to make plain window pop-up into the screen. We just have to make new project with this template, and without doing anything else (e.g. setting the project properties to set the libraries that we may use to make the game, make a class that handle the window creation, or add some code in the main program, etc.), we can build and run our project by pressing F5, and tadaaa.. the first window of our new game will be showed up in the center of the screen. By doing this, we can conclude that by using XNA, everything become easier for game developer.:)&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;u&gt; Xbox 360 Game (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;Just like the first one, this project template allow us to create game in Xbox 360, and everything has been made to make the game production in Xbox 360 easier. Let&amp;#39;s say you have made your-ready-to-deploy Xbox 360 game in your computer, so it&amp;#39;s time to connect your computer with the Xbox 360 console, so that you can see that the game can run perfectly in the machine. First, you need XNA Game Studio Connect installed in your Xbox 360, to make it possible to connect it with your computer. This XNA Game Studio Connect acts like the bluetooth driver in your bluetooth device (let&amp;#39;s say, your handphone), if you want to connect your handphone with your computer. &lt;/p&gt;
&lt;p&gt;And then, if you have already connect your Xbox with the computer, it&amp;#39;s time to initiate the connection, which is done by the computer. All you have to do is, add you Xbox 360 to your computer using XNA Game Studio Device Center. In the bluetooth-connection-story, the XNA Game Studio Device Center acts like bluetooth adapter driver in your computer.&lt;/p&gt;
&lt;p&gt;Just like the bluetooth-connection procedure, when you connect your computer with the already-added-device Xbox 360, you have to insert the connection key both in the Xbox 360 and the computer, to make sure that both side want this connection. For complete information about the connection procedure between the windows-based computer and Xbox 360 in the XNA Game Studio 2.0, see &lt;a href="http://msdn.microsoft.com/en-us/library/bb975643.aspx" target="_blank"&gt;this one&lt;/a&gt;.&lt;a href="http://msdn.microsoft.com/en-us/library/bb975643.aspx" target="_blank"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Content Pipeline Extension Library (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;Warning : this is for them who still don&amp;#39;t know what is Content Pipeline in XNA.&lt;/p&gt;
&lt;p&gt;Content Pipeline is feature provided by XNA Game Studio that makes assets in many types of file can be included in the game. Shortly, a modeler doesn&amp;#39;t have to take care of what type of file the model should be converted, so do the developer, she/he doesn&amp;#39;t have to take care of what type of file the assets should be so that it can be included in the game. XNA has provided standard content importers and processor to import many types of file to become an asset in XNA game.&lt;/p&gt;
&lt;p&gt;Everything called standard will never be enough for game developer, isn&amp;#39;t it? :D They understand this situation, so XNA has provided installed template project called Content Pipeline Extension Library so that developer can make custom content importers and processors to import new file types that hasn&amp;#39;t been supported by standard importers and processors provided by XNA. Not only to make XNA support new file types, developer can make the standard importers and processors behave differently by making new library that is actually customizing the existing one.&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="text-decoration:underline;"&gt;Spacewar Xbox 360 Starter Kit (2.0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This installed template allow us to see the fully functional Xbox 360 game complete with the source code, so that the XNA beginner can learn how to make a game using XNA by reading and modifying the Spacewar source code and see the effect of the modification directly.&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Windows Game Library (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;With this installed template, we can make game library that typically contain functionalities that hasn&amp;#39;t been provided by XNA basic library. When the project is finished, we can reference this project from other Windows Game Project, and enjoy the functionality declared here without including the source code into every projects that need the library&amp;#39;s functionalities.&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Xbox 360 Game Library (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;This installed template works like the above, but this is for the Xbox 360 game.&lt;/p&gt;
&lt;p&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Spacewar Windows Starter Kit (2.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;This installed template works like the one that works for Xbox 360, but this is for the Windows environment.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;XNA Game Studio 3.0 CTP&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Now if we already have our Microsoft Visual Studio 2008 installed with XNA Game Studio 3.0 CTP, we can find this dialog box if we go to File &amp;gt; New &amp;gt; Project....&lt;/p&gt;
&lt;p&gt;&lt;img src="http://geeks.netindonesia.net/blogs/shieny/XNA%202.png" alt="" border="0" height="405" width="602" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are 5 installed templates (fewer than the older version, because this CTP version hasn&amp;#39;t support the Xbox 360 game development. So, for those who want to develop Xbox 360 game, they can&amp;#39;t use XNA Game Studio 3.0. But in the download details of XNA Game Studio 3.0 CTP, they said that Xbox 360 game development will be supported in the final release version, so don&amp;#39;t worry :D&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Windows Game (3.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Content Pipeline Extension Library (3.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Windows Game Library (3.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;I won&amp;#39;t say too much for the first three installed templates, because it&amp;#39;s basically same as the templates in the 2.0 version.&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Zune Game Library (3.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;Basically this is for creating game library that can be used in Zune Game projects.&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Zune Game (3.0)&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;This installed template allow us to enjoy the new feature that significantly improve the ability of XNA Game Studio 3.0 CTP compare with the previous version. The new feature is developing game in Zune environment. For those who still don&amp;#39;t know what Zune is, should see &lt;a href="http://www.zune.net/en-us/products/whatiszune.htm" title="Zune" target="_blank"&gt;this&lt;/a&gt;. FYI, I know what Zune is, after I read &lt;a href="http://geeks.netindonesia.net/blogs/ronald/" title="ronald" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Although Zune&amp;#39;s capability for 3D rendering is still not as good as Xbox 360, they say that Zune game development has good potential in the future, because unlike other games in other media player devices, Zune games is free of charge, so the development will grow bigger as long there are still &amp;quot;freelance&amp;quot; developer who has eager to develop Zune Game.&lt;/p&gt;
&lt;p&gt;Hope this article helps you to know what features provided by 2 latest versions of XNA Game Studio..&lt;/p&gt;
&lt;p&gt;See ya.. :) &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx&amp;amp;subject=XNA Game Studio 2.0 and 3.0 CTP" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx&amp;amp;t=XNA+Game+Studio+2.0+and+3.0+CTP" target="_blank" title="Submit XNA Game Studio 2.0 and 3.0 CTP to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx&amp;amp;title=XNA+Game+Studio+2.0+and+3.0+CTP" target="_blank" title="Submit XNA Game Studio 2.0 and 3.0 CTP to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx&amp;amp;phase=2" target="_blank" title="Submit XNA Game Studio 2.0 and 3.0 CTP to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/21/xna-game-studio-2-0-vs-xna-game-studio-3-0-ctp.aspx&amp;amp;title=XNA+Game+Studio+2.0+and+3.0+CTP" target="_blank" title="Add XNA Game Studio 2.0 and 3.0 CTP to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=57244" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA/default.aspx">XNA</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/introduction/default.aspx">introduction</category></item><item><title>Hello Everyone... :)</title><link>http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx</link><pubDate>Fri, 04 Jul 2008 04:45:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:54887</guid><dc:creator>shieny</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/shieny/rsscomments.aspx?PostID=54887</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx#comments</comments><description>&lt;p&gt;Hello .. This morning, finally I&amp;#39;ve made my blog in geeks .. I&amp;#39;ve been wondering since long time to start blogging in this blog portal, but I don&amp;#39;t know.. maybe this is just the right time to finally start it :)&lt;/p&gt;&lt;p&gt;Okay, to start the blogging activity in geeks, let me introduce myself .. My name is Shieny Aprilia, and people usually call me by my first name, just Shieny .. or you can call it shorter, it doesn&amp;#39;t really matter as long I call you back when you call me.. hehe..&lt;/p&gt;&lt;p&gt;I&amp;#39;m informatics student in ITB 2005, so now i&amp;#39;m active as 4th grade student *&lt;i&gt;not really active though, because it&amp;#39;s still summer holiday in ITB, and now i&amp;#39;m doing my internship at Mitrais, Kuta, Bali until August&lt;/i&gt;*...&lt;/p&gt;&lt;p&gt;&lt;b&gt;About me and Microsoft...&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been MIC ITB crew since 2007, and thanks to &lt;a href="http://geeks.netindonesia.net/blogs/ronald/"&gt;Ronald&lt;/a&gt; and the other crews so that I can learn and gain many things *&lt;i&gt;both the abstract or the concrete ones&lt;/i&gt;* from the organization..  &lt;/p&gt;&lt;p&gt;For your information, this year I join Imagine Cup Competition, Software Design Category.. My team is Screaming Tree.. Although we&amp;#39;re in the 3rd place of the competition *&lt;i&gt;hux&lt;/i&gt;*, but i still feel very lucky and blessed because from the first time we make our team, i don&amp;#39;t even think we can&amp;#39;t make it through until the Indonesian Final, even until the top 10, we never imagine it.. haha.. but there&amp;#39;s still dissapointment in our heart, because the 3rd place team doesn&amp;#39;t go to Paris *&lt;i&gt;huaaa.. huaa..&lt;/i&gt;*&lt;/p&gt;&lt;p&gt;Hehe.. okay, enough for the unimportant one, let&amp;#39;s move on to the important one :)&lt;/p&gt;&lt;p&gt;Here in geeks, I plan to make posts related to XNA.. why XNA? if you really really want to know, please click &lt;a href="http://shi3nzzz.wordpress.com"&gt;this&lt;/a&gt;.. if you don&amp;#39;t, i recommend you not to do so.. :D&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Overall, i&amp;#39;ve decided to focus on XNA because i have big interest in gamedev, although my skill is still far from &lt;a href="http://geeks.netindonesia.net/blogs/clawford/default.aspx"&gt;this boy&lt;/a&gt;, but i hope i can always have big eager to keep learn learn and learn.. And i want my dream since i was a little baby *&lt;i&gt;little bit hyperbolic, i think, :p&lt;/i&gt;* to be good game developer will come true *&lt;i&gt;as soon as possible, i hope&lt;/i&gt;*.. beside, me and Agate Studio, in few months later will develop game using XNA.. so, i think my motivation on exploring XNA will grow bigger if i can make documentation of my exploration somewhere.. &lt;/p&gt;&lt;p&gt;I plan to make posts both in English and Indonesian *&lt;i&gt;but when it&amp;#39;s too hectic to do both of them, maybe i&amp;#39;ll choose to do it only in Indonesian&lt;/i&gt;*, not because i want to be cocky to show off my skill in English *&lt;i&gt;there&amp;#39;s nothing i can proud of about my English, though&lt;/i&gt;*, but i want all people can&amp;#39;t understand what i say *&lt;i&gt;maybe there are people who can only speak Indonesian but can&amp;#39;t speak English, or vice versa?&lt;/i&gt;*.. and actually i want to improve my English by making posts in English, although it needs twice or more effort to do that than make it in Indonesian.. &lt;/p&gt;&lt;p&gt;Before i do many mistakes in English *&lt;i&gt;and/or Indonesian&lt;/i&gt;* grammar in my post *&lt;i&gt;or i&amp;#39;ve made it already in this post, oh no...&lt;/i&gt;*, i want to apologize to you first.. hehe.. I always accept any suggestion from you.. :) &lt;/p&gt;&lt;p&gt;Hope we can learn together.. Wish me luuuucckkk.. :)&lt;/p&gt;&lt;p&gt;See ya.. &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx&amp;amp;subject=Hello Everyone... :)" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx&amp;amp;t=Hello+Everyone...+%3a)" target="_blank" title="Submit Hello Everyone... :) to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx&amp;amp;title=Hello+Everyone...+%3a)" target="_blank" title="Submit Hello Everyone... :) to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx&amp;amp;phase=2" target="_blank" title="Submit Hello Everyone... :) to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/shieny/archive/2008/07/04/hello-everyone.aspx&amp;amp;title=Hello+Everyone...+%3a)" target="_blank" title="Add Hello Everyone... :) to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=54887" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/Shieny/default.aspx">Shieny</category><category domain="http://geeks.netindonesia.net/blogs/shieny/archive/tags/XNA/default.aspx">XNA</category></item></channel></rss>
