<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sharp World &#187; game</title>
	<atom:link href="http://sharpmix.net/blog/tag/game/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharpmix.net/blog</link>
	<description>It&#039;s about C# and video games !</description>
	<lastBuildDate>Fri, 18 Sep 2009 15:43:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asteroid</title>
		<link>http://sharpmix.net/blog/2009/09/17/asteroid-game/</link>
		<comments>http://sharpmix.net/blog/2009/09/17/asteroid-game/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 14:46:25 +0000</pubDate>
		<dc:creator>Abdallah Fdal</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Video games]]></category>
		<category><![CDATA[asteroid]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[xna]]></category>

		<guid isPermaLink="false">http://s219861678.onlinehome.fr/blog/?p=127</guid>
		<description><![CDATA[For making an asteroid game,
I found it hard at first but it&#8217;s quite easy.

One of Newton&#8217;s law : In the absence of a net external force, a body either is at rest or moves with constant velocity.
We are evolving in space so the last phrase part is our algorithm.
But you might have encountered some problems [...]]]></description>
			<content:encoded><![CDATA[<p>For making an asteroid game,</p>
<p>I found it hard at first but it&#8217;s quite easy.</p>
<p><a href="http://sharpmix.net/blog/wp-content/uploads/2009/09/Asteroid.jpg"><img src="http://sharpmix.net/blog/wp-content/uploads/2009/09/Asteroid-300x225.jpg" alt="Asteroid" title="Asteroid" width="300" height="225" class="aligncenter size-medium wp-image-337" /></a></p>
<p><a href="http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion">One of Newton&#8217;s law</a> : <em>In the absence of a net external force, a body either is at rest or moves with constant velocity.</em></p>
<p>We are evolving in space so the last phrase part is our algorithm.</p>
<p>But you might have encountered some problems if you are very new to games programming, like how do I make all these things move ?</p>
<p>It&#8217;s simple,</p>
<ul>
<li>When you change the direction of your ship, you need to keep a reference of the angle your ship is pointing at.</li>
<li>With this angle, using trigonometry you will get a vector which is what you need.</li>
</ul>
<p>And math magics will do the rest !</p>
<p>There are a couple of other issues you need to handle like,</p>
<ul>
<li>Limiting velocity of your ship or soon it will go very fast,</li>
<li>Wrap your angle,</li>
<li>Screen dimensions,</li>
<li>etc &#8230;</li>
</ul>
<p>You will soon find out that the core of games is quite short, but the polishing is very long.</p>
<p>Here is the source for controlling the ship : <a href='http://sharpmix.net/blog/wp-content/uploads/2009/09/Asteroid.zip'>Asteroid</a></p>
<p>In the next article, I will show you how to implement weapons, monsters and rocks &#8230; that in turn involves a couple of other things &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharpmix.net/blog/2009/09/17/asteroid-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first game project.</title>
		<link>http://sharpmix.net/blog/2009/06/28/my-first-game-project/</link>
		<comments>http://sharpmix.net/blog/2009/06/28/my-first-game-project/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 20:30:39 +0000</pubDate>
		<dc:creator>Abdallah Fdal</dc:creator>
				<category><![CDATA[Video games]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://managedworld.wordpress.com/?p=101</guid>
		<description><![CDATA[I have been playing video games for now about 20 years, but always been interested in creating one.
Years have passed since and now I am quite comfortable with C# so, I decided to test XNA.
XNA if you don&#8217;t know already, is the equivalent of .Net Framework, but for creating games.
As games have a different implementation [...]]]></description>
			<content:encoded><![CDATA[<p>I have been playing video games for now about 20 years, but always been interested in creating one.</p>
<p>Years have passed since and now I am quite comfortable with C# so, I decided to test <a href="http://creators.xna.com/en-US/">XNA</a>.</p>
<p>XNA if you don&#8217;t know already, is the equivalent of .Net Framework, but for creating games.</p>
<p>As games have a different implementation logic than business applications, the kit addresses issues you might encounter when creating games, such as drawing sprites, using a gamepad, overlaying etc &#8230; well, all of what makes a game development different from a typical desktop application.</p>
<p>I&#8217;ve always been a fan of tons of games (I am not going onto a list for now), though my preference goes to action games, from fighting games to FPS.</p>
<p>Obviously there are some things I cannot afford (yet) alone, there would be too much work and the result wouldn&#8217;t be that great.</p>
<p>So a 2D or 3D game ?</p>
<p>There is in the XNA a 2D platformer starter kit but surprisingly, 3D is not that hard.</p>
<p>Well I have decided to create a 3D game as the first game.</p>
<p>The main problem in this is, as for every new domain you get interested into, you need to take a peek at all the other (mandatory) things around. For games it&#8217;s going to be graphics, sounds and of course some programming. This is where 3D is handy as there are many tools to help you shape your graphic ideas.</p>
<p>For the sound I think I can handle it. (I am doing music for a couple of years now)</p>
<p>Well for the rest, -&gt; Internet (as usual)</p>
<p>Now for a first project, I don&#8217;t expect it to rock much, but with time, I found it&#8217;s a good idea to dare big things, to not suffer of under-specifications after, even though it sounds like being a massive work.</p>
<p>I am coming to it to now,</p>
<p>Have always been a fan of <a href="http://en.wikipedia.org/wiki/Wipeout_(video_game)">Wipeout</a>, so, ahem &#8230; I wanted to create a game like it. <em>Yeah &#8230;</em></p>
<p><a href="http://sharpmix.net/blog/wp-content/uploads/2009/06/2-suns-with-clouds.png"><img class="aligncenter size-full wp-image-102" title="Game Project 2 suns with clouds" src="http://sharpmix.net/blog/wp-content/uploads/2009/06/2-suns-with-clouds.png" alt="Game Project 2 suns with clouds" width="600" height="271" /></a></p>
<p>The first landscape depicts a small planetoid where the life process didn&#8217;t bloom as on Earth but surprisingly there is water. That planetoid is part of a solar system that has 2 suns.</p>
<p>For the landscape I just found out the astonishing <a href="http://www.planetside.co.uk/">Terragen</a> which rendering engine mimics nothing more than the real implementation (in the real world).</p>
<p>You can create landscapes life-like at the cost of heavy CPU usage, multi-threading is supported but my great <a href="http://processorfinder.intel.com/details.aspx?sSpec=SLAQG">Core 2 Duo T9300</a> isn&#8217;t of much help, even though (it used to be) a high-end CPU for laptops.</p>
<p>Also, using <a href="http://www.starrynight.com/">Starry Night</a>, I have found that the sky consists of <a href="http://en.wikipedia.org/wiki/DirectDraw_Surface">DDS</a> textures, which is interesting.</p>
<p><a href="http://sharpmix.net/blog/wp-content/uploads/2009/06/Game-Project-starrynight.jpg"></a><a href="http://sharpmix.net/blog/wp-content/uploads/2009/09/game-starry.png"><img class="aligncenter size-full wp-image-287" title="game starry" src="http://sharpmix.net/blog/wp-content/uploads/2009/09/game-starry.png" alt="game starry" width="500" height="500" /></a></p>
<p style="text-align:center;">
<p>The next (but probably uglier) option would be to create an engine that is fed by a star catalog &#8230;</p>
<p>I have gathered some 3D models of crafts,</p>
<p>Now I need to code all this to try form something &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharpmix.net/blog/2009/06/28/my-first-game-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
