<?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>Benoit Freslon&#039;s blog  - Game Design, Flash games, ActionScript tutorials ... &#187; flash</title>
	<atom:link href="http://www.benoitfreslon.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benoitfreslon.com</link>
	<description>Indie Game developer, learn Flash &#38; ActionScript with tutorials ...</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:50:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ActionScript: Protect your Flash games on the web, sitelock all your games.</title>
		<link>http://www.benoitfreslon.com/actionscript-protect-your-flash-games-on-the-web-sitelock-all-your-games</link>
		<comments>http://www.benoitfreslon.com/actionscript-protect-your-flash-games-on-the-web-sitelock-all-your-games#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:29:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript3 as3]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[sitelock]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1877</guid>
		<description><![CDATA[If you want to submit your games on one game portals DO NOT UPLOAD YOUR GAMES WITHOUT A SITELOCK SCRIPT. WHY ? Your games can be &#8220;stolen&#8221; by game portals. Or if you didn&#8217;t finish your game it&#8217;s a really a &#8220;pain in the ass&#8221; to update your games spread on all the web. I [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Factionscript-protect-your-flash-games-on-the-web-sitelock-all-your-games&amp;title=ActionScript%3A%20Protect%20your%20Flash%20games%20on%20the%20web%2C%20sitelock%20all%20your%20games." id="wpa2a_2"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p>If you want to submit your games on one game portals DO NOT UPLOAD YOUR GAMES WITHOUT A SITELOCK SCRIPT.</p>
<p><strong>WHY ?</strong></p>
<p>Your games can be &#8220;stolen&#8221; by game portals. Or if you didn&#8217;t finish your game it&#8217;s a really a &#8220;pain in the ass&#8221; to update your games spread on all the web.</p>
<p>I tried lot of code for sitelocking my games but some of them are in ActionScript 2.0 or totally out of date. Some of them can&#8217;t work with the &#8220;https&#8221; or without the &#8220;www&#8221; characters.<br />
Another example when you to want to test your game on your local computer you have to comment the script. And you can forget to uncomment the sitelock script when you submit your game on the web.</p>
<p>So I decided to create my own script.</p>
<p>This is a short version of my script.<br />
But this one is perfect for all uses.</p>
<p><strong>Installation</strong></p>
<p>Copy and Paste this code and add your domains into the array &#8220;[ ]&#8221; separated by commas :</p>
<p>["kongregate.com", ..., ...]</p>
<p>You can lock the local mode by adding a second parameter : false<br />
The default value is set to true.</p>
<div class="codecolorer-container actionscript3 default .codecolorer" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:300px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sitelock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;kongregate.com&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;benoitfreslon.com&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />
<br />
<span style="color: #3f5fbf;">/**<br />
&nbsp;* Sitelock your swf file on domains<br />
&nbsp;* <br />
&nbsp;* @param &nbsp; arrDomain &nbsp; List of all authorized domains<br />
&nbsp;* @param &nbsp; local &nbsp; &nbsp; &nbsp; This swf can be played on local computer ?<br />
&nbsp;*/</span><br />
<span style="color: #339966; font-weight: bold;">function</span> sitelock<span style="color: #000000;">&#40;</span>arrDomain<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">,</span> local<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> isAut<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #004993;">root</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #004993;">root</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">split</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;://&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">domain</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = arr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">split</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;/&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// localmode</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">split</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;file://&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>local<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//trace(&quot;Local mode is autorized&quot;);</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> <span style="color: #0033ff; font-weight: bold;">in</span> arrDomain<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; arr = <span style="color: #004993;">domain</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">split</span><span style="color: #000000;">&#40;</span>arrDomain<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isAut = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">domain</span> = arrDomain<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//trace(&quot;*** Sitelock: Domain found&quot;);</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span> isAut<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//trace(&quot;*** Sitelock: Not authentified&quot;);</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span><br />
<span style="color: #3f5fbf;">/**<br />
&nbsp;* This function is called when the game is locked.<br />
&nbsp;*/</span><br />
<span style="color: #339966; font-weight: bold;">function</span> destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// Domain error</span><br />
&nbsp; &nbsp; <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;*** Domain Error ***&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #004993;">root</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/actionscript-protect-your-flash-games-on-the-web-sitelock-all-your-games/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nano War 2 finally playable</title>
		<link>http://www.benoitfreslon.com/nano-war-2-finally-playable</link>
		<comments>http://www.benoitfreslon.com/nano-war-2-finally-playable#comments</comments>
		<pubDate>Tue, 28 Jun 2011 13:51:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Nano War]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[multiplayer]]></category>
		<category><![CDATA[nano war 2]]></category>
		<category><![CDATA[nanowars]]></category>
		<category><![CDATA[rts]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1663</guid>
		<description><![CDATA[Finally the sequel of Nano War 1 released in november 2007. I hope that new game will be a great success llike the first episode. Every humans own billons of nanoscopic cells. Some of these cells are doomed to protect our organism and fight foreign organisms. Even confined to smaller and unlikely places the war [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fnano-war-2-finally-playable&amp;title=Nano%20War%202%20finally%20playable" id="wpa2a_4"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><a href="http://www.benoitfreslon.com/wp-content/uploads/2011/06/logo_nanowar2_300_300.jpg"><img class="alignleft size-thumbnail wp-image-1664" title="logo_nanowar2_300_300" src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/logo_nanowar2_300_300-150x150.jpg" alt="" width="120" height="120" /></a></p>
<p>Finally the sequel of Nano War 1 released in november 2007.</p>
<p>I hope that new game will be a great success llike the first episode.</p>
<p><em>Every humans own billons of nanoscopic cells.<br />
Some of these cells are doomed to protect our organism and fight foreign organisms.<br />
Even confined to smaller and unlikely places the war is present.</em></p>
<p><em>Welcome on Nano War 2.</em></p>
<p><strong><a title="Nano War 2" href="http://www.kongregate.com/games/badben/nano-war-2" target="_blank">Play Nano War 2 on Kongregate.</a></strong></p>
<p><strong>What&#8217;s news ?</strong></p>
<ul>
<li><strong>Solo mode</strong></li>
<li><strong>25 levels</strong>: play against 1, 2 or 3 computers.</li>
<li><strong>Upgrade your cells</strong></li>
<li><strong>3 difficulty levels</strong></li>
<li><strong>Multiplayer:</strong> play against 1, 2 or 3 players.</li>
<li><strong>Skirmish mode</strong></li>
<li><strong>21 Achivements</strong></li>
<li><strong>The White blood cell</strong>: Increase your cells and capture opponent&#8217;s cells.</li>
<li><strong>The Fat cell</strong>: Protect your cells or infect opponent&#8217;s cells</li>
<li><strong>The Antibody cell</strong>: The most powerfull cell, increase your production or capture opponent&#8217;s cells and units instantly.</li>
</ul>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/nano-war-2-finally-playable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garden Rush : Facebook time management game</title>
		<link>http://www.benoitfreslon.com/garden-rush-facebook-time-management-game</link>
		<comments>http://www.benoitfreslon.com/garden-rush-facebook-time-management-game#comments</comments>
		<pubDate>Fri, 10 Jun 2011 11:06:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[casual]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[garden game]]></category>
		<category><![CDATA[time management]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1647</guid>
		<description><![CDATA[If you like or if you don&#8217;t like vegetables, fruits, salads you can play Garden Rush on Facebook. Garden Rush is a time management game but don&#8217;t worry it isn&#8217;t a percistant game like City Ville. And if you like Alice Greenfingers you will also like Garden Rush. The gameplay loop look like this one [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fgarden-rush-facebook-time-management-game&amp;title=Garden%20Rush%20%3A%20Facebook%20time%20management%20game" id="wpa2a_6"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><a href="http://www.benoitfreslon.com/wp-content/uploads/2011/06/icon1.png"><img class="alignleft size-full wp-image-1650" title="icon" src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/icon1.png" alt="" /></a>If you like or if you don&#8217;t like vegetables, fruits, salads you can play Garden Rush on Facebook.<br />
Garden Rush is a time management game but don&#8217;t worry it isn&#8217;t a percistant game like City Ville.<br />
And if you like Alice Greenfingers you will also like Garden Rush.</p>
<p>The gameplay loop look like this one :</p>
<p>Plant &gt; Arose &gt; Weed &gt; Seasonal illnesses &gt; Prune &gt; Collect &gt; Sell</p>
<p><a href="http://apps.facebook.com/mesmogames/rpgFlashGame?gameId=224#headerTop" target="_blank"><strong>Play Garden Rush on Facebook</strong></a></p>
<p>The game is actually fun and addictive and the graphics are pretty.  Nice work team!</p>
<p>The game was ordered by MesmoGames, the owner of Bouncing Balls or Gems II.<br />
Exkee developed the game and I worked as an ActionScript coder and as a lead director for the first period.</p>

<a href='http://www.benoitfreslon.com/garden-rush-facebook-time-management-game/screenshot_02-3/' title='screenshot_02'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/screenshot_02-150x150.jpg" class="attachment-thumbnail" alt="screenshot_02" title="screenshot_02" /></a>
<a href='http://www.benoitfreslon.com/garden-rush-facebook-time-management-game/screenshot_01-2/' title='screenshot_01'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/screenshot_01-150x150.jpg" class="attachment-thumbnail" alt="screenshot_01" title="screenshot_01" /></a>
<a href='http://www.benoitfreslon.com/garden-rush-facebook-time-management-game/screenshot_00/' title='screenshot_00'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/screenshot_00-150x150.jpg" class="attachment-thumbnail" alt="screenshot_00" title="screenshot_00" /></a>
<a href='http://www.benoitfreslon.com/garden-rush-facebook-time-management-game/icon-3/' title='icon'><img src="http://www.benoitfreslon.com/wp-content/uploads/2011/06/icon1.png" class="attachment-thumbnail" alt="icon" title="icon" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/garden-rush-facebook-time-management-game/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Global Game Jam 2011 Paris: GameXtinction (made in 48h)</title>
		<link>http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h</link>
		<comments>http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h#comments</comments>
		<pubDate>Tue, 01 Feb 2011 13:57:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Contest]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[achievement]]></category>
		<category><![CDATA[break the 4th wall]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gamextinction]]></category>
		<category><![CDATA[ggj]]></category>
		<category><![CDATA[global game jam]]></category>
		<category><![CDATA[isart digital]]></category>
		<category><![CDATA[Paris]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1336</guid>
		<description><![CDATA[Global Game Jam 2011 at Isart Digital Paris FRANCE. The official tweet feed of Global Game Jam Paris The official facebook page  of Global Game Jam Paris That was my first participation at Global Game Jam. Great people, great team, great organization, great games, great experience. We made a Flash based game in 48h with the [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fglobal-game-jam-2011-paris-gamextinction-made-in-48h&amp;title=Global%20Game%20Jam%202011%20Paris%3A%20GameXtinction%20%28made%20in%2048h%29" id="wpa2a_8"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><strong>Global Game Jam 2011 at Isart Digital Paris FRANCE.</strong></p>
<p><a href="http://twitter.com/#!/GGJParis">The official tweet feed of Global Game Jam Paris</a><br />
<a href="http://www.facebook.com/home.php?sk=group_124433817619527 ">The official facebook page  of Global Game Jam Paris</a></p>
<p>That was my first participation at <strong><a href="http://www.globalgamejam.org" target="_blank">Global Game Jam</a></strong>.</p>
<p>Great people, great team, great organization, great games, great experience.</p>
<p>We made a Flash based game in 48h with the theme <strong>Extinction </strong>: <strong><a href="http://www.globalgamejam.org/2011/gamextinction/play" target="_blank">GameXtinction</a></strong>.<br />
We reach one achievement: <strong>Break the 4th wall</strong>.</p>
<p><strong>Description:</strong></p>
<div id="_mcePaste">GameXtinction is an original and experimental game with non-conform features.</div>
<div id="_mcePaste">The main character is a BUG who like to eat game elements.</div>
<div id="_mcePaste">Every eaten objects create a new bug!</div>
<div id="_mcePaste">This greedy creature can travel from a game to another with his saucer.</div>
<div>Click to move the bug.</div>
<div><strong><br />
</strong></div>
<div><strong>Credits:</strong></div>
<div>
<div>
<ul>
<li>Cesar Espejo Pham: 2D artist</li>
<li>Betrand Pujol: Sound artist</li>
<li>Tahir Vico: 2D artist</li>
<li>Audry Vasseaux: 2D artist</li>
<li>Benoit Freslon: Game Designer, Coder</li>
</ul>
</div>
</div>
<div><a href="http://www.globalgamejam.org/2011/gamextinction"><strong>The </strong><strong><strong>GameXtinction</strong> page on Global Game Jam.org</strong></a></div>
<div><a href="http://www.globalgamejam.org/2011/gamextinction/play" target="_blank"><strong>You can play <strong> </strong></strong><strong><strong>GameXtinction</strong> here.</strong></a></div>
<div>Special thanks to Isart Digital and Olivier Lejade.</div>

<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/alien_standing_contours_epais/' title='Alien_Standing_contours_epais'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/Alien_Standing_contours_epais-150x150.gif" class="attachment-thumbnail" alt="Alien_Standing_contours_epais" title="Alien_Standing_contours_epais" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/bg01/' title='Bg01'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/Bg01-150x150.jpg" class="attachment-thumbnail" alt="Bg01" title="Bg01" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/bg02/' title='Bg02'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/Bg02-150x150.jpg" class="attachment-thumbnail" alt="Bg02" title="Bg02" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/gamextinction-screen-ingame-changement-de-jeux-01/' title='gameXtinction screen ingame changement de jeux 01'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/gameXtinction-screen-ingame-changement-de-jeux-01-150x150.jpg" class="attachment-thumbnail" alt="gameXtinction screen ingame changement de jeux 01" title="gameXtinction screen ingame changement de jeux 01" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/gamextinction-screen-ingame-changement-de-jeux-02-2/' title='gameXtinction screen ingame changement de jeux 02'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/gameXtinction-screen-ingame-changement-de-jeux-021-150x150.jpg" class="attachment-thumbnail" alt="gameXtinction screen ingame changement de jeux 02" title="gameXtinction screen ingame changement de jeux 02" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/gamextinction-screen-ingame-niveau-1-02/' title='gameXtinction screen ingame niveau 1 02'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/gameXtinction-screen-ingame-niveau-1-02-150x150.jpg" class="attachment-thumbnail" alt="gameXtinction screen ingame niveau 1 02" title="gameXtinction screen ingame niveau 1 02" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/gamextinction-screen-ingame-niveau-2-01/' title='gameXtinction screen ingame niveau 2 01'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/gameXtinction-screen-ingame-niveau-2-01-150x150.jpg" class="attachment-thumbnail" alt="gameXtinction screen ingame niveau 2 01" title="gameXtinction screen ingame niveau 2 01" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/gamextinction-screen-ingame-niveau-2-02/' title='gameXtinction screen ingame niveau 2 02'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/gameXtinction-screen-ingame-niveau-2-02-150x150.jpg" class="attachment-thumbnail" alt="gameXtinction screen ingame niveau 2 02" title="gameXtinction screen ingame niveau 2 02" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/sreenshot_city/' title='sreenshot_city'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/sreenshot_city-150x150.jpg" class="attachment-thumbnail" alt="sreenshot_city" title="sreenshot_city" /></a>
<a href='http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/sreenshot_level1/' title='sreenshot_level1'><img width="150" height="150" src="http://www.benoitfreslon.com/wp-content/uploads/2011/01/sreenshot_level1-150x150.jpg" class="attachment-thumbnail" alt="sreenshot_level1" title="sreenshot_level1" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/global-game-jam-2011-paris-gamextinction-made-in-48h/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript: Move an object with keyboard with absolute controls</title>
		<link>http://www.benoitfreslon.com/actionscript-move-an-object-with-keyboard-with-absolute-controls</link>
		<comments>http://www.benoitfreslon.com/actionscript-move-an-object-with-keyboard-with-absolute-controls#comments</comments>
		<pubDate>Tue, 01 Feb 2011 11:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript3 as3]]></category>
		<category><![CDATA[Game Design]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[actionscrip]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1361</guid>
		<description><![CDATA[In this tip I will show you how to move an object with keyboard with absolute controls. See also how to move an object with keyboard relative-camera control. What is the absolute controls? The direction of your object will be calculated depending the object orientation. (Biohazard, Micro Machines, Gears of War). This code is very [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Factionscript-move-an-object-with-keyboard-with-absolute-controls&amp;title=ActionScript%3A%20Move%20an%20object%20with%20keyboard%20with%20absolute%20controls" id="wpa2a_10"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p>In this tip I will show you how to move an object with keyboard with absolute controls.</p>
<p><a href="http://www.benoitfreslon.com/actionscript-move-an-object-with-keyboard-with-absolute-controls">See also how to move an object with keyboard relative-camera control.</a></p>
<p><strong>What is the absolute controls?</strong></p>
<p>The direction of your object will be calculated depending the object orientation. (Biohazard, Micro Machines, Gears of War). This code is very usefull if you design a car game.</p>
<p><strong>How to make an absolute control in Flash?</strong></p>
<ul>
<li>Get the arrow key status (key is up/key is down);</li>
<li>Move or rotate the object on enter frame with the new velocity (Left and Right keys: rotate, Up key: forward, Down key: backward);</li>
</ul>
<div class="codecolorer-container actionscript3 default .codecolorer" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:300px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900; font-style: italic;">// Assign 4 booleans for the 4 arrow keys</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">keyUp</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">keyDown</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> keyLeft = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> keyRight = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<span style="color: #009900; font-style: italic;">// Add the keyboard event (KEY_DOWN) on the stage</span><br />
<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> pressKey<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #339966; font-weight: bold;">function</span> pressKey<span style="color: #000000;">&#40;</span>pEvent<span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// If an arrow key is down, switch the value to true to the assigned variable</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">38</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">keyUp</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">keyDown</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">37</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; keyLeft = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">39</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; keyRight = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<span style="color: #009900; font-style: italic;">// Add the keyboard event (KEY_UP) on the stage</span><br />
<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_UP</span><span style="color: #000066; font-weight: bold;">,</span> releaseKey<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #339966; font-weight: bold;">function</span> releaseKey<span style="color: #000000;">&#40;</span>pEvent<span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// If the arrow key is up, switch the value to false to the assigned variable</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">38</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">keyUp</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">keyDown</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">37</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; keyLeft = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">39</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; keyRight = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #009900; font-style: italic;">// Set the velocity of the object</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> speed = <span style="color: #000000; font-weight:bold;">6</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #009900; font-style: italic;">// And the rotation speed</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> rotationSpeed = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<span style="color: #009900; font-style: italic;">// Add an enter frame event on the moving object</span><br />
myCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span> circleEnterFrame<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #339966; font-weight: bold;">function</span> circleEnterFrame<span style="color: #000000;">&#40;</span>pEvent<span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// Set the default velocity to 0 if no key is pressed</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> velocity = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">keyUp</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// If the key up is pressed set the new velocity to the speed value</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; velocity = speed<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">keyDown</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// If the key down is pressed set the new velocity to the half speed value</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; velocity = <span style="color: #000066; font-weight: bold;">-</span>speed<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>keyLeft<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// rotate the object</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> <span style="color: #000066; font-weight: bold;">-</span>= rotationSpeed<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>keyRight<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// rotate the object</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> <span style="color: #000066; font-weight: bold;">+</span>= rotationSpeed<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// Convert the degreeAngle to the radian angle</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> angleRadian = pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">180</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// Move the object with the radian angle and the object speed</span><br />
&nbsp; &nbsp; pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">cos</span><span style="color: #000000;">&#40;</span>angleRadian<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> velocity<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; pEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">sin</span><span style="color: #000000;">&#40;</span>angleRadian<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> velocity<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls_681663666"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="http://www.benoitfreslon.com/wp-content/uploads/2011/02/www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.benoitfreslon.com/wp-content/uploads/2011/02/www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls.swf"
			name="fm_www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls_681663666"
			width="550"
			height="400">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Download source: <a href="http://www.benoitfreslon.com/wp-content/uploads/2011/02/www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls1.zip">www.benoitfreslon.com_Move_an_object_with_keyboard_with_absolute_controls</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/actionscript-move-an-object-with-keyboard-with-absolute-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vote for Take Something Literally 2 to the Flash Gaming Summit 2011</title>
		<link>http://www.benoitfreslon.com/vote-for-take-something-literally-2-to-the-flash-gaming-summit-2011</link>
		<comments>http://www.benoitfreslon.com/vote-for-take-something-literally-2-to-the-flash-gaming-summit-2011#comments</comments>
		<pubDate>Mon, 25 Oct 2010 21:13:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Contest]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[summit]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1150</guid>
		<description><![CDATA[Last year I missed the Flash Gamming Submit 2010. I Would liked to submit Take Something Literally 1. If you like my games you will be very helpfull if you can nominate my game Take Something Literally 2 to the Flash Gaming Summit 2011. This take only 10 seconds : Click here Enter your email [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fvote-for-take-something-literally-2-to-the-flash-gaming-summit-2011&amp;title=Vote%20for%20Take%20Something%20Literally%202%20to%20the%20Flash%20Gaming%20Summit%202011" id="wpa2a_12"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><a href="http://www.benoitfreslon.com/wp-content/uploads/2010/10/Flash-Gaming-Summit-2011.jpg"></a><a href="http://www.benoitfreslon.com/wp-content/uploads/2010/10/Flash-Gaming-Summit-20111.jpg"><img class="alignleft size-full wp-image-1156" title="Flash-Gaming-Summit-2011" src="http://www.benoitfreslon.com/wp-content/uploads/2010/10/Flash-Gaming-Summit-20111.jpg" alt="" width="97" height="69" /></a>Last year I missed the Flash Gamming Submit 2010. I Would liked to submit Take Something Literally 1.</p>
<p>If you like my games you will be very helpfull if you can nominate my game <strong>Take Something Literally 2</strong> to the Flash Gaming Summit 2011.</p>
<p><strong>This take only 10 seconds :</strong></p>
<ol>
<li>Click <a href="http://www.surveymonkey.com/s/fgsawards2011" target="_blank"><strong>here</strong></a></li>
<li>Enter <strong>your email address and your name.</strong></li>
<li>The name of the flash game: <strong>Take Something Literally 2</strong></li>
<li>The website: <strong>http://armorgames.com/play/5977/take-something-literally-2</strong></li>
<li>And finally select 4 catagories: <strong>Best Indie Game, Best Puzzle Game, Most Creative Game and People&#8217;s Choice Awards.</strong></li>
<li>Click on the confirm button, That&#8217;s all!</li>
</ol>
<p><strong>Now I can kiss you ! &#8230; No I can&#8217;t&#8230; But I can say : Thank you very very much!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/vote-for-take-something-literally-2-to-the-flash-gaming-summit-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vote for Nano War and Take Something Literally</title>
		<link>http://www.benoitfreslon.com/vote-for-nano-war-and-take-something-literally</link>
		<comments>http://www.benoitfreslon.com/vote-for-nano-war-and-take-something-literally#comments</comments>
		<pubDate>Mon, 30 Aug 2010 18:30:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nano War]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Contest]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[indie]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1090</guid>
		<description><![CDATA[Hello, If you like Nano War or Take Something Literally you will be very helpfull if you can vote for my games on the Inde Pub Game contest. Register here http://www.indiepubgames.com/register.php And vote here http://www.indiepubgames.com/vote.php Only 5 minutes needed :). Thank you very much. Edit: The contest is over. Actually my game was submited one [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fvote-for-nano-war-and-take-something-literally&amp;title=Vote%20for%20Nano%20War%20and%20Take%20Something%20Literally" id="wpa2a_14"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><img class="alignleft" src="http://www.indiepubgames.com/images/logo.png" alt="" width="83" height="72" />Hello,<br />
If you like Nano War or Take Something Literally you will be very helpfull if you can vote for my games on the Inde Pub Game contest.<br />
Register here <a href="http://www.indiepubgames.com/register.php" target="_blank">http://www.indiepubgames.com/register.php</a><br />
And vote here <a href="http://www.indiepubgames.com/vote.php" target="_blank">http://www.indiepubgames.com/vote.php</a></p>
<p>Only 5 minutes needed :). Thank you very much.</p>
<p>Edit: The contest is over. Actually my game was submited one day before the end. Thank your IndiePub.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/vote-for-nano-war-and-take-something-literally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash for mobile contests</title>
		<link>http://www.benoitfreslon.com/flash-for-mobile-contests</link>
		<comments>http://www.benoitfreslon.com/flash-for-mobile-contests#comments</comments>
		<pubDate>Wed, 18 Aug 2010 16:08:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Contest]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[froyo]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=1059</guid>
		<description><![CDATA[Like you know, Android mobiles with froyo (OS 2.2) can play Adobe Flash content since july 2010. Great new! :D So some websites and Adobe decided to organize 3 diffrent contests: Kongregate Mobile flash game contest: $30 000 in prizes, end 23th august 2010. Flash Game Licence: Cell your Flash game contest, $30 000 in [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fflash-for-mobile-contests&amp;title=Flash%20for%20mobile%20contests" id="wpa2a_16"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><p><a href="http://www.benoitfreslon.com/wp-content/uploads/2010/08/flash_android.jpg"><img class="alignleft size-thumbnail wp-image-1060" title="flash_android" src="http://www.benoitfreslon.com/wp-content/uploads/2010/08/flash_android-150x150.jpg" alt="" width="150" height="150" /></a>Like you know, Android mobiles with froyo (OS 2.2) can play Adobe Flash content since july 2010. Great new! :D</p>
<p>So some websites and Adobe decided to organize 3 diffrent contests:</p>
<p><a href="http://www.kongregate.com/pages/mobile-game-contest" target="_blank">Kongregate Mobile flash game contest: $30 000 in prizes, end 23th august 2010.</a></p>
<p><a href="http://www.flashgamelicense.com/sponsor_pages/adobe/" target="_blank">Flash Game Licence: Cell your Flash game contest, $30 000 in prizes, end 5th october 2010.</a></p>
<p><a href="http://www.mochimedia.com/contest/jul10/" target="_blank">Mochiads: Made for mobile contest, $20 000 in prizes, end 24th october 2010.</a></p>
<p><strong>There is no rules against posting games to other contests.</strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-weight: normal;">So I will try to adapt and optimize <a href="./my-games/roll-and-jump/" target="_self">Roll and Jump</a> and <a href="./my-games/nano-war">Nano War</a> for Android devices. Thank you Adobe and Google. Good luck all!</span><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/flash-for-mobile-contests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GeekIsArt: Gameplay for coders</title>
		<link>http://www.benoitfreslon.com/geekisart-gameplay-for-coders</link>
		<comments>http://www.benoitfreslon.com/geekisart-gameplay-for-coders#comments</comments>
		<pubDate>Sun, 23 May 2010 16:25:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Advergame]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=943</guid>
		<description><![CDATA[GeekIsArt is an advergame developed for ISART Digital. This game is designed for coders and future coders. Discover your programming skills with GeekIsArt ! Help your geek achieve his dream by optimizing his scoring ! The programming department of the school is happy to offer you GeekIsArt, a game based on logic. PLAY GeekIsArt You [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Fgeekisart-gameplay-for-coders&amp;title=GeekIsArt%3A%20Gameplay%20for%20coders" id="wpa2a_18"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><div id="attachment_947" class="wp-caption alignleft" style="width: 160px"></p>
<div class="mceTemp" style="text-align: auto;"><a href="./my-games/geekisart/"><img class="size-thumbnail wp-image-947  " title="Play GeekIsArt" src="http://www.benoitfreslon.com/wp-content/uploads/2010/05/logo_200_200-150x150.jpg" alt="Logo GeekIsArt" width="150" height="150" /></a></div>
<p><p class="wp-caption-text">Play GeekIsArt</p></div>
<p>GeekIsArt is an advergame developed for <a title="ISART Digital" href="http://www.isartdigital.com" target="_blank">ISART Digital</a>. This game is designed for coders and future coders.</p>
<p><em>Discover your programming skills with GeekIsArt ! Help your geek achieve his dream by optimizing his scoring !<br />
The programming department of the school is happy to offer you GeekIsArt, a game based on logic.</em></p>
<blockquote><p><strong><a title="Play GeekIsArt" href="./my-games/geekisart/" target="_self">PLAY GeekIsArt</a></strong></p></blockquote>
<p>You have to program a character (a cute little geek) in order to activate all triggers. But you have to optimise your code like a real programmer.<br />
Optimise every commands by using, function, loop, and logic. You can submit your best score and challenge your friends on 15 levels. Unfortunately the game is only available in french.</p>
<p><a href="http://www.isartdigital.com"><img title="ISART Digital" src="http://www.benoitfreslon.com/wp-content/uploads/2010/05/logo_isart.jpg" alt="" width="102" height="44" /></a></p>
<div><span style="color: #0000ee; -webkit-text-decorations-in-effect: underline;"><br />
</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/geekisart-gameplay-for-coders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take Someting Literally 2 private beta</title>
		<link>http://www.benoitfreslon.com/take-someting-literally-2-private-beta</link>
		<comments>http://www.benoitfreslon.com/take-someting-literally-2-private-beta#comments</comments>
		<pubDate>Sat, 03 Apr 2010 15:23:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[2]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[literally]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[somthing]]></category>
		<category><![CDATA[take]]></category>

		<guid isPermaLink="false">http://www.benoitfreslon.com/?p=878</guid>
		<description><![CDATA[After many requests I decided to blow up my brain to design more puzzles. That was hard, that was epic but I finally found 25 more puzzles. And now your are welcome to test here: Take Something Literally 2 in private beta here. I hope you will enjoy the new game system, the puzzles, the references [...]]]></description>
			<content:encoded><![CDATA[<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.benoitfreslon.com%2Ftake-someting-literally-2-private-beta&amp;title=Take%20Someting%20Literally%202%20private%20beta" id="wpa2a_20"><img src="http://www.benoitfreslon.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p><div id="attachment_879" class="wp-caption alignleft" style="width: 160px"><a href="./my-games/take-something-literally-2/"><img class="size-thumbnail wp-image-879 " title="logo_cat_200_200" src="http://www.benoitfreslon.com/wp-content/uploads/2010/04/logo_cat_200_200-150x150.jpg" alt="Take something literally 2 logo" width="150" height="150" /></a><p class="wp-caption-text">Click to play Take something literally 2 beta</p></div>
<p>After many requests I decided to blow up my brain to design more puzzles. That was hard, that was epic but I finally found 25 more puzzles. And now your are welcome to test here:</p>
<p><a title="Take Something Literally 2" href="./my-games/take-something-literally-2/" target="_self">Take Something Literally 2 in private beta here.</a><strong><br />
</strong></p>
<p>I hope you will enjoy the new game system, the puzzles, the references and the rewards. If you have any request please post a comment or go to the <a href="./forum" target="_blank">forum</a>.</p>
<p><strong>A little post mortem about the first episode:</strong></p>
<p><a title="Take something literally 1" href="./my-games/take-something-literally/" target="_blank">Take something literally 1</a> was my first &#8220;riddle&#8221; game. I made this first episode without Internet connection in few days. I made this game for fun. Actually I just started to design one little &#8220;game&#8221; based on the irreversible choises, the &#8220;flash cookies&#8221; and the clock system. But after all this idea had a big potential. So I decide to design a lot of litle puzzles based &#8220;outside the game&#8221;. Against all odds it was a hudge success with players. I knew that some players could not play some puzzles. But that was my choise. I knew that sponsors would be frightened about that. But after the first release on Kongregate and the 1 million plays in one week they changed their opinion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benoitfreslon.com/take-someting-literally-2-private-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

