<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx</link><description>This article is the first part of the Upgrade Your Game series of tutorials. It walks you through the basics of how 2D games work using Visual C# Andy Dunn - The Z-Man The Z-Buffer Difficulty: Easy Time Required: 1-3 hours Cost: Free Software: Visual</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>2D Game Primer (Visual C#/Basic)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#1757390</link><pubDate>Sun, 25 Feb 2007 16:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1757390</guid><dc:creator>Walter Stiers - Academic Relations Team (BeLux)</dc:creator><description>&lt;p&gt;Coding4Fun's WebLog has a long entry on 2D Game Primer (Visual C#) and of course also 2D Game Primer&lt;/p&gt;
</description></item><item><title>XNA Gamer  </title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#2710408</link><pubDate>Fri, 18 May 2007 16:38:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2710408</guid><dc:creator>XNA Gamer  </dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://xnagamer.weargeek.com/?p="&gt;http://xnagamer.weargeek.com/?p=&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Silverlight 8-Ball</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#5002776</link><pubDate>Thu, 20 Sep 2007 03:04:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5002776</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;In this article, I will discuss how I have built a 2 player 8-Ball game in Silverlight ( play here ).&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#6450464</link><pubDate>Wed, 21 Nov 2007 09:02:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6450464</guid><dc:creator>kenren</dc:creator><description>&lt;p&gt;uhh dear sir... i would like to know how to create a &amp;quot;drag and drop&amp;quot; feature for a C# 2D game. coz im creating a game and i need a drag and drop function. do you know how to? thanks in advance&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#6461585</link><pubDate>Thu, 22 Nov 2007 04:07:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6461585</guid><dc:creator>Pixelbath</dc:creator><description>&lt;p&gt;kenren: Just like you'd do collision detection, only you'd check for collision on the MouseUp event, rather than every iteration.&lt;/p&gt;
&lt;p&gt;You're welcome in post mortem.&lt;/p&gt;</description></item><item><title>Website Scripts &amp;raquo; Coding4Fun : Upgrade Your Game: Crusader (C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#7179917</link><pubDate>Mon, 21 Jan 2008 08:21:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7179917</guid><dc:creator>Website Scripts » Coding4Fun : Upgrade Your Game: Crusader (C#)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://websitescripts.247blogging.info/coding4fun-upgrade-your-game-crusader-c/"&gt;http://websitescripts.247blogging.info/coding4fun-upgrade-your-game-crusader-c/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Software Information &amp;raquo; Coding4Fun : 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#7229398</link><pubDate>Fri, 25 Jan 2008 03:04:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7229398</guid><dc:creator>Software Information » Coding4Fun : 2D Game Primer (Visual C#)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://softwareinformation.247blogging.info/coding4fun-2d-game-primer-visual-c/"&gt;http://softwareinformation.247blogging.info/coding4fun-2d-game-primer-visual-c/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8325055</link><pubDate>Wed, 19 Mar 2008 10:21:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8325055</guid><dc:creator>Adam D</dc:creator><description>&lt;p&gt;This series of posts has been brilliant. As a beginner to games programming I've had many an 'ahha!' moment reading them. Well done and thanks.&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8362305</link><pubDate>Sun, 06 Apr 2008 08:41:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8362305</guid><dc:creator>Langford</dc:creator><description>&lt;p&gt;The paragraph explaining how you move a sprite by its velocity, multiplied by the time elapsed since the last 'frame': Best explanation I've heard on that subject, in any OOP language lol.&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8447707</link><pubDate>Fri, 02 May 2008 00:47:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447707</guid><dc:creator>Guillermo</dc:creator><description>&lt;p&gt;It was very educational! can you send me some c++ code for games, thanks&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8514723</link><pubDate>Fri, 16 May 2008 22:51:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8514723</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;The wonders of having Coding4Fun moved from one medium to another.&lt;/p&gt;
&lt;p&gt;On it, thanks for the heads up.&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8593237</link><pubDate>Thu, 12 Jun 2008 18:00:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8593237</guid><dc:creator>jimi hendrix</dc:creator><description>&lt;p&gt;why are the links to the tutorial on top not working???&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8670545</link><pubDate>Mon, 30 Jun 2008 10:05:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8670545</guid><dc:creator>Ariful Ambia Noman</dc:creator><description>&lt;p&gt;very usefully article. I like it.&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8717412</link><pubDate>Thu, 10 Jul 2008 18:46:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8717412</guid><dc:creator>Loendal</dc:creator><description>&lt;p&gt;Any progress on when we might see the diagrams and images again? &amp;nbsp;This primer was very thourough and I'd love to put it to practice..&lt;/p&gt;</description></item><item><title>Upgrade Your Game: Crusader (C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#8870593</link><pubDate>Fri, 15 Aug 2008 23:13:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8870593</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;Welcome to the Upgrade Your Game series of tutorials. In this article, we will develop a role-playing&lt;/p&gt;
</description></item><item><title>Coding4Fun : 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9256327</link><pubDate>Tue, 30 Dec 2008 02:26:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9256327</guid><dc:creator>Coding4Fun : 2D Game Primer (Visual C#)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9256340</link><pubDate>Tue, 30 Dec 2008 02:30:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9256340</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;fixed, thanks for telling me about the links. &amp;nbsp;They broke when we moved the site over to the blogs.msdn.com platform&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9420651</link><pubDate>Sat, 14 Feb 2009 05:15:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9420651</guid><dc:creator>Greg</dc:creator><description>&lt;p&gt;Doesn't this cause alot of paint events to occur? &amp;nbsp;Each time the paint event fires it schedules another one by calling Invalidate. &amp;nbsp;Since the sprite movement is timer based, that occurs infrequently, so most of the time it's refreshing the screen for no reason.&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9848409</link><pubDate>Sat, 25 Jul 2009 16:33:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9848409</guid><dc:creator>Lex</dc:creator><description>&lt;p&gt;it can be solved, by adding a variable which indicates which objects needed to be painted again&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9890007</link><pubDate>Tue, 01 Sep 2009 21:34:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890007</guid><dc:creator>Someone</dc:creator><description>&lt;P&gt;Hey, I created my own shooter Sprite for the SpaceBlitz starter kit, where could I find information on how to add my image in place of the default spaceship? &lt;/P&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9890113</link><pubDate>Wed, 02 Sep 2009 01:46:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890113</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@Somone, You can also do it without replacing/deleting, or otherwise manipulating the image.&lt;/p&gt;
&lt;p&gt;Go to the project and look for the .png that represents the one you want to change. For example if it is “ship.png” then that’s the one you want. Don’t do anything to it.&lt;/p&gt;
&lt;p&gt;Then take your new one – hopefully it is the same size or it could cause some minor issues if the size was used in calculations – and add it to the Content project in the same place as ship.png. Make sure to do add existing item in VS, don’t just copy it, or if you do make sure to include in project.&lt;/p&gt;
&lt;p&gt;Then, do a project wide search for “ship.png” or whatever the old one is called. Find the line where it says, something = Content.Load&amp;lt;Texture2D&amp;gt;(“some path\ship”); (note there is NO png file extension in the code!!)&lt;/p&gt;
&lt;p&gt;Comment that line out, copy and paste it below, and replace “ship” with the filename of your new one (no extension)&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9890983</link><pubDate>Thu, 03 Sep 2009 19:37:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890983</guid><dc:creator>Someone</dc:creator><description>&lt;p&gt;Thank you so MUCH!!! Now, if you could show me the best way to icrease the number of bombs you ( and the Aliens ) can drop without having to wait for them to be removed from the screen, you would be a lifesaver &amp;nbsp;&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9890993</link><pubDate>Thu, 03 Sep 2009 19:47:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890993</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@Someone, That is something you should be able to figure out on your own :-)&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9890994</link><pubDate>Thu, 03 Sep 2009 19:47:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890994</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@Someone, That is something you should be able to figure out on your own :-)&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9893745</link><pubDate>Thu, 10 Sep 2009 19:38:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893745</guid><dc:creator>Someone</dc:creator><description>&lt;P&gt;Ok, I've spent the last week working on my problem. I'm working on a system that limits the number of missiles in the game using similar methods to the ones used to limit the number of lives, but the &amp;nbsp;problem is that the missiles are not being removed from the screen until I another missile is fired (although the missile is no longer visible) this results in the aliens being destroyed one after another as they run into the invisible missile. Another problem I am having is that no matter how many missiles are on the screen, only the last one fired does any damaqe to the aliens ( In other word all except the last missile pass through lines and lines of aliens without doing a lick of damage ). Thanks for all the help.&lt;/P&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9893949</link><pubDate>Fri, 11 Sep 2009 04:00:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893949</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@Someone why don't you have a missle counter. &amp;nbsp;You add one when you fire it, subtract when one hits something or is off the screen.&lt;/p&gt;
&lt;p&gt;in your firing function, say &amp;quot;if (_currentMisslesOnScreen &amp;lt; MaxAmountOfMisslesOnScreen) { fireMissle(); _currentMisslesOnScreen++;}&lt;/p&gt;
</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9902853</link><pubDate>Sun, 04 Oct 2009 05:42:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9902853</guid><dc:creator>jh1507</dc:creator><description>&lt;p&gt;Wow,&lt;/p&gt;
&lt;p&gt;I`m a kid and i sorta get it!&lt;/p&gt;
&lt;p&gt;(I program in C#)&lt;/p&gt;
&lt;p&gt;It makes sence about the volocity&lt;/p&gt;
&lt;p&gt;x,y cordinites etc.&lt;/p&gt;
&lt;p&gt;Good Tutorial!&lt;/p&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9903051</link><pubDate>Mon, 05 Oct 2009 06:46:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9903051</guid><dc:creator>jh1507</dc:creator><description>&lt;P&gt;But...&lt;/P&gt;
&lt;P&gt;I sorta got throw on pong when i look at the code to me it`s very confussing! can you please recomend any other free C# 2D Tutorials? Please.&lt;/P&gt;
&lt;P&gt;Anyway i found the 2D game primer a good intro...&lt;/P&gt;</description></item><item><title>re: 2D Game Primer (Visual C#)</title><link>http://blogs.msdn.com/coding4fun/archive/2007/02/20/1727608.aspx#9909604</link><pubDate>Tue, 20 Oct 2009 02:08:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9909604</guid><dc:creator>Someone</dc:creator><description>&lt;p&gt;In reply to your last message I first want to make my situation understood. First, I created a bomb counter system similar to the one you discribed ( similar because I don't know what all that fireMissile() method would intail) Secondly, no matter how many bombs are on the screen at one time, ONLY the last bomb ( Ithe order they were dropped) does any damage to either the bases or the baseship. Finally, I am tring to make the aliens drop two bombs simultaneously at all times ,but what is currently happening is that two bombs are dropped roughly at the same time ( I have the random factor set to zero) the first of the two making no impression on anything it runs into ( speaking again of the last one fired being the only one that does any damage) ,and after both have disappeared it begins dropping bombs only one at a time. Thank you for all the time you have spent answering my questions; This has been wonderful resource. &lt;/p&gt;</description></item></channel></rss>