<?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>2souldesign</title>
	<atom:link href="http://www.2souldesign.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.2souldesign.net</link>
	<description>flash games and tutorials for mobile devices</description>
	<lastBuildDate>Tue, 22 Nov 2011 03:34:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A new direction</title>
		<link>http://www.2souldesign.net/2011/11/a-new-direction/</link>
		<comments>http://www.2souldesign.net/2011/11/a-new-direction/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 03:34:16 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[santoki]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=465</guid>
		<description><![CDATA[Adobe recently announced that flash will no longer be updated for future support. This is huge news for people like myself who have programmed flash apps and games for over 7 years. No more Flash updates on phones!

What prompted the decision for Adobe was the amazing new capabilities of HTML5 and the sweeping industry of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.adobe.com/conversations/2011/11/flash-focus.html">Adobe</a> recently announced that flash will no longer be updated for future support. This is huge news for people like myself who have programmed flash apps and games for over 7 years. No more Flash updates on phones!</p>
<p><span id="more-465"></span></p>
<p>What prompted the decision for Adobe was the amazing new capabilities of HTML5 and the sweeping industry of Android development. Likewise, I have decided that it&#8217;s time for me to make my move as well. It&#8217;s time to develop Android applications!</p>
<p>What does this mean? I&#8217;ll have to start learning Java and ultimately purchase an Android phone. This is a huge investment, but I think it&#8217;ll serve me well in the future. What particularly attract me to this new step is the android and amazon app store. Rather than focusing on how to do business, the stores will worry about that and allow me to just put my effort on what I like to do most: program.</p>
<p>This transition will not come easy. I&#8217;ll have to learn a lot of the basics: from best practice to Android API calls. I&#8217;ve heard it&#8217;s difficult, but I&#8217;m sure I&#8217;ll enjoy the investment.</p>
<p>What does this mean? I&#8217;ll be posting a lot of my findings and my research. It&#8217;s my hope to update this blog in increments according to my research and allow you all to see my progress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2011/11/a-new-direction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flight Arena Source</title>
		<link>http://www.2souldesign.net/2011/06/flight-arena-source/</link>
		<comments>http://www.2souldesign.net/2011/06/flight-arena-source/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 21:07:19 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Flight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[santoki]]></category>
		<category><![CDATA[cowon s9]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=459</guid>
		<description><![CDATA[Hello Everyone,
I&#8217;ve decided to release Flight Arena&#8217;s source as a donationware. There are no restrictions or limitations on this release.


If this release was helpful in anyway, consider donating. The source code has been compiled through Flash CS4. So you will need CS4 of higher (cs4, cs5, or cs5.5).
If you have any questions about the code or [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Everyone,</p>
<p>I&#8217;ve decided to release Flight Arena&#8217;s source as a donationware. There are no restrictions or limitations on this release.</p>
<p><span id="more-459"></span></p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2011/06/flightarena.jpg"><img title="flightarena" src="http://www.2souldesign.net/wp-content/uploads/2011/06/flightarena.jpg" alt="" width="448" height="297" /></a></p>
<p>If this release was helpful in anyway, consider donating. The source code has been compiled through Flash CS4. So you will need CS4 of higher (cs4, cs5, or cs5.5).</p>
<p>If you have any questions about the code or implementation feel free to ask me.</p>
<p>Hope this continues on the Cowon s9/J3 app/game community!</p>
<p>Here&#8217;s the link to the file: <a href="http://www.2souldesign.net/download/[DEV]flighArena.zip">[DEV]flighArena</a></p>
<p>Santoki</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2011/06/flight-arena-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Personal updates</title>
		<link>http://www.2souldesign.net/2010/10/personal-updates/</link>
		<comments>http://www.2souldesign.net/2010/10/personal-updates/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 23:22:29 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[santoki]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=452</guid>
		<description><![CDATA[Hello everyone,
As you may all know, I&#8217;ve been absent for several months. The first few months were due to a severe neck injury that prohibited me from any posture or activity that involved sitting.

It was then during July that I had fully recovered, but was studying for a exam (to which I did extremely well [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>As you may all know, I&#8217;ve been absent for several months. The first few months were due to a severe neck injury that prohibited me from any posture or activity that involved sitting.</p>
<p><span id="more-452"></span></p>
<p>It was then during July that I had fully recovered, but was studying for a exam (to which I did extremely well in). As September approached, I was contemplating whether or not I should continue this blog as there seemed to be less and less demand for applications. Nevertheless, I set a count of 20. If 20 or more people were to inquiry about my absence I would continue. Sure enough a few days ago, I felt inspired to get back on developing.</p>
<p>I still do not have a Cowon s9 &#8211; so developing &#8220;bug free&#8221; is not likely. I&#8217;ve recently become interested in developing for the Android and iOS, but because I do not own any of the two hosts I have not yet jumped into the band wagon. I&#8217;ve decided to change and shift focus of this blog as an open tutorial and personal request site. Tutorials will be made upon request and only upon my discretion. For instance, if there is a high demand in creating a mine-sweeper game, I will take time to make a minesweeper series. If there is a personal request for a game or app I will suspend the tutorials and privately create the application for the requester for a donation fee (this will help me in development cost). The donation fee can be anywhere from $0.99+ (you be the judge).</p>
<p>I have also recently purchased a kindle as it was a great aide for me while in bed. Amazon has recently announced a development platform in which I will be sure to participate in to develop for. Although my focus is on flash, as they begin to role out the SDK I will be adding kindle based applications.</p>
<p>Again, thank you all for patiently waiting. I know my absence was abrupt, but I assure you I am well now and ready for some challenges!</p>
<p>-Santoki</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/10/personal-updates/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Tutorial: How to make a Flight Clone</title>
		<link>http://www.2souldesign.net/2010/04/flightclone/</link>
		<comments>http://www.2souldesign.net/2010/04/flightclone/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 23:29:18 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Flight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[flight clone]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=417</guid>
		<description><![CDATA[Here&#8217;s the next installment to the tutorial series on how to make a gsensor game.

Today we are going to learn how to make the following game:

Note: the demo game above is NOT using the gsensor(for convenience), but the mouse. This tutorial will be using the gsensor.
This tutorial is buildup from a previous Gsensor tutorial. You [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the next installment to the tutorial series on how to make a gsensor game.</p>
<p><span id="more-417"></span></p>
<p>Today we are going to learn how to make the following game:</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/advancedGsensorTutorial1.swf"><img style="border: 2px single gray;" src="http://www.2souldesign.net/wp-content/uploads/2010/04/flight_game.jpg" alt="" /></a></p>
<p>Note: the demo game above is NOT using the gsensor(for convenience), but the mouse. This tutorial will be using the gsensor.</p>
<p>This tutorial is buildup from a previous Gsensor tutorial. You can find it <a href="http://www.2souldesign.net/2010/03/how-to-make-gsensor-games-tutorial/">here</a>.</p>
<h2>Preparations</h2>
<p>Go on ahead and download the advancedGsensorTutorial.zip from the previous tutorial and open the .fla.</p>
<p>Create a new layer and label it ship.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step1.jpg"><img class="alignnone size-full wp-image-429" title="step1" src="http://www.2souldesign.net/wp-content/uploads/2010/04/step1.jpg" alt="" width="298" height="200" /></a></p>
<p>Next draw anything that looks like a ship&#8230; here&#8217;s what mine looks like.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step2.jpg"><img class="alignnone size-full wp-image-430" title="step2" src="http://www.2souldesign.net/wp-content/uploads/2010/04/step2.jpg" alt="" width="298" height="200" /></a></p>
<p>Go on ahead and select it and make it into a Movie Clip by right clicking and pressing Convert to Symbol.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step3.jpg"><img class="alignnone size-full wp-image-431" title="step3" src="http://www.2souldesign.net/wp-content/uploads/2010/04/step3.jpg" alt="" width="298" height="380" /></a></p>
<p>Make sure to label the name as <strong>hero</strong>, check Export for Actionscript, and give it an Identifier name of <strong>hero</strong>. Click OK.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step4.jpg"><img class="alignnone size-full wp-image-432" title="step4" src="http://www.2souldesign.net/wp-content/uploads/2010/04/step4.jpg" alt="" width="297" height="376" /></a></p>
<p>Great! Now you can delete the hero currently on the Stage because it will be dynamically added on to the screen (Do not delete the hero in the library).</p>
<p>Let&#8217;s go on ahead and prepare for blasters!</p>
<p>Draw a simple bullet/blaster and like the hero, let&#8217;s make it into a Movie Clip by right clicking and pressing Convert to Symbol or the shortcut F8.</p>
<p>Make sure to label the name as <strong>bullet</strong>, check Export for Actionscript, and  give it an Identifier name of <strong>bullet</strong>. Click OK.<a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step5.jpg"></a></p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/04/step5.jpg"><img class="alignnone size-full wp-image-433" title="step5" src="http://www.2souldesign.net/wp-content/uploads/2010/04/step5.jpg" alt="" width="297" height="376" /></a></p>
<p>Like the hero, you can delete the bullet currently on the Stage because it  will be dynamically added on to the screen (Do not delete the bullet in  the library).</p>
<h2>Coding</h2>
<p>Our goal for coding will be to replace the default image with the cool hero ship we made and allow it to shoot those bullets we made earlier.</p>
<p>Go ahead and press F9 to open up the actions panel. Assuming you have not touched the code, find line 31 and let&#8217;s add a container.</p>
<pre>createEmptyMovieClip("container", 0);
</pre>
<p>This code allows us to store everything into a container MovieClip and control everything in a much more structured manner.</p>
<p>Next find line 36 which says:</p>
<pre>var mc:Object = _root.attachMovie("ball", "hero", _root.getNextHighestDepth());</pre>
<p>and modify it to say the following:</p>
<pre style="font-size: .87em;">var mc:Object = _root.<span style="color: #ff0000;">container</span>.attachMovie("<span style="color: #ff0000;">hero</span>", "hero", _root.<span style="color: #ff0000;">container</span>.getNextHighestDepth());</pre>
<p>If you&#8217;ve made the changes and test the movie out (or even play it on the cowon). You should be able to play with the ship with the gsensor.</p>
<p>Coding the bullet will now require a little more coding, but don&#8217;t worry we&#8217;ll go one step at a time.</p>
<p>Start on a new line on the bottom of the same Action layer, for me it was line 112.</p>
<p>Let&#8217;s begin by making a function for shooting a bullet:</p>
<pre>function shoot_bullet(obj:Object) {
 bcnt++;
 <span style="font-size: .78em;">var mc:Object = _root.container.attachMovie("bullet", "bullet"+bcnt, _root.container.getNextHighestDepth());</span>
 //centers the mc to the middle of the object.
 mc._x = obj._x;
 mc._y = obj._y;
 mc.spd = 10;
 mc.onEnterFrame = function() {
 //movement applied to this mc
 this._y -= this.spd;
 //bounding restrictions.
 if (this._y&lt;=0) {
 this.removeMovieClip();
 }
 };
}</pre>
<p>The following code creates a bullet on the center of the designated object (in our program the hero) and will move to the top of the screen at a speed of 10 pixel per frame and will be removed from the game once it reaches the y coordinate of 0.</p>
<p>You will notice that I am using a variable called bcnt. What is that? Well it is a counter as for how many bullets have been fired off. So let&#8217;s define the variable bcnt where all the other variables are defined. In our example, it&#8217;s line 27 right under the declaring of the variable gCurRotation add:</p>
<pre>var bcnt:Number = 0;
</pre>
<p>Now we are settled. All we need to do is have an action or an event that calls our newly defined function. Add the following action to the bottom of the code:</p>
<pre>onMouseDown = function(){
 shoot_bullet(_root.container.hero);
}
</pre>
<p>The following code responds to every time the user presses the screen/Mouse is down, the shoot_bullet function will be called causing the hero to shoot a bullet.</p>
<p>Awesome! Well that completes the first installment of making a flight clone. Hope you enjoyed it.</p>
<p>You can download all the files <a href="http://www.2souldesign.net/download/tutorialflightclone.zip">here</a>.</p>
<p>If you come across any trouble say it feel free to comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/04/flightclone/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Santoki Beta Release!</title>
		<link>http://www.2souldesign.net/2010/03/santoki-beta-release/</link>
		<comments>http://www.2souldesign.net/2010/03/santoki-beta-release/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 08:03:04 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[santoki]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gsensor]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=412</guid>
		<description><![CDATA[While definitely not the complete game. Santoki is still a very playable and fun game and I would like to share the current fun to you all.

The game still needs some fine tuning and obstacles for our little furry hero, but since I felt the game was still very playable I am offering a beta [...]]]></description>
			<content:encoded><![CDATA[<p>While definitely not the complete game. Santoki is still a very playable and fun game and I would like to share the current fun to you all.</p>
<p><span id="more-412"></span><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki21.jpg"><img class="alignnone size-full wp-image-413" title="Santoki2" src="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki21.jpg" alt="" width="214" height="259" /></a></p>
<p>The game still needs some fine tuning and obstacles for our little furry hero, but since I felt the game was still very playable I am offering a beta release to you all. The game you will notice is in Korean. That&#8217;s because I wanted to motivate myself into the translation process. It&#8217;s been a very fun project translating texts from English to Korean and English to Russian. Hopefully when the game is complete the four languages will be functional.</p>
<p>In this current release you will notice the following:</p>
<ul>
<li> High score will be saved.</li>
<li>Three different types of platforms
<ul>
<li>Normal: These are normal.</li>
<li>False: As the name implies, these platforms will break upon touching.</li>
<li>Move: These platforms will move side to side.</li>
</ul>
</li>
<li>Removed Settings and Achievements Page
<ul>
<li>Reason: Being developed &#8211; will be updated.</li>
</ul>
</li>
</ul>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/takenout.jpg"><img class="alignnone size-full wp-image-414" title="takenout" src="http://www.2souldesign.net/wp-content/uploads/2010/03/takenout.jpg" alt="" width="272" height="480" /></a></p>
<p>If you&#8217;re an advertiser and would like to purchase some ad space either on the game or this website, you may always email me.</p>
<p>I would like to also point out that the game Santoki took a lot of time to develop. These little games do not simply fall from the sky, it takes hours upon hours. If you so feel kind, I would greatly appreciate any sort of donations for Santoki (Please see the paypal button on the bottom of the post).</p>
<p><a title="Download" href="http://www.2souldesign.net/download/2SD_Santoki_01.zip" target="_blank"><img class="alignnone size-full wp-image-226" title="download" src="http://www.2souldesign.net/wp-content/uploads/2009/10/download.jpg" alt="download" width="168" height="52" /></a></p>
<p>Thanks and I hope you enjoy!</p>
<p>Santoki</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/03/santoki-beta-release/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>Santoki the Game</title>
		<link>http://www.2souldesign.net/2010/03/santoki-the-game/</link>
		<comments>http://www.2souldesign.net/2010/03/santoki-the-game/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 23:27:42 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[santoki]]></category>
		<category><![CDATA[gsensor]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=405</guid>
		<description><![CDATA[I have been always longing to release a game that used a &#8220;santoki&#8221; as a mascot. &#8220;Santoki&#8221; is actually a Korean term for a mountain rabbit. So I began working on a game that involves a santoki and the Cowon Gsensor.

Why a Santoki?

I was actually born in the year of the rabbit according to the [...]]]></description>
			<content:encoded><![CDATA[<p>I have been always longing to release a game that used a &#8220;santoki&#8221; as a mascot. &#8220;Santoki&#8221; is actually a Korean term for a mountain rabbit. So I began working on a game that involves a santoki and the Cowon Gsensor.</p>
<p><span id="more-405"></span></p>
<h2>Why a Santoki?</h2>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki.jpg"><img class="alignnone size-full wp-image-407" title="Santoki" src="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki.jpg" alt="" width="272" height="480" /></a></p>
<p>I was actually born in the year of the rabbit according to the Chinese Zodiac. So that is why I inherited my nickname &#8220;santoki&#8221; &#8211; imagine that. Plus, bunnies are cute.</p>
<h2>What&#8217;s Santoki about?</h2>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki2.jpg"><img class="alignnone size-full wp-image-408" title="Santoki2" src="http://www.2souldesign.net/wp-content/uploads/2010/03/Santoki2.jpg" alt="" width="272" height="480" /></a></p>
<p>Well in this game, you get to play as a santoki and you work yourself  out jumping and hopping across platforms. The idea of the game is  simple &#8211; the higher you go the more points you get. It becomes much more  challenging as you peak higher and higher to the top of the mountain as  you&#8217;ll have less platforms to come across and more obstacles arising.</p>
<p>The cool thing about this game is that you can control the santoki with your cowon gsensor making it challenging and very addictive.</p>
<h2>Is the game in Korean?!</h2>
<p>Actually, it&#8217;ll be available in multiple language supports. However, the screens you see are in Korean. I wanted to release this game in a multi-language platform setting. Hopefully, it&#8217;ll be available in English, German, Russian, and Korean.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/santok200ll.jpg"><img class="alignnone size-full wp-image-409" title="santok200ll" src="http://www.2souldesign.net/wp-content/uploads/2010/03/santok200ll.jpg" alt="" width="200" height="200" /></a></p>
<p>Expect to see this game soon.</p>
<p>-Santoki</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/03/santoki-the-game/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tutorial: How to make Gsensor Games</title>
		<link>http://www.2souldesign.net/2010/03/how-to-make-gsensor-games-tutorial/</link>
		<comments>http://www.2souldesign.net/2010/03/how-to-make-gsensor-games-tutorial/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 07:44:05 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gsensor]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=385</guid>
		<description><![CDATA[One of the reason Cowon&#8217;s s9 was a huge hit was its use of an accelerometer. This tutorial will teach you how to utilize its latest advanced gsensor API.


If you would like to just skip the tutorial and just download the file, you can get it here.

Otherwise, let&#8217;s get started.




1. Drawing our hero
If we are [...]]]></description>
			<content:encoded><![CDATA[<p>One of the reason Cowon&#8217;s s9 was a huge hit was its use of an accelerometer. This tutorial will teach you how to utilize its latest advanced gsensor API.</p>
<p><span id="more-385"></span></p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/tutorial1.jpg"><img class="alignnone size-full wp-image-392" title="tutorial1" src="http://www.2souldesign.net/wp-content/uploads/2010/03/tutorial1.jpg" alt="" width="286" height="272" /></a></p>
<p>If you would like to just skip the tutorial and just download the file, you can get it <a href="http://www.2souldesign.net/download/advancedGsensorTutorial.zip">here</a>.</p>
<p><a title="Download" href="http://www.2souldesign.net/download/advancedGsensorTutorial.zip" target="_blank"><img class="alignnone size-full wp-image-226" title="download" src="http://www.2souldesign.net/wp-content/uploads/2009/10/download.jpg" alt="download" width="168" height="52" /></a></p>
<p>Otherwise, let&#8217;s get started.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4820105881203470";
/* Homepage 300x250, created 1/28/10 */
google_ad_slot = "9812573839";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script></p>
<p><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h2>1. Drawing our hero</h2>
<p>If we are to move anything with our nifty Cowon G-Sensor, we&#8217;ll need a hero object &#8211; a ball. Let&#8217;s go on ahead and grab the Oval Tool (0) and draw a circle. Once you&#8217;ve made a circle select it and make it into a movie clip (F8) and name it &#8220;ball&#8221; and make sure to check Export for ActionScript and give it an Identifier name of &#8220;ball&#8221; and press OK (see picture below).</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/pic2.jpg"><img class="alignnone size-full wp-image-393" title="pic2" src="http://www.2souldesign.net/wp-content/uploads/2010/03/pic2.jpg" alt="" width="422" height="387" /></a></p>
<h2>2. Coding our hero</h2>
<p>believe it or not, we are 1/2 way there! Well, almost there. Now go on ahead and create a new layer, label it action and lock the layer (see image below).</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/03/pic3.jpg"><img class="alignnone size-full wp-image-394" title="pic3" src="http://www.2souldesign.net/wp-content/uploads/2010/03/pic3.jpg" alt="" width="319" height="176" /></a></p>
<p>Now the best part&#8230; the code. Press F9 and enter the following code in the &#8220;Actions&#8221; layer:</p>
<pre>/* Variables */
// Always Initialized Variables
var setX:Number = 0;
var setY:Number = 0;
var setZ:Number = 0;

var preX:Number = 0;
var preY:Number = 0;
var preZ:Number = 0;
var DIR:Number = 0;

var curX:Number = 0;
var curY:Number = 0;
var curZ:Number = 0;
var gCurRotation:Number = -1;

//Callibrates the current position of the s9 as the "initial position"
SetXYZ();
stop();

//creates hero with .4 speed sensitivity;
create_hero(.4);
function create_hero(spd:Number) {
//creates a mc and links the mc labeled "ball" and names it hero.
var mc:Object = _root.attachMovie("ball", "hero", _root.getNextHighestDepth());
//centers the mc to the middle of the screen.
mc._x = Stage.width/2;
mc._y = Stage.height/2;
//sensor speed;
mc.sensor_spd = spd;
mc.onEnterFrame = function() {
//the code that allows movement based off of the xyz movement.
_root.ReadXYZ();

//movement applied to this mc
this._x = this._x+this.sensor_spd*_root.curX;
this._y = this._y+this.sensor_spd*_root.curY;

//bounding restrictions.
if (this._x&gt;=480) {
this._x = 480;
}
if (this._x&lt;=0) { this._x = 0; } if (this._y&gt;=272) {
this._y = 270;
}
if (this._y&lt;=0) { this._y = 0; } }; } // s9 Accellerometer function
function SetXYZ():Void { trace("set() working!");
setX = ext_fscommand2("GetEtcTASValueX");
setY = ext_fscommand2("GetEtcTASValueY");
setZ = ext_fscommand2("GetEtcTASValueZ");
if (setZ&gt;0) {
DIR = 1;
} else {
DIR = -1;
}
preX = setX;
preY = setY;
preZ = setZ;
}
function ReadXYZ() {
curX = ext_fscommand2("GetEtcTASValueX");
curY = ext_fscommand2("GetEtcTASValueY");
curZ = ext_fscommand2("GetEtcTASValueZ");

curX = Calibration(curX, preX);
curY = Calibration(curY, preY);
curZ = Calibration(curZ, preZ);

preX = curX;
preY = curY;
preZ = curZ;
if (setZ&gt;=0 &amp;&amp; curZ&gt;=0 || setZ&lt;0 &amp;&amp; curZ&lt;0) {
curY = curY-setY;
} else if (curY&lt;0) { curY = -512-curY-setY;
} else { curY = 512-curY-setY; }
curX = curX-setX;
curY = curY*DIR*_root.gCurRotation;
curX = curX*DIR*_root.gCurRotation;
}
function Calibration(cur:Number, pre:Number):Number {
if (Math.abs(cur, pre)&gt;80) {
return (pre);
} else if (cur == 0) {
return (pre);
} else {
return (cur);
}
}</pre>
<h2>3. In Action!</h2>
<p>If everything went correctly, the ball hero you created earlier should be spawned in the center, but unable to move. The hero is unable to move since it is moved based on the Gsensor movement of the Cowon. If an output prompt prints, &#8220;set() working!&#8221; Then it worked. Otherwise, you may have done something wrong.</p>
<p>The code has been commented where needed in describing everything where needed. If you feel the movement is too fast or too slow, you can change the initial speed by changing the variable on the hero:</p>
<p>&#8220;create_hero(.4);&#8221; // change the .4 to any number;</p>
<p>Again if you would like the source code you can download it <a href="../download/advancedGsensorTutorial.zip">here</a>.</p>
<p>Depending on the feedback, I&#8217;ll try making this into a series &#8211; a break from me making games.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/03/how-to-make-gsensor-games-tutorial/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Flight Arena Updates</title>
		<link>http://www.2souldesign.net/2010/02/flight-arena-updates/</link>
		<comments>http://www.2souldesign.net/2010/02/flight-arena-updates/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 08:20:25 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Flight]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gsensor]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=379</guid>
		<description><![CDATA[Another sneak peek at Flight Arena&#8217;s gameplay. Check out the new video gameplay.


Changes made to the game:

Added Energy Bar

To prevent aimless shooting, the energy bar penalizes the player for &#8220;wasting&#8221; shots.
If the energy bar is depleted, the user must wait until the recharge hits 1/2 way.
The energy bar automatically recovers overtime.


Added Score

Killing Enemies will show [...]]]></description>
			<content:encoded><![CDATA[<p>Another sneak peek at Flight Arena&#8217;s gameplay. Check out the new video gameplay.</p>
<p><span id="more-379"></span></p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/02/100kill.jpg"><img class="alignnone size-full wp-image-381" title="100kill" src="http://www.2souldesign.net/wp-content/uploads/2010/02/100kill.jpg" alt="" width="476" height="277" /></a></p>
<p>Changes made to the game:</p>
<ul>
<li>Added Energy Bar
<ul>
<li>To prevent aimless shooting, the energy bar penalizes the player for &#8220;wasting&#8221; shots.</li>
<li>If the energy bar is depleted, the user must wait until the recharge hits 1/2 way.</li>
<li>The energy bar automatically recovers overtime.</li>
</ul>
</li>
<li>Added Score
<ul>
<li>Killing Enemies will show a green score popup.</li>
<li>Located Top left of screen</li>
</ul>
</li>
<li>Added Pause Feature
<ul>
<li>Bullets, Ships, and the crosshair are all frozen by pressing on the screen.</li>
</ul>
</li>
<li>Added Plasma
<ul>
<li>A high tier weapon with fast speed and excellent damage, bust costly energy</li>
</ul>
</li>
<li>Added Auto Shoot
<ul>
<li>No longer do you have to tap the screen to shoot. By pressing the [keyboard UP/DOWN] you can auto attack</li>
</ul>
</li>
<li>Improved AI
<ul>
<li>AI upgraded</li>
</ul>
</li>
<li>Added End Game Animation
<ul>
<li>Gates close when both enemies defeated.</li>
</ul>
</li>
</ul>
<p>Check out the game:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/NZR3HMe0CuQ&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/NZR3HMe0CuQ&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>22% has been donated so far for a Cowon s9!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/02/flight-arena-updates/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Flight Arena (With Video)</title>
		<link>http://www.2souldesign.net/2010/01/flight-arena-with-video/</link>
		<comments>http://www.2souldesign.net/2010/01/flight-arena-with-video/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:10:42 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Flight]]></category>
		<category><![CDATA[engine]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=365</guid>
		<description><![CDATA[This may be of a shocker, but Flight has been one of my favorite games to develop. It&#8217;s not surprise that the Flight genre has been revamped with a totally new engine.

Humble Beginnings

Flight has come a long ways since its first release for the iRiver clix and e10. This game wasn&#8217;t even fully developed as [...]]]></description>
			<content:encoded><![CDATA[<p>This may be of a shocker, but Flight has been one of my favorite games to develop. It&#8217;s not surprise that the Flight genre has been revamped with a totally new engine.</p>
<p><span id="more-365"></span></p>
<h3>Humble Beginnings</h3>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/flightclix.jpg"><img class="alignnone size-full wp-image-367" title="flightclix" src="http://www.2souldesign.net/wp-content/uploads/2010/01/flightclix.jpg" alt="" width="330" height="246" /></a></p>
<p>Flight has come a long ways since its first release for the iRiver clix and e10. This game wasn&#8217;t even fully developed as the CPU had a hard time calculating bullets and the hero was unable to do much. Nevertheless, the game inspired me to a new level of an &#8220;active&#8221; game and a passion for a smooth playable game &#8211; something a lot of flash Clix game lacked.</p>
<h3>The First of its Kind</h3>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/flight3.jpg"><img class="alignnone size-full wp-image-368" title="flight3" src="http://www.2souldesign.net/wp-content/uploads/2010/01/flight3.jpg" alt="" width="476" height="266" /></a></p>
<p>When 2souldesign.net released the v1.1b patch of Flight for the Cowon s9, it was quite a hit. The game began to fully utilize the power of the Cowon s9&#8217;s Gsensor for a fully action based game. It incorporated a lot of the nostalgic game elements from old console space games.</p>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/flight2.jpg"><img class="alignnone size-full wp-image-369" title="flight2" src="http://www.2souldesign.net/wp-content/uploads/2010/01/flight2.jpg" alt="" width="482" height="270" /></a></p>
<p>The game was unfortunately limited to a direction of moving forward into space with no element of evasion and &#8220;microing&#8221; your hero.</p>
<h3>The Birth of a New Game</h3>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/flight4.jpg"><img class="alignnone size-full wp-image-370" title="flight4" src="http://www.2souldesign.net/wp-content/uploads/2010/01/flight4.jpg" alt="" width="476" height="266" /></a></p>
<p>Because of Flight&#8217;s robust coding, I was able to take away the crucial elements of the game and create a totally different game that controlled a cross-hair in which the hero ship would always aim at &#8211; allowing full control of the ship and direction of its aim. This new engine I&#8217;ve been working on now enables a totally new way of wrecking havoc on enemy ships and maneuver to dodge harm.</p>
<p>So far I&#8217;m happy with the results, although I haven&#8217;t been able to test on the <a href="http://www.2souldesign.net/2009/11/misplaced/">Cowon s9</a>.</p>
<p>So why wait? Check this video out.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/mTKNH72HOzE&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/mTKNH72HOzE&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>You&#8217;ll notice that the game has the following:</p>
<ul>
<li>A Minimap</li>
<li>The Ship finally has a Hitpoint</li>
<li>Enemies have more HP</li>
<li>Hero has more degrees of freedom to move</li>
<li>Hero can shoot missles</li>
<li>Hero has unlimited blaster shots</li>
<li>Hero can slow down time</li>
</ul>
<p>More updates to come in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/01/flight-arena-with-video/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>The new 2souldesign.net!</title>
		<link>http://www.2souldesign.net/2010/01/the-new-2souldesign-net/</link>
		<comments>http://www.2souldesign.net/2010/01/the-new-2souldesign-net/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:29:26 +0000</pubDate>
		<dc:creator>santoki</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[redesigning]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.2souldesign.net/?p=342</guid>
		<description><![CDATA[After several days of rigorous coding and researching on how to design and customize Wordpress themes, I&#8217;m happy to say the redesign went fairly well.

The old design

The new design

You&#8217;ll notice immediately that there has been a number of changes to the site. Let&#8217;s take a look into some of the functions that have been added [...]]]></description>
			<content:encoded><![CDATA[<p>After several days of rigorous coding and researching on how to design and customize Wordpress themes, I&#8217;m happy to say the redesign went fairly well.</p>
<p><span id="more-342"></span></p>
<h3>The old design</h3>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/old.jpg"><img class="alignnone size-full wp-image-350" title="old" src="http://www.2souldesign.net/wp-content/uploads/2010/01/old.jpg" alt="" width="500" height="500" /></a></p>
<h3>The new design</h3>
<p><a href="http://www.2souldesign.net/wp-content/uploads/2010/01/ss1.jpg"><img class="alignnone size-full wp-image-343" title="ss1" src="http://www.2souldesign.net/wp-content/uploads/2010/01/ss1.jpg" alt="" width="500" height="500" /></a></p>
<p>You&#8217;ll notice immediately that there has been a number of changes to the site. Let&#8217;s take a look into some of the functions that have been added to this new design.</p>
<ul>
<li>Thumbnails
<ul>
<li>For each posts (Not yet fully changed)</li>
</ul>
</li>
<li>Recent Tweets
<ul>
<li>Now you can view my latest &#8220;tweets&#8221;</li>
</ul>
</li>
<li>Recent Comments
<ul>
<li>Just to keep you more informed</li>
</ul>
</li>
<li>Related Posts
<ul>
<li>Some posts may indirectly refer to another (Must be optimized)</li>
</ul>
</li>
<li>Popular Posts
<ul>
<li>You can now find out what&#8217;s been the most talked about</li>
</ul>
</li>
<li>Better Search Feedback
<ul>
<li>Searches for a title will now be highlited</li>
</ul>
</li>
<li>Featured Articles
<ul>
<li>Breaking posts or just announcements will now be pinned to the top.</li>
</ul>
</li>
</ul>
<h3>Find a bug?</h3>
<p>Please help me out, if you find something inconvenient, broken, or any other problem please don&#8217;t hesitate to let me know. I&#8217;ll be updating this site internally regularly, so let me know if anything goes wrong!</p>
<p>Thanks again, and I hope the best with this new design.</p>
<h3>Advertising</h3>
<p>If you would like to advertise on the sidebar, I have available 125 x 125 pixel boxes on the sidebar. You may contact me via email to discuss about pricing and policies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2souldesign.net/2010/01/the-new-2souldesign-net/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

