<?xml version="1.0" encoding="UTF-8"?>
<rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Issam's Blog</title>
	
	<link>http://www.issamkhalil.com</link>
	<description>Just me writing stuff</description>
	<lastBuildDate>Mon, 23 Jan 2012 20:42:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ikhalil" /><feedburner:info uri="ikhalil" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>iOS course, assignment 1 done :)</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/3k3JxzibqPI/</link>
		<comments>http://www.issamkhalil.com/?p=361#comments</comments>
		<pubDate>Mon, 23 Jan 2012 20:42:35 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=361</guid>
		<description><![CDATA[So this was really a simple assignment, the goal was to make an simple RPN calculator. It was nothing really new yet, but it allowed me to learn how to use XCode 4 better and a few basic things about &#8230; <a href="http://www.issamkhalil.com/?p=361">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So this was really a simple assignment, the goal was to make an simple <a href="http://en.wikipedia.org/wiki/Reverse_Polish_notation">RPN calculator</a>. It was nothing really new yet, but it allowed me to learn how to use XCode 4 better and a few basic things about Objective C that I did not know. (the <a href="http://www.apptite.be/blog/ios/overriding-objective-c-description/">description</a> method for example)</p>
<p><a href="http://www.issamkhalil.com/wp-content/storage/2012/01/assignment1.png"><img class="alignnone size-medium wp-image-363" title="Fancy calculator" src="http://www.issamkhalil.com/wp-content/storage/2012/01/assignment1-157x300.png" alt="" width="157" height="300" /></a></p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/3k3JxzibqPI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=361</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=361</feedburner:origLink></item>
		<item>
		<title>iTunes University</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/CPRiIlUPfho/</link>
		<comments>http://www.issamkhalil.com/?p=359#comments</comments>
		<pubDate>Fri, 20 Jan 2012 01:33:59 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=359</guid>
		<description><![CDATA[I am going to try to do the &#8220;iPad and iPhone App Development (Fall 2011)&#8221; course from Stanford. I think it might be useful to learn the basic of iOS, up to now I mostly learned as I want. Let&#8217;s &#8230; <a href="http://www.issamkhalil.com/?p=359">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am going to try to do the &#8220;iPad and iPhone App Development (Fall 2011)&#8221; course from Stanford. I think it might be useful to learn the basic of iOS, up to now I mostly learned as I want. Let&#8217;s see how it goes <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Also the new iTunes University iPad app is not bad.</p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/CPRiIlUPfho" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=359</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=359</feedburner:origLink></item>
		<item>
		<title>Finished playing MW3</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/AOeHGBWuL14/</link>
		<comments>http://www.issamkhalil.com/?p=353#comments</comments>
		<pubDate>Sun, 01 Jan 2012 19:15:25 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=353</guid>
		<description><![CDATA[I played the single player campaign of MW3 this weekend. I really liked it, it was short and entertaining. I was just disappointed by the ending, it felt rushed.]]></description>
			<content:encoded><![CDATA[<p>I played the single player campaign of MW3 this weekend. I really liked it, it was short and entertaining. I was just disappointed by the ending, it felt rushed.</p>
<p><a href="http://www.issamkhalil.com/wp-content/storage/2012/01/ModernWarfare3.jpg"><img src="http://www.issamkhalil.com/wp-content/storage/2012/01/ModernWarfare3.jpg" alt="" title="Modern Warfare 3" width="920" height="518" class="alignnone size-full wp-image-354" /></a></p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/AOeHGBWuL14" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=353</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=353</feedburner:origLink></item>
		<item>
		<title>Unity resources subfolders</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/fTFhAe-36bY/</link>
		<comments>http://www.issamkhalil.com/?p=342#comments</comments>
		<pubDate>Fri, 30 Dec 2011 18:46:08 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Unity3d]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=342</guid>
		<description><![CDATA[You can use resources folder in unity to load assets from scripts (unity script references). You can create resources folder anywhere in your project, but you can also create subfolder in your resources folder allowing you to keep a cleaner &#8230; <a href="http://www.issamkhalil.com/?p=342">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can use resources folder in unity to load assets from scripts (<a href="http://unity3d.com/support/documentation/ScriptReference/Resources.html">unity script references</a>).</p>
<p>You can create resources folder anywhere in your project, but you can also create subfolder in your resources folder allowing you to keep a cleaner folder structure.</p>
<p>For example we have the following subfolder structure:</p>
<p><a href="http://www.issamkhalil.com/wp-content/storage/2011/12/Resources_Subfolder.png"><img src="http://www.issamkhalil.com/wp-content/storage/2011/12/Resources_Subfolder.png" alt="" title="Resources_Subfolder" width="214" height="114" class="alignnone size-full wp-image-345" /></a></p>
<p>We can use the following code to load our level data text file:</p>
<pre class="brush: csharp; light: true; title: ; notranslate">
TextAsset levelData = (TextAsset) Resources.Load(&quot;LevelData/Level1&quot;) as TextAsset;
</pre>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/fTFhAe-36bY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=342</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=342</feedburner:origLink></item>
		<item>
		<title>Using the gizmo feature in Unity</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/b62mNivSols/</link>
		<comments>http://www.issamkhalil.com/?p=317#comments</comments>
		<pubDate>Tue, 27 Dec 2011 04:08:01 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Unity3d]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=317</guid>
		<description><![CDATA[From the Unity script reference for gizmos: Gizmos are used to give visual debugging or setup aids in the scene view. In our current game for example, the heroes movement are limited to a 2d grid that need to be &#8230; <a href="http://www.issamkhalil.com/?p=317">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://unity3d.com/support/documentation/ScriptReference/Gizmos.html">Unity script reference for gizmos</a>:</p>
<ul>
<li><em>Gizmos are used to give visual debugging or setup aids in the scene view.</em></li>
</ul>
<p>In our current game for example, the heroes movement are limited to a 2d grid that need to be placed in the scene.  Using gizmos we can visualize our grid in the scene and make sure it&#8217;s aligned correctly with the world.</p>
<p><a class="fancybox iframe" href="http://www.youtube.com/v/1Eh35Ob-lJo?version=3&amp;feature=player_detailpage;autoplay=1"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/GizmoGrid.png" alt="" /></a><br />
<em>Click the picture to see a video of this in use</em></p>
<p><span id="more-317"></span></p>
<p>In our case the following code is used to draw the gizmo:</p>
<pre class="brush: csharp; title: ; notranslate">
	public static void DrawGizmosGrid_XZ(Vector3 topLeftPosition, Vector3 bottomRightPosition,
	                                     int horizontalCount, int verticalCount, Color color)
	{
        Gizmos.color = color;

		//Top left
        Gizmos.DrawSphere(topLeftPosition, 1.0f);

		//Bottom Right
        Gizmos.DrawSphere(bottomRightPosition, 1.0f);

		//Vertical Lines
		float horizontalDelta = (bottomRightPosition.x - topLeftPosition.x) / (float)horizontalCount;
		for(int i = 0; i &lt;= horizontalCount; i++)
		{
			Vector3 topPosition = topLeftPosition;
			topPosition.x = topLeftPosition.x + ((float)i * horizontalDelta);

			Vector3 bottomPosition = bottomRightPosition;
			bottomPosition.x = topLeftPosition.x + ((float)i * horizontalDelta);

			Gizmos.DrawLine(topPosition, bottomPosition);
		}

		//Horizontal lines
		float verticalDelta = (bottomRightPosition.z - topLeftPosition.z) / (float)verticalCount;
		for(int i = 0; i &lt;= verticalCount; i++)
		{
			Vector3 leftPosition = topLeftPosition;
			leftPosition.z = topLeftPosition.z  + ((float)i * verticalDelta);

			Vector3 rightPosition = bottomRightPosition;
			rightPosition.z = topLeftPosition.z  + ((float)i * verticalDelta);

			Gizmos.DrawLine(leftPosition, rightPosition);
		}
	}
</pre>
<p>We call that debug function in:</p>
<pre class="brush: csharp; title: ; notranslate">
	//This will draw the grid in the editor when the grid object is selected
	//Allow us to put the correct grid value more easily
	void OnDrawGizmosSelected()
	{
		DebugUtils.DrawGizmosGrid_XZ(ev_TopLeftWorldPosition, ev_BottomRightWorldPosition, ev_HorizontalCount, ev_VerticalCount, Color.red);

		//We might not be fully initialized yet
		if(HeroGrid != null)
		{
			for(int i = 0; i &lt; HeroGrid.GetLength(0); i++)
			{
				for(int j = 0; j &lt; HeroGrid.GetLength(1); j++)
				{
					HeroGridCell gridCell = HeroGrid[i,j];
					Gizmos.DrawSphere(gridCell.WorldPosition, 0.3f);
				}
			}
		}
    }
</pre>
<p>The test for &#8220;if(HeroGrid != null)&#8221; is needed because the OnDrawGizmosSelected() will be called when not in play mode, meaning that some part of the object might not be initialized yet. </p>
<p>You have to be careful when drawing gizmo, some things you want to represent might not have been created yet. In this case it was trying to draw the center of each grid for debugging purpose <em>(visually making sure that our initialization code is correct, another way we can use gizmos)</em>, but the grid is initialized in the awake() function so it would not exit in the editor mode.</p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/b62mNivSols" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=317</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=317</feedburner:origLink></item>
		<item>
		<title>Drinking more coffee</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/6z6FzTI-GIQ/</link>
		<comments>http://www.issamkhalil.com/?p=256#comments</comments>
		<pubDate>Mon, 26 Dec 2011 22:26:47 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=256</guid>
		<description><![CDATA[Last year I did not drink coffee now I have my own coffee maker at home, not sure if it&#8217;s a good thing or not]]></description>
			<content:encoded><![CDATA[<p>Last year I did not drink coffee now I have my own coffee maker at home, not sure if it&#8217;s a good thing or not <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.issamkhalil.com/wp-content/storage/2011/12/CoffeeMaker.jpg"><img class="alignnone  wp-image-257" title="CoffeeMaker" src="http://www.issamkhalil.com/wp-content/storage/2011/12/CoffeeMaker-e1324938306839.jpg" alt="" width="360" height="480" /></a></p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/6z6FzTI-GIQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=256</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=256</feedburner:origLink></item>
		<item>
		<title>2011 Game Jams</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/RxnRsnPGQR8/</link>
		<comments>http://www.issamkhalil.com/?p=184#comments</comments>
		<pubDate>Mon, 26 Dec 2011 01:15:38 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Personal Work]]></category>
		<category><![CDATA[Unity3d]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=184</guid>
		<description><![CDATA[(Click on each picture to play the game). The game descriptions are from Cat&#8217;s blog. The first game was Beacon done for the Global Game Jam 2011 event Game Description: The last remaining humans are stranded in a city area. &#8230; <a href="http://www.issamkhalil.com/?p=184">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<a href='http://www.issamkhalil.com/?attachment_id=186' title='Beacon'><img width="249" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/Beacon-249x150.png" class="attachment-thumbnail" alt="Beacon" title="Beacon" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=190' title='SushiRunner'><img width="267" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/SushiRunner-267x150.jpg" class="attachment-thumbnail" alt="SushiRunner" title="SushiRunner" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=187' title='DungeonAndDorks'><img width="286" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/DungeonAndDorks-286x150.png" class="attachment-thumbnail" alt="DungeonAndDorks" title="DungeonAndDorks" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=191' title='ToBoldlyGo'><img width="200" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/ToBoldlyGo-200x150.png" class="attachment-thumbnail" alt="ToBoldlyGo" title="ToBoldlyGo" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=189' title='Island'><img width="199" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/Island-199x150.jpg" class="attachment-thumbnail" alt="Island" title="Island" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=188' title='FearTheWhales'><img width="240" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/FearTheWhales-240x150.jpg" class="attachment-thumbnail" alt="FearTheWhales" title="FearTheWhales" /></a>

<p><span id="more-184"></span></p>
<p><em><strong>(Click on each picture to play the game)</strong>. The game descriptions are from <a href="http://cmusgrove.blogspot.com/2011/05/games.html">Cat&#8217;s blog</a>.</em></p>
<ul>
<li><span>The first game was <strong>Beacon</strong> done for the Global Game Jam 2011 event</span></li>
</ul>
<p style="padding-left: 30px;"><a id="Beacon_unity" href="/wp-content/storage/projects/ggj2011/beacon/Beacon.html"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/Beacon-500x300.png" alt="" /></a></p>
<p><em>Game Description:</em><br />
<em>The last remaining humans are stranded in a city area. They are paralyzed by fear of man-eating creatures, and can&#8217;t see where they&#8217;re going &#8211; but the monsters are hunting them by sense of smell. Use the light to guide them to the lighted areas where they will be safe (click to select, click where you want them to go).</em></p>
<ul>
<li>The second game was <strong>Sushi Runner</strong>, the first game made by be, Cat, Suresh and Chad:</li>
</ul>
<p style="padding-left: 60px;"><a class="fancybox iframe" href="/wp-content/storage/projects/sushirunner/sushirunner.html"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/SushiRunner.jpg" alt="" /></a></p>
<p><em>Game Description: </em><br />
<em>You play as a fish that is trying to escape a sushi restaurant. Jump, slide, boost and brake to avoid obstacles on the table, as well as obstacles that fly at you.</em></p>
<p>Here are the control:</p>
<p style="padding-left: 150px;"><img src="http://www.issamkhalil.com/wp-content/storage/2011/12/SushiRunner_Control.jpg" alt="" /></p>
<ul>
<li>Next was <strong>Dungeon And Dorks</strong>, where Suresh shows his vocal talent <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  <strong>Play with sound!</strong></li>
</ul>
<p style="padding-left: 30px;"><a class="fancybox iframe" href="/wp-content/storage/projects/dungeonanddorks/DungeonAndDorks.html"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/DungeonAndDorks.png" alt="" /></a></p>
<p><em>Game Description (written by Chad):</em><br />
<em>This week we tried a new take on a little known but classic game (in some circles). You play the role of a pewter miniature swept up in an ill-conceived D&amp;D adventure! Well worth a play through if for no other reason than the epic voice acting. Just click to move and interact with the world.</em></p>
<ul>
<li><strong>To Boldly Go</strong> was our next game, it was our more polished game and I think the most fun <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p style="padding-left: 60px;"><a id="TBG_unity" href="/wp-content/storage/projects/toboldlygo/TBG.html"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/ToBoldlyGo.png" alt="" /></a></p>
<p><em>Game Description: </em><br />
<em>Click in the direction you want to go with the left mouse button to move. Use the right mouse button for a boost. Various obstacles harm you in different ways &#8211; the planets have gravity which pulls you in, supernovas can either kill you with their initial explosion, or repel you outwards into space, space squids latch onto you and must be shaken off or they will destroy you, and various enemy ships and bases will shoot to kill.</em></p>
<ul>
<li>For the second Vicarious Vision gamejam, we tried to do a game that use multiple devices all working together. <strong>Fear The Whale!</strong> is what we ended up with, click on the image for a YouTube video showing me trying to explain it <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p style="padding-left: 60px;"><a class="fancybox iframe" href="http://www.youtube.com/embed/Juzsm2VZGxo?feature=player_embedded&amp;autoplay=1"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/FearTheWhales.jpg" alt="" /></a></p>
<p><em>Game Description</em> (from Suresh):<br />
<em>We created a single project that would run on all devices and the PC. When you load the game, you choose what you are, the TV, a fisherman, or the whale. The TV is the host, while the fisherman and whale are clients. Tim set up a matchmaking server, so technically they all connect to a game specified by name. Thanks to Unity we were able to deploy the same game to an iPhone 3GS, iPad1/2 and an Android Tablet without too much trouble, there were of course rendering discrepancies and performance problems on certain devices, but everything just seemed to work across the board!</em></p>
<ul>
<li>For our last game, we tried to try to see if we could make a game about exploration and picture taking. <strong>Island</strong> is the game we ended up with.</li>
</ul>
<p><a id="Island_unity" href="/wp-content/storage/projects/island/Island.html"> <img src="http://www.issamkhalil.com/wp-content/storage/2011/12/Island.jpg" alt="" /></a></p>
<p>Summary: Run around the world taking pictures! You may take pictures anywhere you want to build your gallery, but to complete the game, take pictures at all of the ‘picture spots’ (represented by yellow star effects). (Warning: We didn’t actually add an ending…. so all you’ll really get from collecting all of the picture spots is a sense of satisfaction.) You can also take pictures of anything you think is interesting.</p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/RxnRsnPGQR8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=184</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=184</feedburner:origLink></item>
		<item>
		<title>FancyBox + JQuery</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/itE8IsDyZXQ/</link>
		<comments>http://www.issamkhalil.com/?p=182#comments</comments>
		<pubDate>Sun, 25 Dec 2011 22:35:35 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=182</guid>
		<description><![CDATA[Well I learned how to use FancyBox in wordpress, that also required me to do a crash course in JQuery. Kind of not what I was expecting to do today, but at least I learned something I will try to &#8230; <a href="http://www.issamkhalil.com/?p=182">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well I learned how to use FancyBox in wordpress, that also required me to do a crash course in JQuery. Kind of not what I was expecting to do today, but at least I learned something <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I will try to do a post latter today that show all our 2011 gamejams games and maybe a quick tutorial of what I learned.</p>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/itE8IsDyZXQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=182</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=182</feedburner:origLink></item>
		<item>
		<title>Playing Shadow complex</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/L-_H1CoEP5M/</link>
		<comments>http://www.issamkhalil.com/?p=89#comments</comments>
		<pubDate>Sun, 25 Dec 2011 19:57:37 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=89</guid>
		<description><![CDATA[I started playing Shadow Complex again yesterday night, I forgot how easy it was to get into. Maybe I will be able to finish it today]]></description>
			<content:encoded><![CDATA[<p>I started playing Shadow Complex again yesterday night, I forgot how easy it was to get into. Maybe I will be able to finish it today <img src='http://www.issamkhalil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<a href='http://www.issamkhalil.com/?attachment_id=98' title='Shadow Complex'><img width="267" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/shadow_complex_img1.jpg" class="attachment-thumbnail" alt="Shadow Complex" title="Shadow Complex" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=100' title='Shadow Complex'><img width="266" height="150" src="http://www.issamkhalil.com/wp-content/storage/2011/12/shadow_complex_img3.jpg" class="attachment-thumbnail" alt="Shadow Complex" title="Shadow Complex" /></a>
<a href='http://www.issamkhalil.com/?attachment_id=122' title='Shadow Complex'><img width="300" height="145" src="http://www.issamkhalil.com/wp-content/storage/2011/12/shadow_complex_img2-300x145.jpg" class="attachment-thumbnail" alt="Shadow Complex" title="Shadow Complex" /></a>

<img src="http://feeds.feedburner.com/~r/ikhalil/~4/L-_H1CoEP5M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=89</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=89</feedburner:origLink></item>
		<item>
		<title>Test source code highlighting</title>
		<link>http://feedproxy.google.com/~r/ikhalil/~3/g1zSBggDx7Y/</link>
		<comments>http://www.issamkhalil.com/?p=66#comments</comments>
		<pubDate>Sun, 25 Dec 2011 04:15:05 +0000</pubDate>
		<dc:creator>IssamKhalil</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.issamkhalil.com/?p=66</guid>
		<description><![CDATA[Testing a plugin to display source code better in a post Some C# code: You can collapse the code:]]></description>
			<content:encoded><![CDATA[<p>Testing a plugin to display source code better in a post</p>
<p>Some C# code:</p>
<pre class="brush: csharp; title: ; notranslate">
	HeroBaseScript _Hero = null;
	public HeroBaseScript Hero
	{
		get
		{
			return _Hero;
		}
		set
		{
			//TODO: if 	_Hero != null do something?
			_Hero = value;
		}
	}
</pre>
<p>You can collapse the code:</p>
<pre class="brush: csharp; collapse: true; light: false; title: ; toolbar: true; notranslate">
public class HeroGridCell
{
	public int[] Index = {0,0};
	public Vector3 WorldPosition = Vector3.zero;

	HeroBaseScript _Hero = null;
	public HeroBaseScript Hero
	{
		get
		{
			return _Hero;
		}
		set
		{
			//TODO: if 	_Hero != null do something?
			_Hero = value;
		}
	}

	public static HeroGridCell[,] NewInitHeroGrid(int horizontalCount, int verticalCount, Vector3 topLeftWorldPosition, Vector3 bottomRightWorldPosition, GameObject heroGridGameObject)
	{
		//Allocate the memory
		HeroGridCell[,] HeroGrid = new HeroGridCell[horizontalCount, verticalCount];
		for(int i = 0; i &lt; horizontalCount; i++)
		{
			for(int j = 0; j &lt; verticalCount; j++)
			{
				HeroGrid[i,j] = new HeroGridCell();
			}
		}

		//Fill the array with initial values
		Vector3 horizontalDelta = (bottomRightWorldPosition - topLeftWorldPosition) / (float)horizontalCount;
		horizontalDelta.z = 0.0f;

		Vector3 verticalDelta = (bottomRightWorldPosition - topLeftWorldPosition) / (float)verticalCount;
		verticalDelta.x = 0.0f;

		Vector3 topLeftCenterPosition = topLeftWorldPosition + (horizontalDelta / 2.0f) + (verticalDelta / 2.0f);

		for(int i = 0; i &lt; horizontalCount; i++)
		{
			for(int j = 0; j &lt; verticalCount; j++)
			{
				HeroGridCell gridCell = HeroGrid[i,j];
				gridCell.Index[0] = i;
				gridCell.Index[1] = j;
				gridCell.WorldPosition = topLeftCenterPosition + ((float)i * horizontalDelta) + ((float)j * verticalDelta);
			}
		}

		return HeroGrid;
	}
}
</pre>
<img src="http://feeds.feedburner.com/~r/ikhalil/~4/g1zSBggDx7Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.issamkhalil.com/?feed=rss2&amp;p=66</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.issamkhalil.com/?p=66</feedburner:origLink></item>
	</channel>
</rss>

