<?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>Ask For Game Task</title>
	<atom:link href="http://www.askforgametask.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askforgametask.com</link>
	<description>Online Flash and HTML5 games with tutorials by Srdjan Susnic</description>
	<lastBuildDate>Thu, 22 Dec 2011 09:08:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>How to make Pick Up Sticks game in HTML5 with no programming skills &#8211; Part 1</title>
		<link>http://www.askforgametask.com/2011/12/21/pick-up-sticks-html5-part1/</link>
		<comments>http://www.askforgametask.com/2011/12/21/pick-up-sticks-html5-part1/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 09:23:34 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/?p=756</guid>
		<description><![CDATA[In this tutorial series I will show you how to make my the most played flash game Pick Up Sticks in HTML5 with no programming skills. To do that, I will use Construct 2. It is a visual HTML5 game development tool and to successfully make this tutorial you must know to work with it. [...]]]></description>
			<content:encoded><![CDATA[<div class="alignleft"><a href="http://www.askforgametask.com/?p=756"><img title="Pick Up Sticks HTML5" src="http://db.tt/ukhggZyv" alt="Pick Up Sticks HTML5" width="170" height="130" /></a></div>
<p>In this tutorial series I will show you how to make my the most played flash game <a class="wp-link" href="http://www.askforgametask.com/online-games/pick-up-sticks/" target="_blank">Pick Up Sticks</a> in HTML5 with no programming skills. </p>
<p>To do that, I will use <a class="wp-link" href="http://www.scirra.com/construct2" target="_blank">Construct 2</a>. It is a visual HTML5 game development tool and to successfully make this tutorial you must know to work with it. But even if you don't know how to use Construct2 you can learn it very fast by reading official <a class="wp-link" href="http://www.scirra.com/tutorials" target="_blank">tutorials</a> and <a class="wp-link" href="http://www.scirra.com/manual" target="_blank">manual</a>. It's really very easy and you don't need to write any line of source code!</p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x15 */
google_ad_slot = "2242350315";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></div>
<p>Let's start making game by opening Construct2 and creating a new .capx project named Pick Up Sticks!</p>
<p><span id="more-756"></span><br />
A tree structure of our first project is shown on the next image:</p>
<div class="aligncenter"><img title="Project Tree Structure" src="http://db.tt/t3TiBABH" alt="Project Tree Structure" width="154" height="192" /></div>
<p>So we have a game layout bounded by an event game sheet. Layouts can consist of multiple layers which can be used to easily arrange objects on top of others, but for now we have only one layout with only one layer in this project example. </p>
<p>The size of our layout is 320x480 pixels and it is defined under layout properties. On the layout properties we are also choosing the event sheet which runs for that layout.</p>
<div class="aligncenter"><img title="Game Layout Properties" src="http://db.tt/5foHRoT6" alt="Game Layout Properties" width="217" height="203" /></div>
<p>There are also added two objects to the project: a Mouse for a game control, and a Stick sprite object divided in two frames which consist very simple images of two differently colored sticks. </p>
<p>To add Mouse object right click on Object types in Projects window, select Insert New Object and choose Mouse from the opened dialog. Similarly, to add Stick object choose Sprite from the Insert New Object dialog and give it 'Stick' name when inserted it.</p>
<p>Now, we must add some sprite images to the Stick object from files saved somewhere on your disk. Right click on the previously inserted Stick object in Projects window and select Edit Animation to open Image Editor. Here you can several options to load images from a file so you can do that as you like the most! I usually load all frames from one previously created image (see the image below) using Import Sprite Strip option from the right menu in Animation Frames window.</p>
<div class="aligncenter"><img title="Image with two stick sprites" src="http://db.tt/962BugAh" alt="Image with two stick sprites" width="24" height="100" /></div>
<p>After loading all sprite images to the frames of the Stick object we can use it in our game, but firstly we have to place it on the game layout! For our purpose we will place the Stick object somewhere outside of the game layout so that we don't see it when the game starts, but we will later create a pile of stick instances from it.</p>
<div class="aligncenter"><img title="Game Layout" src="http://db.tt/G5tyrY03" alt="Game Layout" width="224" height="250" /></div>
<p>Next, let's see the properties of the Stick sprite object:</p>
<div class="aligncenter"><img title="Stick Object Properties" src="http://db.tt/vSaf5n91" alt="Stick Object Properties" width="211" height="424" /></div>
<p>Currently, the most important properties for us are Layer, Position, Size and Z instance variable (it is manually added by add/edit option to store Z-depth of each created stick instance - this will be used later to detect which stick is currently placed on the top of the pile).</p>
<p><br style="clear: both;" /></p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60 */
google_ad_slot = "3156680758";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><br style="clear: both;" /></p>
<p>Finally, let's see the event game sheet. All game logic and events are placed here:</p>
<div class="aligncenter"><img title="Game Events" src="http://db.tt/pguTdqv6" alt="Game Events" width="755" height="506" /></div>
<div class="aligncenter" style="margin-top: 15px; margin-bottom: 30px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60game */
google_ad_slot = "5144122655";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>And here is the result of our first project. Click on the sticks to pick them all!</p>
<div class="aligncenter">
<iframe style="border: 1px black solid;" src="http://db.tt/MmCHBCMg" width="320" height="480" style="margin-top: 15px; margin-bottom: 15px; width:320px; height:480px;" frameborder="0" id="PickUpSticks_T01" title="Pick Up Sticks - HTML5 Tutorial">Your browser do not support [iframe] tag to display an embedded object!</iframe></p>
<p>To view and run this example you need a modern HTML5-compatible browser!
</p></div>
<p><a class="wp-link" href="http://db.tt/QyH49X1t" target="_blank">The complete .capx project you can download here!</a><br />
<br style="clear: both;" /></p>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F12%2F21%2Fpick-up-sticks-html5-part1%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F12%2F21%2Fpick-up-sticks-html5-part1%2F&amp;count=horizontal&amp;text=How%20to%20make%20Pick%20Up%20Sticks%20game%20in%20HTML5%20with%20no%20programming%20skills%20%26%238211%3B%20Part%201: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F12%2F21%2Fpick-up-sticks-html5-part1%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F12%2F21%2Fpick-up-sticks-html5-part1%2F&amp;title=How%20to%20make%20Pick%20Up%20Sticks%20game%20in%20HTML5%20with%20no%20programming%20skills%20%26%238211%3B%20Part%201"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/12/21/pick-up-sticks-html5-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New game released: Falling Guru</title>
		<link>http://www.askforgametask.com/2011/11/24/new-game-released-falling-guru/</link>
		<comments>http://www.askforgametask.com/2011/11/24/new-game-released-falling-guru/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 07:39:28 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flixel]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Mochi]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/?p=687</guid>
		<description><![CDATA[Here is Falling Guru, an arcade/platformer flash game designed in an old retro style and made by FlashDevelop using Flixel Game Library (version 2.55). It is based on a very simple but fun and addicting game concept in which you as a great falling guru have to jump over platforms and reach the bottom of [...]]]></description>
			<content:encoded><![CDATA[<div class="alignleft"><a href="http://www.askforgametask.com/online-games-2/falling-guru"><img title="Falling Guru" src="http://sandbox.mochiads.com/c/g/falling-guru/_thumb_100x100.png" alt="Falling Guru" width="100" height="100" /></a></div>
<p>Here is <b><a class="wp-link" href="http://www.askforgametask.com/online-games-2/falling-guru">Falling Guru</a></b>, an arcade/platformer flash game designed in an old retro style and made by FlashDevelop using Flixel Game Library (version 2.55). </p>
<p>It is based on a very simple but fun and addicting game concept in which you as a great falling guru have to jump over platforms and reach the bottom of the cave by falling down through it.</p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x15 */
google_ad_slot = "2242350315";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></div>
<div class="aligncenter"><b><br />
<a class="wp-link" href="http://www.askforgametask.com/online-games-2/falling-guru">Play Falling Guru!</a><br />
</b></div>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F11%2F24%2Fnew-game-released-falling-guru%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F11%2F24%2Fnew-game-released-falling-guru%2F&amp;count=horizontal&amp;text=New%20game%20released%3A%20Falling%20Guru: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F11%2F24%2Fnew-game-released-falling-guru%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F11%2F24%2Fnew-game-released-falling-guru%2F&amp;title=New%20game%20released%3A%20Falling%20Guru"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/11/24/new-game-released-falling-guru/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flixel &amp; Mochi game template &#8211; update</title>
		<link>http://www.askforgametask.com/2011/08/30/flixel-mochi-game-template-2/</link>
		<comments>http://www.askforgametask.com/2011/08/30/flixel-mochi-game-template-2/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 10:47:42 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flixel]]></category>
		<category><![CDATA[Mochi]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/?p=632</guid>
		<description><![CDATA[Some users asked me to make an update of the Flixel &#038; Mochi game template by implementing new versions of Flixel and Mochiads and here is a new updated version of Don't Press Space game. Now it is using Flixel game library (version 2.55) and Mochi ads and leaderboard (version 3.9.4 AS3). Download complete source [...]]]></description>
			<content:encoded><![CDATA[<p>Some users asked me to make an update of the <a class="wp-link" href="http://www.askforgametask.com/2011/02/23/flixel-mochi-game-template" target="_blank">Flixel &#038; Mochi game template</a> by implementing new versions of Flixel and Mochiads and here is a new updated version of Don't Press Space game. Now it is using <a class="wp-link" href="http://flixel.org/" target="_blank">Flixel game library (version 2.55)</a> and <a class="wp-link" href="http://www.mochimedia.com/" target="_blank">Mochi ads and leaderboard (version 3.9.4 AS3)</a>.</p>
<p><a class="wp-link" href="https://github.com/downloads/ssusnic/Dont-Press-Space/Dont_Press_Space_2.zip">Download complete source code of this game (tutorial)</a>!</p>
<p>As usual, the project is developed with <a class="wp-link" href="http://www.flashdevelop.org" target="_blank">FlashDevelop</a> source code editor. To successfully compile it, you have to add a proper classpath to the <strong>AdamAtomic-flixel-2_55</strong> game library installed on your computer as follows:<br />
-&gt; open project in FlashDevelop -&gt; go to Project menu -&gt; Properties -&gt; Classpaths -&gt; Add Classpath.</p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x15 */
google_ad_slot = "2242350315";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></div>
<p><span id="more-632"></span><br />
The game name, default level of zoom for the game's cameras (e.g. gameZoom = 2 : all pixels will be drawn at 2x), Mochi Game ID, game resolution and a movie clip for displaying Mochi ClickAwayAd are defined in <strong>Main.as</strong> class. Change these lines according to the settings of your game!</p>
<div class="code">
<pre class="brush: as3; title: ;">
// define game name
public static const gameName:String = &quot;Don't press space 2&quot;;

// define game zoom
public static const gameZoom:int = 2;

// define Mochi Game ID
public static var strMochiGameID:String = &quot;f2f007e06bbe21d3&quot;; // Substitute this with your Mochi Game ID !

// define Game Resolution
public static var strMochiGameRes:String = &quot;600x480&quot;; // Substitute this with a resolution of your game !

// movie clip to show Mochi ClickAwayAd in it - it will be created and loaded in MenuState Class!
public static var mcClickAwayAd:MovieClip;
</pre>
</div>
<p><br style="clear: both;" /></p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60 */
google_ad_slot = "3156680758";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><br style="clear: both;" /><br />
A Mochi Click Away Ad is defined in <strong>create()</strong> function of <strong>MenuState.as</strong> class so here you can change the highlighted lines if you want to put Click Away Ad on some other position or skip it:</p>
<div class="code">
<pre class="brush: as3; highlight: [15,16,26]; title: ;">
// display Mochi ClickAwayAd...
if (Main.mcClickAwayAd == null){ // create a movie clip to show Mochi ClickAwayAd in it
	Main.mcClickAwayAd = new MovieClip();

	Main.mcClickAwayAd.width = 300;
	Main.mcClickAwayAd.height = 250;

	Main.mcClickAwayAd.scaleX = 0.5 * Main.gameZoom;
	Main.mcClickAwayAd.scaleY = 0.5 * Main.gameZoom;

	Main.mcClickAwayAd.graphics.beginFill(0xff008800, 0);
	Main.mcClickAwayAd.graphics.drawRect(0, 0, 300, 250);
	Main.mcClickAwayAd.graphics.endFill();

	Main.mcClickAwayAd.x = (FlxG.width * Main.gameZoom - Main.mcClickAwayAd.width )  / 2 + 60 * Main.gameZoom;
	Main.mcClickAwayAd.y = (FlxG.height * Main.gameZoom - Main.mcClickAwayAd.height) / 2 + 50 * Main.gameZoom;

	FlxG.stage.addChild(Main.mcClickAwayAd); // to hide it use: FlxG.stage.removeChild(Main.mcClickAwayAd);

	// define options for Mochi ClickAwayAd
	var opts:Object = { };

	opts.id = Main.strMochiGameID; // mochi game ID

	opts.clip = Main.mcClickAwayAd; // attach Mochi ClickAwayAd to this movie clip
	opts.skip = false; //set this option to TRUE if you want to skip the ClickAwayAd 

	// show Mochi ClickAwayAd
	MochiAd.showClickAwayAd(opts);

} else {
	// movie clip with Mochi ClickAwayAd in it is already loaded -&gt; display it!
	FlxG.stage.addChild(Main.mcClickAwayAd);
}
</pre>
</div>
<p><br style="clear: both;" /></p>
<div class="aligncenter" style="margin-top: 15px; margin-bottom: 30px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60game */
google_ad_slot = "5144122655";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>To show Mochi Leaderboard in the main menu screen open <strong>MenuState.as</strong> class and change these lines:</p>
<div class="code">
<pre class="brush: as3; title: ;">
private function showMochiScore():void
{
	// Substitute these with your MochiAd leaderboard code !!!
	var o:Object = { n: [4, 2, 2, 9, 14, 10, 7, 12, 10, 5, 14, 5, 2, 4, 2, 15], f: function (i:Number,s:String):String { if (s.length == 16) return s; return this.f(i+1,s + this.n[i].toString(16));}};
	var boardID:String = o.f(0, &quot;&quot;);

	MochiScores.showLeaderboard( { boardID: boardID, onDisplay: displayMochiScore, onClose: closeMochiScore, onError: closeMochiScore } );
}
</pre>
</div>
<p><br style="clear: both;" /><br />
To send score to Mochi Leaderboard when game is over open <strong>PlayState.as</strong> class and change these lines:</p>
<div class="code">
<pre class="brush: as3; title: ;">
private function sendMochiScore(Timer:FlxTimer=null):void
{
	// Substitute these with your MochiAd leaderboard code !!!
	var o:Object = { n: [4, 2, 2, 9, 14, 10, 7, 12, 10, 5, 14, 5, 2, 4, 2, 15], f: function (i:Number,s:String):String { if (s.length == 16) return s; return this.f(i+1,s + this.n[i].toString(16));}};
	var boardID:String = o.f(0, &quot;&quot;);

	MochiScores.showLeaderboard( { boardID: boardID, onClose: closeGame, onError: closeGame, score:FlxG.score } );

	...
}
</pre>
</div>
<p><br style="clear: both;" /><br />
Here you can try the game:</p>
<div class="aligncenter"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/08/DontPressSpace2.swf" /><param name="wmode" value="opaque" /><embed type="application/x-shockwave-flash" width="600" height="480" src="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/08/DontPressSpace2.swf" wmode="opaque"></embed></object></div>
<div class="aligncenter">
[ <a class="wp-link" href="https://github.com/downloads/ssusnic/Dont-Press-Space/Dont_Press_Space_2.zip">Download Source Code</a> ]<br />
<br style="clear: both;" />
</div>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F08%2F30%2Fflixel-mochi-game-template-2%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F08%2F30%2Fflixel-mochi-game-template-2%2F&amp;count=horizontal&amp;text=Flixel%20%26%23038%3B%20Mochi%20game%20template%20%26%238211%3B%20update: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F08%2F30%2Fflixel-mochi-game-template-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F08%2F30%2Fflixel-mochi-game-template-2%2F&amp;title=Flixel%20%26%23038%3B%20Mochi%20game%20template%20%26%238211%3B%20update"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/08/30/flixel-mochi-game-template-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flixel &amp; Mochi game template</title>
		<link>http://www.askforgametask.com/2011/02/23/flixel-mochi-game-template/</link>
		<comments>http://www.askforgametask.com/2011/02/23/flixel-mochi-game-template/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 09:37:06 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flixel]]></category>
		<category><![CDATA[Mochi]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/?p=380</guid>
		<description><![CDATA[I created a pointless text adventure game called Don't Press Space where you have to survive as long as you can. The game is made for tutorial purposes to see how to join Flixel game library (version 2.35) with Mochi ads and leaderboard (version 3.9.1 AS3). Here you can download complete source code of this [...]]]></description>
			<content:encoded><![CDATA[<p>I created a pointless text adventure game called Don't Press Space where you have to survive as long as you can. The game is made for tutorial purposes to see how to join <a class="wp-link" href="http://flixel.org/" target="_blank">Flixel game library (version 2.35)</a> with <a class="wp-link" href="http://www.mochimedia.com/" target="_blank">Mochi ads and leaderboard (version 3.9.1 AS3)</a>.</p>
<p>Here you can <a class="wp-link" href="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/Dont_Press_Space.zip">download complete source code</a> of this game! I think it is quite good commented so there is no need for more explanations here.</p>
<p>The project is developed with <a class="wp-link" href="http://www.flashdevelop.org" target="_blank">FlashDevelop</a> source code editor. To successfully compile it, you have to add a proper classpath to the <a class="wp-link" href="http://flixel.org/" target="_blank">AdamAtomic-flixel-2_35</a> game library installed on your computer as follows:<br />
-&gt; open project in FlashDevelop -&gt; go to Project menu -&gt; Properties -&gt; Classpaths -&gt; Add Classpath.</p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x15 */
google_ad_slot = "2242350315";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></div>
<p><span id="more-380"></span></p>
<p>Here is a flowchart of the game template for better understanding how it works:</p>
<div class="aligncenter"><a href="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/FlxTemplate-Flowchart.png"><img class="aligncenter size-full wp-image-382" title="Flixel Game Template Flowchart" src="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/FlxTemplate-Flowchart.png" alt="Flixel Game Template Flowchart" width="588" height="797" /></a></div>
<p><br style="clear: both;" /></p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60 */
google_ad_slot = "3156680758";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><br style="clear: both;" /><br />
To set Mochi ID and resolution of your game open <strong>Main.as</strong> and change these lines:</p>
<div class="code">
<pre class="brush: as3; title: ;">
// define Mochi Game ID
public static var strMochiGameID:String = &quot;f2f007e06bbe21d3&quot;; // Substitute this with your Mochi Game ID !

// define Game Resolution
public static var strMochiGameRes:String = &quot;600x480&quot;; // Substitute this with a resolution of your game !
</pre>
</div>
<p><br style="clear: both;" /><br />
A Mochi Click Away Ad is defined in <strong>create()</strong> function of <strong>MenuState.as</strong> class so here you can change the highlighted lines if you want to put Click Away Ad on some other position or skip it:</p>
<div class="code">
<pre class="brush: as3; highlight: [9,10,20]; title: ;">
Main.mcClickAwayAd = new MovieClip();

Main.mcClickAwayAd.width = 300;
Main.mcClickAwayAd.height = 250;

Main.mcClickAwayAd.scaleX = .5;
Main.mcClickAwayAd.scaleY = .5;

Main.mcClickAwayAd.x = (FlxG.width - 150 ) / 2 + 50;
Main.mcClickAwayAd.y = (FlxG.height - 125 ) / 2 + 30;

this.addChild(Main.mcClickAwayAd);

// define options for Mochi ClickAwayAd
var opts:Object = { };

opts.id = Main.strMochiGameID; // mochi game ID

opts.clip = Main.mcClickAwayAd; // attach Mochi ClickAwayAd to this movie clip
opts.skip = false; //set this option to TRUE if you want to skip the ClickAwayAd 

// show Mochi ClickAwayAd
MochiAd.showClickAwayAd(opts);
</pre>
</div>
<p><br style="clear: both;" /></p>
<div class="aligncenter" style="margin-top: 15px; margin-bottom: 30px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60game */
google_ad_slot = "5144122655";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>To show Mochi Leaderboard in the main menu screen open <strong>MenuState.as</strong> and change these lines:</p>
<div class="code">
<pre class="brush: as3; title: ;">
private function showMochiScore():void
{
	// Substitute these with your MochiAd leaderboard code !!!
	var o:Object = { n: [4, 2, 2, 9, 14, 10, 7, 12, 10, 5, 14, 5, 2, 4, 2, 15], f: function (i:Number,s:String):String { if (s.length == 16) return s; return this.f(i+1,s + this.n[i].toString(16));}};
	var boardID:String = o.f(0, &quot;&quot;);

	MochiScores.showLeaderboard( { boardID: boardID, onDisplay: displayMochiScore, onClose: closeMochiScore, onError: closeMochiScore } );
}
</pre>
</div>
<p><br style="clear: both;" /><br />
To send score to Mochi Leaderboard when game is over open <strong>PlayState.as</strong> and change these lines:</p>
<div class="code">
<pre class="brush: as3; title: ;">
private function sendMochiScore():void
{
	// Substitute these with your MochiAd leaderboard code !!!
	var o:Object = { n: [4, 2, 2, 9, 14, 10, 7, 12, 10, 5, 14, 5, 2, 4, 2, 15], f: function (i:Number,s:String):String { if (s.length == 16) return s; return this.f(i+1,s + this.n[i].toString(16));}};
	var boardID:String = o.f(0, &quot;&quot;);

	MochiScores.showLeaderboard( { boardID: boardID, onClose: onQuitGame, onError: onQuitGame, score:FlxG.score } );
}
</pre>
</div>
<p><br style="clear: both;" /><br />
Here you can try the game:</p>
<div class="aligncenter"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/DontPressSpace.swf" /><param name="wmode" value="opaque" /><embed type="application/x-shockwave-flash" width="600" height="480" src="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/DontPressSpace.swf" wmode="opaque"></embed></object></div>
<div class="aligncenter">
[ <a class="wp-link" href="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/02/Dont_Press_Space.zip">Download Source Code</a> ]<br />
<br style="clear: both;" />
</div>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F02%2F23%2Fflixel-mochi-game-template%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F02%2F23%2Fflixel-mochi-game-template%2F&amp;count=horizontal&amp;text=Flixel%20%26%23038%3B%20Mochi%20game%20template: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F02%2F23%2Fflixel-mochi-game-template%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F02%2F23%2Fflixel-mochi-game-template%2F&amp;title=Flixel%20%26%23038%3B%20Mochi%20game%20template"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/02/23/flixel-mochi-game-template/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>A nomination for ZOO Director game</title>
		<link>http://www.askforgametask.com/2011/01/25/a-nomination-for-the-zoo-director-game/</link>
		<comments>http://www.askforgametask.com/2011/01/25/a-nomination-for-the-zoo-director-game/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 13:35:32 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Contest]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/?p=323</guid>
		<description><![CDATA[ZOO Director is nominated for the Best of Casual Gameplay 2010 in the webtoy/sandbox category by the JayIsGames game portal. The game is made in three weeks for the  Casual Gameplay Design Competition #8 and it won the fifth place with the next score: Theme: 4.38, Appeal: 3.10, Fun: 3.29, Composition: 2.71, Technical: 3.95, Rating: 3.43, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jayisgames.com/best-of/2010/" target="_blank"><img class="aligncenter" title="Best of Casual Gameplay 2010" src="http://images.jayisgames.com/bestof2010-vote.jpg" alt="Best of Casual Gameplay 2010" width="494" height="150" /></a></p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x15 */
google_ad_slot = "2242350315";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></div>
<p>ZOO Director is nominated for the <a class="wp-link" title="Best of Casual Gameplay 2010" href="http://jayisgames.com/best-of/2010/" target="_blank">Best of Casual Gameplay 2010</a> in the <a class="wp-link" title="best of webtoy/sandbox game" href="http://jayisgames.com/best-of/2010/webtoy-or-sandbox/" target="_blank">webtoy/sandbox category</a> by the <a class="wp-link" title="jayisgames.com" href="http://jayisgames.com/" target="_blank">JayIsGames</a> game portal. The game is made in three weeks for the  <a class="wp-link" title="Casual Gameplay Design Competition #8" href="http://jayisgames.com/tag/cgdc8" target="_blank">Casual Gameplay Design Competition #8</a> and it won the <a class="wp-link" title="CGDC8 winners" href="http://jayisgames.com/archives/2010/08/cgdc8_results.php" target="_blank">fifth place</a> with the next score:</p>
<p>Theme: 4.38, Appeal: 3.10, Fun: 3.29, Composition: 2.71, Technical: 3.95, Rating: 3.43, <strong>Total (weighted avg): 3.62</strong></p>
<p>Nomination comment is here:<br />
 Not a lot can be said without spoiling the fun of playing Srdjan Susnic's entry into our CGDC#8. What you should know is that ZOO Director is a truly traditional sandbox gameplay experience. Your aim is to rise above the rank of humble Zoo Novice to claim the glorious title of Zoo Director, by creating and maintaining your very own zoo. Sounds simple, but this quirky little game quickly reveals its challenges.</p>
<div class="aligncenter"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60 */
google_ad_slot = "3156680758";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><a class="wp-link" title="best of webtoy/sandbox game" href="http://jayisgames.com/best-of/2010/webtoy-or-sandbox/" target="_blank">Find the game and vote for it here!</a></p>
<a href="http://www.askforgametask.com/online-games-2/zoo-director/" class="wp-link" title="Play ZOO Director here!">Play ZOO Director here!</a>
<p><br class="spacer_" /></p>
<p style="text-align: center;">Update on February 11, 2011:</p>
<p style="text-align: center;"><a href="http://jayisgames.com/best-of/2010/webtoy-or-sandbox-results" target="_blank"><img class="aligncenter" style="vertical-align: middle; margin-bottom: 20px; margin-top: -20px;" title="ZOO Director won Top 5 award" src="http://images.jayisgames.com/bestof2010-award-5.png" alt="ZOO Director won Top 5 award" width="72" height="70" /></a> <strong><a class="wp-link" href="http://jayisgames.com/best-of/2010/webtoy-or-sandbox-results" title="ZOO Director won Top 5 award" target="_blank">ZOO Director won Top 5 award</a></strong></p>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F25%2Fa-nomination-for-the-zoo-director-game%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F25%2Fa-nomination-for-the-zoo-director-game%2F&amp;count=horizontal&amp;text=A%20nomination%20for%20ZOO%20Director%20game: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F25%2Fa-nomination-for-the-zoo-director-game%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F25%2Fa-nomination-for-the-zoo-director-game%2F&amp;title=A%20nomination%20for%20ZOO%20Director%20game"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/01/25/a-nomination-for-the-zoo-director-game/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The site is redesigned</title>
		<link>http://www.askforgametask.com/2011/01/18/the-site-is-redesigne/</link>
		<comments>http://www.askforgametask.com/2011/01/18/the-site-is-redesigne/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 09:24:31 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.askforgametask.com/wordpress/?p=272</guid>
		<description><![CDATA[Hello world! Well, today is a new beginning for this web site. After long preparations and redesigning, I can say now that it has a new look finally. As you see, the site is now powered by WordPress script using Lightword Theme created by Andrei Luca. The old look of the site is shown for [...]]]></description>
			<content:encoded><![CDATA[<p>Hello world!</p>
<p>Well, today is a new beginning for this web site. After long preparations and redesigning, I can say now that it has a new look finally.</p>
<p>As you see, the site is now powered by <a class="wp-link" href="http://www.wordpress.org/" target="_blank">WordPress</a> script using <a class="wp-link" href="http://www.lightworddesign.org/" target="_blank">Lightword Theme</a> created by Andrei Luca. The old look of the site is shown for the history on the published image below.</p>
<p><img class="aligncenter size-full wp-image-281" style="border: 1px solid black;" title="the old look of this web site" src="http://www.askforgametask.com/wordpress/wp-content/uploads/2011/01/old_afgt2.png" alt="the old look of this web site" width="387" height="274" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-7299629238854891";
/* 468x60 */
google_ad_slot = "3156680758";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Currently there are no my old tutorials, but I'm planning to add them as soon as possible.<br />
For now you can play <a href="http://www.askforgametask.com/online-games/" class="wp-link">my online games</a> (there are many addicting games for your fun, but also for wasting your time).</p>
<p>Enjoy!</p>
<p><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F18%2Fthe-site-is-redesigne%2F&amp;counturl=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F18%2Fthe-site-is-redesigne%2F&amp;count=horizontal&amp;text=The%20site%20is%20redesigned: " frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F18%2Fthe-site-is-redesigne%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.askforgametask.com%2F2011%2F01%2F18%2Fthe-site-is-redesigne%2F&amp;title=The%20site%20is%20redesigned"><img src="http://www.askforgametask.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.askforgametask.com/2011/01/18/the-site-is-redesigne/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

