<?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>Veli.ws &#187; Unity</title>
	<atom:link href="http://veli.ws/tag/unity/feed/" rel="self" type="application/rss+xml" />
	<link>http://veli.ws</link>
	<description>Veli&#039;s Portfolio and Personal Blog</description>
	<lastBuildDate>Fri, 20 May 2011 09:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>7-bit Pirates</title>
		<link>http://veli.ws/2010/08/7-bit-pirates/</link>
		<comments>http://veli.ws/2010/08/7-bit-pirates/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 10:56:21 +0000</pubDate>
		<dc:creator>Veli</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[7-bit Pirates]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://veli.ws/?p=426</guid>
		<description><![CDATA[7-bit Pirates is a game that I&#8217;ve been working on for bit over 2 months now. I am the game designer and I&#8217;ve also done most of the coding for the game. Here is a (bit outdated) video of the game: Here is some pictures from the latest build:]]></description>
			<content:encoded><![CDATA[<p>7-bit Pirates is a game that I&#8217;ve been working on for bit over 2 months now. I am the game designer and I&#8217;ve also done most of the coding for the game.</p>
<p>Here is a (bit outdated) video of the game:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="475" 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/KSMCZztO51M&amp;hl=fi_FI&amp;fs=1?rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="475" src="http://www.youtube.com/v/KSMCZztO51M&amp;hl=fi_FI&amp;fs=1?rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Here is some pictures from the latest build:</p>
<p><a href="http://veli.ws/wp-content/uploads/2010/08/ShipShop.jpg"><img class="alignleft size-medium wp-image-425" title="ShipShop" src="http://veli.ws/wp-content/uploads/2010/08/ShipShop-300x231.jpg" alt="" width="270" height="208" /></a><a href="http://veli.ws/wp-content/uploads/2010/08/Island.jpg"><img class="alignleft size-medium wp-image-424" title="Island" src="http://veli.ws/wp-content/uploads/2010/08/Island-300x231.jpg" alt="" width="270" height="208" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://veli.ws/2010/08/7-bit-pirates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Forklift Hazard for iPhone is out!</title>
		<link>http://veli.ws/2009/12/forklift-hazard-iphone/</link>
		<comments>http://veli.ws/2009/12/forklift-hazard-iphone/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 11:46:27 +0000</pubDate>
		<dc:creator>Veli</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[forklift hazard]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://veli.ws/?p=366</guid>
		<description><![CDATA[New and improved version of Forklift Hazard hit the App Store today. The iPhone version has many new features and improvements New and improved forklift! Awesome tilt controls for the camera Remade scores system (instead of competing against each other with milliseconds, you know how well you compare against other players world wide). New levels]]></description>
			<content:encoded><![CDATA[<p><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=339393525&amp;mt=8"><img class="alignright" style="margin: 10px;" title="Available on the App Store" src="http://veepeli.fi/wp-content/uploads/2009/12/App_Store_Badge_EN_Cropped.png" alt="" width="242" height="83" /></a>New and improved version of Forklift Hazard hit the App Store today. The iPhone version has many new features and improvements</p>
<ul>
<li>New and improved forklift!</li>
<li>Awesome tilt controls for the camera</li>
<li>Remade scores system (instead of competing against each other with milliseconds, you know how well you compare against other players world wide).</li>
<li>New levels</li>
</ul>
<p>And of course all the goodies of the earlier version (realtime physics, great gameplay and <strong>the Mole</strong>). Here is some pictures of the new version:</p>

<a href='http://veli.ws/2009/12/forklift-hazard-iphone/promo1/' title='promo1'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/promo1-150x150.jpg" class="attachment-thumbnail" alt="promo1" title="promo1" /></a>
<a href='http://veli.ws/2009/12/forklift-hazard-iphone/untitled-5/' title='Untitled-5'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/Untitled-5-150x150.jpg" class="attachment-thumbnail" alt="Untitled-5" title="Untitled-5" /></a>
<a href='http://veli.ws/2009/12/forklift-hazard-iphone/untitled-4/' title='Untitled-4'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/Untitled-4-150x150.jpg" class="attachment-thumbnail" alt="Untitled-4" title="Untitled-4" /></a>
<a href='http://veli.ws/2009/12/forklift-hazard-iphone/untitled-3/' title='Untitled-3'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/Untitled-3-150x150.jpg" class="attachment-thumbnail" alt="Untitled-3" title="Untitled-3" /></a>
<a href='http://veli.ws/2009/12/forklift-hazard-iphone/untitled-2/' title='Untitled-2'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/Untitled-2-150x150.jpg" class="attachment-thumbnail" alt="Untitled-2" title="Untitled-2" /></a>
<a href='http://veli.ws/2009/12/forklift-hazard-iphone/untitled-1/' title='Untitled-1'><img width="150" height="150" src="http://veli.ws/wp-content/uploads/2009/12/Untitled-1-150x150.jpg" class="attachment-thumbnail" alt="Untitled-1" title="Untitled-1" /></a>

<p style="text-align: center; font-size= 32px;"><a style="text-align: center; font-size= 32px;" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=339393525&amp;mt=8"></a><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=339393525&amp;mt=8"><img class="aligncenter" title="Available" src="http://veli.ws/wp-content/uploads/2009/12/App_Store_Badge_EN.png" alt="" width="400" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://veli.ws/2009/12/forklift-hazard-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Profiles to Unity3D?</title>
		<link>http://veli.ws/2009/05/wordpress-profiles-to-unity3d/</link>
		<comments>http://veli.ws/2009/05/wordpress-profiles-to-unity3d/#comments</comments>
		<pubDate>Mon, 25 May 2009 19:12:47 +0000</pubDate>
		<dc:creator>Veli</dc:creator>
				<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://veli.ws/?p=320</guid>
		<description><![CDATA[You read correctly. If you want to have a good community around your game (blogs, forums, etc), you need to find the best tools for that. And for blogging, the best tool is by far WordPress. One of WordPress&#8217; main strengths is the plugin system, which allows you to write your own &#8220;hacks&#8221; or use]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://s3.amazonaws.com/twitter_production/profile_images/108827212/wordpress_bigger.jpg" alt="" width="180" height="180" />You read correctly. If you want to have a good community around your game (blogs, forums, etc), you need to find the best tools for that. And for blogging, the best tool is by far <a href="http://wordpress.org/">WordPress</a>. One of WordPress&#8217; main strengths is the plugin system, which allows you to write your own &#8220;hacks&#8221; or use plugins made by others without having to edit the core files directly. This ensures a safe and upgradeable framework around which one can build their community.</p>
<p>But enough of that rambling. Here is how I managed to fetch wordpress user profiles into unity.</p>
<p><strong>Unity JS</strong></p>
<pre name="code" class="js">function Awake() {
	GetCookie (display_name);
	//This is what you are fetching.
	//See http://codex.wordpress.org/Database_Description#Table:_wp_users
}

function GetCookie (query:String){
	//Path to your PHP file
	var url = "http://domain.com/cookiecheck.php?q=";
	var getCookie = WWW(url+query);
		yield getCookie; // Wait until the download is done

    if(getCookie.error) {
        Debug.Log("There was an error getting cookies: "
				+ getCookie.error);
    } else {
		result = getCookie.data;
    }
}

function OnGui () {
	if (result != null) {
		GUI.Label (Rect (10,50,280,20), result);
	}
	else
		GUI.Label (Rect (10,50,280,20), "Waiting for yummy cookies!");
}</pre>
<p><strong>Server side  PHP</strong> cookiecheck.php</p>
<pre name="code" class="php">$query=$_GET["q"];

require_once('/path/to/your/wp-config.php');

global $current_user;
      get_currentuserinfo();

if ('' == $user_ID) {
        print("invalid User");
      }
else {
	print($current_user-&gt;$query);
}</pre>
<p>It is nothing major, but I spent a good amount of trial and error to get it right. Hopefully this article will save someone else from that trouble. Oh, and big thanks once again to the guys (and gals) at <a href="irc://#unity3d@irc.freenode.irc.freenode.net" target="_blank">#unity3d@irc.freenode.irc.freenode.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://veli.ws/2009/05/wordpress-profiles-to-unity3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forklift Hazard is live! At last!</title>
		<link>http://veli.ws/2009/04/forklift-hazard-is-live-at-last/</link>
		<comments>http://veli.ws/2009/04/forklift-hazard-is-live-at-last/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 19:26:44 +0000</pubDate>
		<dc:creator>Veli</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://veli.ws/?p=169</guid>
		<description><![CDATA[I got bored of waiting the portals to contact me so I decided to go ahead and post my game on some more friendlier portals. Here is some screenshots: You can play it at Wooglie! Oh and rate it there as well! Grrr&#8230;]]></description>
			<content:encoded><![CDATA[<p>I got bored of waiting the portals to contact me so I decided to go ahead and post my game on some more friendlier portals.</p>
<p style="text-align: center;">Here is some screenshots:</p>
<p style="text-align: center;"><a href="http://veli.ws/wp-content/uploads/2009/04/1.jpg"><img class="size-thumbnail wp-image-182 alignnone" title="1" src="http://veli.ws/wp-content/uploads/2009/04/1-150x150.jpg" alt="1" width="150" height="150" /></a><a href="http://veli.ws/wp-content/uploads/2009/04/3.jpg"><img class="size-thumbnail wp-image-172 alignnone" title="3" src="http://veli.ws/wp-content/uploads/2009/04/3-150x150.jpg" alt="3" width="150" height="150" /></a><a href="http://veli.ws/wp-content/uploads/2009/04/2.jpg"><img class="size-thumbnail wp-image-171 alignnone" title="2" src="http://veli.ws/wp-content/uploads/2009/04/2-150x150.jpg" alt="2" width="150" height="150" /></a><strong><strong><a href="http://veli.ws/wp-content/uploads/2009/04/4.jpg"><img class="size-thumbnail wp-image-173 alignnone" title="4" src="http://veli.ws/wp-content/uploads/2009/04/4-150x150.jpg" alt="4" width="150" height="150" /></a></strong></strong></p>
<p style="text-align: center; size:20px;"><a style="text-align: center; size:40px;" href="http://www.wooglie.com/playgame.php?gameID=16" target="_self">You can play it at Wooglie!</a></p>
<p style="text-align: center; size:20px;">Oh and rate it there as well! Grrr&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://veli.ws/2009/04/forklift-hazard-is-live-at-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

