<?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>seanmadi_DevBlog</title>
	<atom:link href="http://seanmadi.com/devblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanmadi.com/devblog</link>
	<description>A continuous look at my slow progression</description>
	<lastBuildDate>Mon, 12 Apr 2010 03:45:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Calculating Accuracy in an RPG &#8211; Damage Calculation</title>
		<link>http://seanmadi.com/devblog/2010/04/calculating-accuracy-in-an-rpg/</link>
		<comments>http://seanmadi.com/devblog/2010/04/calculating-accuracy-in-an-rpg/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 03:45:17 +0000</pubDate>
		<dc:creator>seanmadi</dc:creator>
				<category><![CDATA[Something Something Land]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[accuracy]]></category>
		<category><![CDATA[damage]]></category>
		<category><![CDATA[damage calculation]]></category>
		<category><![CDATA[weapons]]></category>

		<guid isPermaLink="false">http://seanmadi.com/devblog/?p=42</guid>
		<description><![CDATA[I finally added the weapon&#8217;s accuracy into the battle calculation formula so you or the monster (but I haven&#8217;t made the monster fight back yet&#8230;) can miss when attacking.  Simply added one line: if (Math.floor(Math.random()*100) > (acc-1)) dmg = 0; This is if acc is a number from 0 to 100, 100 being sure to [...]]]></description>
			<content:encoded><![CDATA[<p>I finally added the weapon&#8217;s accuracy into the battle calculation formula so you or the monster (but I haven&#8217;t made the monster fight back yet&#8230;) can miss when attacking.  Simply added one line:</p>
<pre class=""javascript"">
if (Math.floor(Math.random()*100) > (acc-1)) dmg = 0;
</pre>
<p>This is if acc is a number from 0 to 100, 100 being sure to hit and 0 being sure not to.</p>
<p>Which now makes my entire damage calculation formula:</p>
<pre class=""javascript"">
function dmgcalc(who, magic, stat, acc, element) //for who, 0 means you are attacking, 1 means monster is attacking; magic is 0 if its a weapon and 1 if its magic
{
	if (who == 0)
	{
		lvl = y_lvl;
		base = stat;
		if (magic == 0)
		{
			atk = y_atk_base;
			def = o_def_base;
		}
		else
		{
			atk = y_satk_base;
			def = o_sdef_base;
		}
	}
	else
	{
		lvl = o_lvl;
		base = stat;
		if (magic == 0)
		{
			atk = o_atk_base;
			def = y_def_base;
		}
		else
		{
			atk = o_satk_base;
			def = y_sdef_base;
		}
	}
	ch = 1;
	if (Math.floor(Math.random()*100) <= 5) ch = 2; //6% chance of critical hit, make it critical hit if this happens
	randnum = Math.floor(Math.random()*39) + 217;
	type = 1;
	dmg = Math.floor(((Math.floor(Math.floor(((Math.floor((lvl * 2) / 5) + 2) * base * atk) / 50) / def)) + 2) * ch * Math.floor((randnum * 100) / 255) / 100) * type;
	if (Math.floor(Math.random()*100) > (acc-1)) dmg = 0;
	return dmg;
}
</pre>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/04/accuracyadded.png"><img src="http://seanmadi.com/devblog/wp-content/uploads/2010/04/accuracyadded.png" alt="" title="accuracyadded" width="426" height="322" class="alignnone size-full wp-image-44" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanmadi.com/devblog/2010/04/calculating-accuracy-in-an-rpg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New project &#8211; Damage calculation added</title>
		<link>http://seanmadi.com/devblog/2010/04/new-project-damage-calculation/</link>
		<comments>http://seanmadi.com/devblog/2010/04/new-project-damage-calculation/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 04:31:22 +0000</pubDate>
		<dc:creator>seanmadi</dc:creator>
				<category><![CDATA[Something Something Land]]></category>
		<category><![CDATA[damage]]></category>

		<guid isPermaLink="false">http://seanmadi.com/devblog/?p=38</guid>
		<description><![CDATA[For a school project, myself and classmates are taking what I was originally (and plan to still do) doing with Pokemon, but in a game of our own.  For now I&#8217;m calling it &#8220;Something Something Land&#8221; purely because I couldn&#8217;t think of anything.  I&#8217;ve taken what I&#8217;ve done so far with the Pokemon battle screen [...]]]></description>
			<content:encoded><![CDATA[<p>For a school project, myself and classmates are taking what I was originally (and plan to still do) doing with Pokemon, but in a game of our own.  For now I&#8217;m calling it &#8220;Something Something Land&#8221; purely because I couldn&#8217;t think of anything.  I&#8217;ve taken what I&#8217;ve done so far with the Pokemon battle screen (all I&#8217;ve gotten done so far) and changed the aesthetics as much as I could to differ from looking like Pokemon.  Heres the main battle screen:</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/04/second.jpg"><img class="alignnone size-full wp-image-39" title="second" src="http://seanmadi.com/devblog/wp-content/uploads/2010/04/second.jpg" alt="" width="422" height="321" /></a></p>
<p>The Chuck Norris and Spaghetti (speghetti?) Monster are just place holders of course until I get the database of monsters and users working.</p>
<p>So far what works is:</p>
<ul>
<li>all the variables needed for the monster and your person&#8217;s stats are declared in javascript</li>
<li>stats are calculated from base stats (which right now I just threw stuff in there as opposed to pulling from the database)</li>
<li>the monster ranges randomly from level 2 to 4, but that will be changed based on what are the player is battling in</li>
<li>the monster&#8217;s IV (random individual stats) is random, so the monster may be tough or crummy depending on what randomly pops up</li>
<li>when clicking on &#8220;Fight,&#8221; a screen pops up with what weapons you can use to attack, as well as a back button</li>
<li>when clicking on one of weapons (which each has its stats next to its name and pic) it attacks</li>
<li>the attack is calculated based on that weapons power, the monsters stats, your stats, and whether its a critical hit or not</li>
</ul>
<p>What needs to be done:</p>
<ul>
<li>make the left info pane tell you when theres a critical hit</li>
<li>incorporate elements (fire, wind, water, earth)</li>
<li>magic, and an mp bar</li>
<li>the items menu</li>
<li>running away</li>
<li>pulling monsters from db</li>
<li>pulling your guy&#8217;s info from db</li>
<li>I&#8217;m sure other stuff that I forgot</li>
</ul>
<p>What I just did</p>
<ul>
<li>Make the weapons show up after clicking &#8220;Fight&#8221; and make the damage actually calculate</li>
</ul>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/04/first.jpg"><img class="alignnone size-full wp-image-40" title="first" src="http://seanmadi.com/devblog/wp-content/uploads/2010/04/first.jpg" alt="" width="422" height="321" /></a></p>
<p>The project continues tomorrow.  Sleep time.</p>
]]></content:encoded>
			<wfw:commentRss>http://seanmadi.com/devblog/2010/04/new-project-damage-calculation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Your Own Facebook Application with iFrames and PHP &#8211; Tutorial</title>
		<link>http://seanmadi.com/devblog/2010/03/make-your-own-facebook-app/</link>
		<comments>http://seanmadi.com/devblog/2010/03/make-your-own-facebook-app/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 01:59:06 +0000</pubDate>
		<dc:creator>seanmadi</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[create your own]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook api]]></category>
		<category><![CDATA[facebook app]]></category>
		<category><![CDATA[facebook application]]></category>
		<category><![CDATA[fbml]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[make your own]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://seanmadi.com/devblog/?p=14</guid>
		<description><![CDATA[Making a game or other application on Facebook is fairly simple, but it may be a little daunting at first. It took me a while to figure out what exactly needed to be done, especially when using the iFrames format. Basically there are two different formats you can use: FBML, which just loads your page [...]]]></description>
			<content:encoded><![CDATA[<p>Making a game or other application on Facebook is fairly simple, but it may be a little daunting at first.  It took me a while to figure out what exactly needed to be done, especially when using the iFrames format.  Basically there are two different formats you can use: FBML, which just loads your page directly into the Facebook page, or iFrame, which will load your page into an iFrame inside of the Facebook page.  There are a few advantages and drawbacks to using either method:</p>
<p><span style="text-decoration: underline;">Why use FBML?</span></p>
<ul>
<li>Easier to access the FBML code (when using iFrames you have to use XFBML instead of FBML, and XFBML is slightly more complicated)</li>
<li>Page probably loads faster than iFrame</li>
<li>Much easier to make something quickly</li>
</ul>
<p><span style="text-decoration: underline;">Why use iFrame?</span></p>
<ul>
<li>Can use Javascript, which makes it much easier to just port stuff over</li>
<li>AJAX is faster because it doesn&#8217;t go through a proxy</li>
</ul>
<p>The most important thing to realize that is if you use the iFrame format, you have to use XFBML instead of FBML which really isn&#8217;t much harder to use, I just did not realize this was the case and I was banging my head against the wall trying to figure out why FBML wasn&#8217;t working.  XFBML is basically a version of FBML used for Facebook Connect (external websites that utilize Facebook) and the iFrame approach to creating an application.</p>
<p>I reaaaaally suggest using the iFrame approach solely because in order to use Javascript with just FBML (no iFrame), you have to use FBJS which quite frankly is just flat out retarded and impossible to use.  Because of this mess, this blog post is teaching you how to make an app with the iFrame approach.</p>
<p>So lets just dive right in.</p>
<h2>Part 1:  Setting up your application on Facebook</h2>
<p>Head to <a href="http://www.facebook.com/developers/">http://www.facebook.com/developers/</a> and click on Set Up New Application at the top-right corner.  Name your application, select agree, and click Create Application.</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0001.jpg"><img class="alignnone size-full wp-image-15" title="0001" src="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0001.jpg" alt="" width="719" height="268" /></a></p>
<p>Now click on the Canvas tab on the left.  Make the Canvas Page URL whatever you would like it to be (this is what the url will be for people to get to the app).  Make the Canvas Callback URL the page that your app resides on (your own personal space where you are putting creating the HTML, PHP, or whatever page[s]).  This will be the page that Facebook loads into its iFrame when people go to the Canvas Page URL.  Finally, make sure the Render Method under Canvas Settings is set to IFrame.</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0002.jpg"><img class="alignnone size-full wp-image-16" title="0002" src="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0002.jpg" alt="" width="532" height="506" /></a></p>
<p>****EDIT: I meant to type &#8220;http://seanmadi.com/flareisland&#8221; for the Canvas Callback URL, not &#8220;&#8221;http://seanmadi.com/flairisland&#8221;.</p>
<p>Now here is the tricky part that all of the tutorials I looked at failed to mention.  Click on the Connect tab and make the Connect URL that same as what you put for the Canvas Callback URL.</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0003.jpg"><img class="alignnone size-full wp-image-17" title="0003" src="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0003.jpg" alt="" width="524" height="113" /></a></p>
<p>Finally, after you save those settings, be sure to copy down your API Key and Application Secret.  And thats it for the Facebook side of things! </p>
<h2>Part 2 &#8211; Downloading Facebook&#8217;s necessary PHP files</h2>
<p>Just download the <a href="http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz">PHP Client Library files</a> and upload them to your server somewhere in the same directory as you put as the Canvas Callback URL earlier.</p>
<h2>Part 3 &#8211; Settings up your html/php page on your server</h2>
<p>I will assume you already know how to FTP to your webspace and create and php file.  So do that and put make this make this your index.php file in the directory you entered into the set up above.  The following code will display your profile picture, name, and status and your first 4 friends&#8217; profile picture, name, and status.</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">// FACEBOOK STUFF
</span><span class="phpComment">//Note that where my facebook<span class="phpOperator">.</span>php file is may be different from yours
</span>>require_once <span class="phpString">'php_include/facebook/php/facebook<span class="phpOperator">.</span>php'</span><span class="phpText">;</span>
<span class="phpComment">//Authentication Keys
</span>$appapikey <span class="phpOperator">=</span> <span class="phpString">'6c7b5d1e5d6bef88cf120c42453b57c3'</span><span class="phpText">;</span>
$appsecret <span class="phpOperator">=</span> <span class="phpString">'75005c4cebc164fc42484d6d1cd3ac62'</span><span class="phpText">;</span>
<span class="phpComment">//Construct the <span class="phpKeyword">class
</span>
</span>
$facebook <span class="phpOperator">=</span><span class="phpKeyword"> new </span><span class="htmlText">Facebook</span><span class="phpOperator">(</span>$appapikey, $appsecret<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">//Require login
</span>$user_id <span class="phpOperator">=</span> $facebook<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">require_login</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">echo</span> <span class="phpString">'
<span class="phpOperator">&lt;</span>html xmlns=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment"><span class="phpComment">//www<span class="phpOperator">.</span><span class="htmlText">w3</span><span class="phpOperator">.</span>org/1999/xhtml"</span><span class="htmlText"> xmlns</span><span class="phpOperator">:</span><span class="htmlText">fb</span><span class="phpOperator">=</span><span class="phpString">"http<span class="phpOperator">:</span>//www<span class="phpOperator">.</span><span class="htmlText">facebook</span><span class="phpOperator">.</span>com/2008/fbml"</span></span><span class="phpOperator">&gt;</span>
</span><span class="phpOperator">&lt;</span><span class="htmlText">head</span><span class="phpOperator">&gt;</span>
	<span class="phpOperator">&lt;</span>link href=<span class="phpString">"css/style.css"</span> rel=<span class="phpString">"stylesheet"</span> type=<span class="phpString">"text/css"</span> media=<span class="phpString">"all"</span> /<span class="phpOperator">&gt;</span>
	<span class="phpOperator">&lt;</span>script src=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment"><span class="phpComment">/<span class="phpKeyword">/static<span class="phpOperator">.</span></span><span class="htmlText">ak</span><span class="phpOperator">.</span>connect.facebook<span class="phpOperator">.</span>com/js/api_lib/v0<span class="phpOperator">.</span><span class="phpNumber">4</span>/FeatureLoader.js<span class="phpOperator">.</span>php"</span> type=<span class="phpString">"text/javascript"</span></span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/script<span class="phpOperator">&gt;</span>
</span><span class="phpOperator">&lt;</span>/head<span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span><span class="htmlText">body</span><span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span><span class="htmlText">h3</span><span class="phpOperator">&gt;</span><span class="htmlText">Your profile</span><span class="phpOperator">&lt;</span>/h3<span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span><span class="htmlText">table</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">tr</span><span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span><span class="htmlText">td valign</span><span class="phpOperator">=</span><span class="htmlText">top</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">fb</span><span class="phpOperator">:</span>profile-pic uid<span class="phpOperator">=</span><span class="phpString">"'</span>.$user_id<span class="phpOperator">.</span><span class="phpString">'" linked="true" size="square" /&gt;<span class="htmlOtherTag">&lt;/fb:profile-pic&gt;</span><span class="htmlTableTag">&lt;/td&gt;</span>
<span class="htmlTableTag">&lt;td width=350 valign=top&gt;</span><span class="htmlOtherTag">&lt;fb:name uid="'</span>.$user_id<span class="phpOperator">.</span><span class="phpString">'" useyou="false" /&gt;</span><span class="htmlOtherTag">&lt;/fb:name&gt;</span><span class="htmlOtherTag">&lt;br /&gt;</span>
<span class="htmlOtherTag">&lt;span style="font-size:12px;"&gt;</span><span class="htmlOtherTag">&lt;Fb:user-status uid="'</span>.$user_id<span class="phpOperator">.</span><span class="phpString">'"</span><span class="htmlText"> linked</span><span class="phpOperator">=</span><span class="phpString"><span class="phpKeyword">"true"</span></span> /<span class="phpOperator">&gt;</span></span><span class="phpOperator">&lt;</span>/Fb<span class="phpOperator">:</span>user-status<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/span<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/td<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/tr<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/table<span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span><span class="htmlText">h3</span><span class="phpOperator">&gt;</span><span class="htmlText">Friends</span><span class="phpOperator">&lt;</span>/h3<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
$friends <span class="phpOperator">=</span> $facebook<span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">api_client</span><span class="phpOperator">-<span class="phpOperator">&gt;</span></span><span class="htmlText">friends_get</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
$friends <span class="phpOperator">=</span> <span class="phpFunction">array_slice</span><span class="phpOperator">(</span>$friends, <span class="phpNumber">0</span>, <span class="phpNumber">5</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
foreach </span><span class="phpOperator">(</span>$friends<span class="phpKeyword"> as </span>$friend<span class="phpOperator">)</span>
<span class="phpOperator">{</span>
	<span class="phpFunction">echo</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">table</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">tr</span><span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">"<span class="phpOperator">&lt;</span><span class="htmlText">td valign</span><span class="phpOperator">=</span><span class="htmlText">top</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">fb</span><span class="phpOperator">:</span>profile-pic uid<span class="phpOperator">=</span>\"</span>$friend\<span class="phpString">" linked<span class="phpOperator">=</span>\"</span>&#038;gt<span class="phpKeyword"><span class="phpText">;</span>true\</span><span class="phpString">" size=\"</span>square\<span class="phpString">" imgstyle=\"</span>border-width<span class="phpOperator">:</span><span class="htmlText">1px</span><span class="phpText">;</span> border-color<span class="phpOperator">:</span><span class="htmlText"> black</span><span class="phpText">;</span>\<span class="phpString">" /<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/fb<span class="phpOperator">:</span>profile-pic<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/td<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">"<span class="phpOperator">&lt;</span>td width=350 valign<span class="phpOperator">=</span><span class="htmlText">top</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">fb</span><span class="phpOperator">:</span><span class="htmlText">name uid</span><span class="phpOperator">=</span>\"</span>$friend\<span class="phpString">" useyou<span class="phpOperator">=</span>\"</span>&#038;gt<span class="phpKeyword"><span class="phpText">;</span>false\</span><span class="phpString">" /<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/fb<span class="phpOperator">:</span><span class="htmlText">name</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>br /<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">"<span class="phpOperator">&lt;</span>span style=<span class="phpString">'font-size<span class="phpOperator">:</span><span class="htmlText">12px</span><span class="phpText">;</span>'</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="htmlText">Fb</span><span class="phpOperator">:</span>user-status uid<span class="phpOperator">=</span>\"</span>$friend\<span class="phpString">" linked<span class="phpOperator">=</span>\"</span>&#038;gt<span class="phpKeyword"><span class="phpText">;</span>true\</span><span class="phpString">" /<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/Fb<span class="phpOperator">:</span>user-status<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/span<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/td<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/tr<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/table<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpFunction">echo</span> <span class="phpString">'
		<span class="phpOperator">&lt;</span>script type=<span class="phpString">"text/javascript"</span><span class="phpOperator">&gt;</span>
			<span class="htmlText">FB</span><span class="phpOperator">.</span><span class="htmlText">init</span><span class="phpOperator">(</span><span class="phpString">"6c7b5d1e5d6bef88cf120c42453b57c3"</span>, <span class="phpString">"xd_receiver.htm"</span><span class="phpOperator">)</span><span class="phpText">;</span>
		<span class="phpOperator">&lt;</span>/script<span class="phpOperator">&gt;</span>
	<span class="phpOperator">&lt;</span>/body<span class="phpOperator">&gt;</span>
<span class="phpOperator">&lt;</span>/html<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>****EDIT:  There should not be a &#8216;>&#8217; before the require_once() statement at the top of the code.  For some reason its showing up there when I post even though I didn&#8217;t type it.  So if you are copying and pasting, leave that &#8216;>&#8217; out.</p>
<p>And that&#8217;s it!  With any luck you should get something that looks like this:</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0004.jpg"><img src="http://seanmadi.com/devblog/wp-content/uploads/2010/03/0004.jpg" alt="" title="0004" width="436" height="534" class="alignnone size-full wp-image-30" /></a></p>
<p>Of course if you want to display other things, which I imagine you do, you can change the body of the page to whatever you want.  Check out <a href="http://wiki.developers.facebook.com/index.php/XFBML">Facebook&#8217;s Developer Wiki</a> for information on how to use different XFBML tags.  </p>
<p>One important distinction to recognize between FBML and XFBML is that FBML tags do not need to be closed while XFBML tags do.  So instead of where in FBML you would do &#60;fb:photo pid=&#8221;54321&#8243; uid=&#8221;6789&#8243;&#62;, you you would instead write &#60;fb:photo pid=&#8221;54321&#8243; uid=&#8221;6789&#8243;&#62;&#60;/fb:photo&#62; for XFBML.</p>
<p>I hope this post was informative and not frustrating.  If you have any trouble, let me know in the comments and I&#8217;ll to help as best as I can.  Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanmadi.com/devblog/2010/03/make-your-own-facebook-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The project begins</title>
		<link>http://seanmadi.com/devblog/2010/03/the-project-begins/</link>
		<comments>http://seanmadi.com/devblog/2010/03/the-project-begins/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 22:53:40 +0000</pubDate>
		<dc:creator>seanmadi</dc:creator>
				<category><![CDATA[Pokemon Project]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[pbbg]]></category>
		<category><![CDATA[pokemon]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://seanmadi.com/devblog/?p=8</guid>
		<description><![CDATA[I started working on this idea about 2 to 3 weeks ago. I&#8217;ve always loved the Pokemon Gameboy/DS games and I&#8217;ve always wanted a Pokemon MMO. I&#8217;ve even played a Pokemon MMO (Pokemon World Online), but it was a pain to get working.  I didn&#8217;t mind the servers constantly being down or the game freezing [...]]]></description>
			<content:encoded><![CDATA[<p>I started working on this idea about 2 to 3 weeks ago.  I&#8217;ve always loved the Pokemon Gameboy/DS games and I&#8217;ve always wanted a Pokemon MMO.  I&#8217;ve even played a Pokemon MMO (<a href="http://www.pokemonworldonline.net/">Pokemon World Online</a>), but it was a pain to get working.  I didn&#8217;t mind the servers constantly being down or the game freezing every half an hour myself, but getting anyone else to play it with me was near impossible, as a normal human being wouldn&#8217;t be able to take it.  Even if the game didn&#8217;t have bugs, most social gamers (most people I know and most of the general population) don&#8217;t want to spend the time to download a client to play a game.  Its much easier to get someone hooked to a game by allowing them to quickly play the game for a short period of time and not have to commit.  People will also play your game for a longer term if don&#8217;t play it for several hours a day.</p>
<p><a href="http://seanmadi.com/devblog/wp-content/uploads/2010/03/Pokemon-diamond-and-pearl-group.png"><img title="Pokemon-diamond-and-pearl-group" src="http://seanmadi.com/devblog/wp-content/uploads/2010/03/Pokemon-diamond-and-pearl-group.png" alt="" width="307" height="223" /></a></p>
<p>So back to my idea&#8230;  I want a Pokemon MMO, but a social Pokemon that people can quickly get into (a la browser based).  This doesn&#8217;t exist as far as my searching has found, at least not a decent one.  So I aim to make a social Pokemon game with time limiting factors (such as Mafia Wars&#8217; timed energy mechanism) on the Facebook platform, as this seems to be the best approach.</p>
<p>Making the game in Facebook will enable the user to not have to create a new account with my site, not having to put their email address in yet another place on the internet (and lets be honest&#8211;EVERYONE has Facebook.  Everyone).  Facebook games are also much more accessible to casual gamers as they can just go to a link right off of a website they are already on 15 times a day, and the game can get basically free advertising by implementing a mechanism that posts that they are playing the game in their feed so others see the game (not automatically though, as that is soooo annoying).</p>
<p>This is not going to be a crappy Mafia Wars rip-off with Pokemon characters just thrown in though.  This is going to be a full fledged Pokemon game that any Pokemon lover, past or present, will immediately want to play and hopefully get hooked.  Details will be in the next post.  Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanmadi.com/devblog/2010/03/the-project-begins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

