<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PL Young</title>
	<atom:link href="http://plyoung.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://plyoung.wordpress.com</link>
	<description>Personal blog of Leslie Young</description>
	<lastBuildDate>Sat, 14 Jan 2012 14:10:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='plyoung.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f028268d7e788e9379d2bc12ee20a304?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>PL Young</title>
		<link>http://plyoung.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://plyoung.wordpress.com/osd.xml" title="PL Young" />
	<atom:link rel='hub' href='http://plyoung.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Battlemass Free to Play</title>
		<link>http://plyoung.wordpress.com/2012/01/14/battlemass-free-to-play/</link>
		<comments>http://plyoung.wordpress.com/2012/01/14/battlemass-free-to-play/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 14:10:44 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Battlemass]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=965</guid>
		<description><![CDATA[Just a quick update to let you all know that Battlemass is now free to play. You can grab it from my main site, enjoy<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=965&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://plyoung.files.wordpress.com/2012/01/bmf2p.jpg?w=584" alt="" title="bmf2p"   class="aligncenter size-full wp-image-966" /></p>
<p>Just a quick update to let you all know that Battlemass is now free to play. You can grab it from <a href="http://plyoung.com/">my main site</a>, enjoy <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/965/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/965/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/965/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=965&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2012/01/14/battlemass-free-to-play/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2012/01/bmf2p.jpg" medium="image">
			<media:title type="html">bmf2p</media:title>
		</media:content>
	</item>
		<item>
		<title>Connect PHP</title>
		<link>http://plyoung.wordpress.com/2011/12/16/connect-php/</link>
		<comments>http://plyoung.wordpress.com/2011/12/16/connect-php/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 06:05:58 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asset store]]></category>
		<category><![CDATA[sagd]]></category>
		<category><![CDATA[Unity 3D]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=921</guid>
		<description><![CDATA[I&#8217;ve released a new package to the Unity Asset Store. The &#8220;Connect PHP&#8221; package shows you how to connect a game to a PHP based server. The server scripts for this package were written in PHP and use Yii, a &#8230; <a href="http://plyoung.wordpress.com/2011/12/16/connect-php/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=921&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://plyoung.files.wordpress.com/2011/12/connectphp.jpg?w=584" alt="" title="connectphp"   class="alignleft size-full wp-image-922" /><br />
I&#8217;ve released a new package to the Unity Asset Store.<br />
The <a href="http://u3d.as/content/pl-young/connect-php/2w2" target="_blank">&#8220;Connect PHP&#8221; package</a> shows you how to connect a game to a PHP based server. The server scripts for this package were written in PHP and use Yii, a high-performance PHP framework. The client side scripts are all done in C#. You need to know how to use the Yii framework in order to make proper use of this package.</p>
<p>Features:<br />
* Account system, register, login<br />
* Saving and loading settings to/from server<br />
* Public &amp; private Chat channels<br />
* Friends list. add and remove<br />
* Show news and adverts in game</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/921/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=921&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/12/16/connect-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/12/connectphp.jpg" medium="image">
			<media:title type="html">connectphp</media:title>
		</media:content>
	</item>
		<item>
		<title>Tile Based Map and Nav</title>
		<link>http://plyoung.wordpress.com/2011/12/07/tile-based-map-and-nav/</link>
		<comments>http://plyoung.wordpress.com/2011/12/07/tile-based-map-and-nav/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 11:04:25 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[asset store]]></category>
		<category><![CDATA[sagd]]></category>
		<category><![CDATA[Unity 3D]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=904</guid>
		<description><![CDATA[I&#8217;ve reelased my 3rd Unity3d Asset Store package, Tile Based Map and Nav. This package will get you started with games that needs a tile based system, either where you would see the tiles or only a tile-based navmesh is &#8230; <a href="http://plyoung.wordpress.com/2011/12/07/tile-based-map-and-nav/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=904&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://plyoung.files.wordpress.com/2011/12/00.png?w=584&#038;h=438" alt="" title="00" width="584" height="438" class="alignleft size-full wp-image-905" /></p>
<p>I&#8217;ve reelased my 3rd Unity3d Asset Store package, <a href="http://u3d.as/content/pl-young/tile-based-map-and-nav/2uF" target="_blank">Tile Based Map and Nav</a>.</p>
<p>This package will get you started with games that needs a tile based system, either where you would see the tiles or only a tile-based navmesh is needed.</p>
<p>The code from this package is featured in the game, <a href="http://www.battlemass.com/" target="_blank">Battlemass</a>, and you can view a <a href="http://www.youtube.com/watch?v=D05ExSv-UyU" target="_blank">video of it here</a>.</p>
<p>Features:<br />
* Hex tiles<br />
* Base class for Units<br />
* Unit selection<br />
* Target tile selection<br />
* Selection indicators<br />
* Highlighting tiles<br />
* Unit movement over tile based map<br />
* Land and air/flying units support<br />
* Support for Walls (block both land and air unit movement)<br />
* Sample editor script that helps with map creation<br />
* Camera move and rotate/tilt controllers</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/904/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=904&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/12/07/tile-based-map-and-nav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/12/00.png" medium="image">
			<media:title type="html">00</media:title>
		</media:content>
	</item>
		<item>
		<title>Unity3d content packs</title>
		<link>http://plyoung.wordpress.com/2011/12/05/unity3d-content-packs/</link>
		<comments>http://plyoung.wordpress.com/2011/12/05/unity3d-content-packs/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 11:50:49 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[content packs]]></category>
		<category><![CDATA[google app engine]]></category>
		<category><![CDATA[sagd]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[unity3d]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=897</guid>
		<description><![CDATA[I&#8217;ve released two content packs on the Unity3d Asset Store. Connect Google App Engine Connect your game to Google App Engine (GAE) based server (Python). GAE enables you to build and host web apps on the same systems that power &#8230; <a href="http://plyoung.wordpress.com/2011/12/05/unity3d-content-packs/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=897&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released two content packs on the Unity3d Asset Store.</p>
<p><img src="http://plyoung.files.wordpress.com/2011/12/gaepack.png?w=584" alt="" title="gaepack"   class="alignnone size-full wp-image-898" /><br />
<a href="http://u3d.as/content/pl-young/connect-to-google-app-engine-/2sX" target="_blank"><strong>Connect Google App Engine</strong></a></p>
<p>Connect your game to Google App Engine (GAE) based server (Python). GAE enables you to build and host web apps on the same systems that power Google apps. Depending on the load you could host the server side for free or very low cost</p>
<p>Features:<br />
* Account system, register, login, saving settings on server<br />
* Public &amp; private Chat channels<br />
* Friends list. add and remove<br />
* Show news and adverts in game. Manage via browser<br />
* Payment system. PayPal IPN. Game Keys to unlock</p>
<p><img src="http://plyoung.files.wordpress.com/2011/12/littlewar.png?w=584" alt="" title="littlewar"   class="alignnone size-full wp-image-899" /><br />
<a href="http://u3d.as/content/pl-young/little-war-machines/2tK" target="_blank"><strong>Little War Machines</strong></a></p>
<p>This art package includes 9 optimised models.<br />
* 2 buildings<br />
* 2 flying vehicles (carrier and copter)<br />
* 4 land combat units<br />
* and an engineer unit</p>
<p>The models incl. idle, movement and attack animations where needed; and it is as simple as creating a new material with a specific tint to create units of different colours.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/897/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/897/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/897/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=897&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/12/05/unity3d-content-packs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/12/gaepack.png" medium="image">
			<media:title type="html">gaepack</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/12/littlewar.png" medium="image">
			<media:title type="html">littlewar</media:title>
		</media:content>
	</item>
		<item>
		<title>Development of Battlemass</title>
		<link>http://plyoung.wordpress.com/2011/12/01/development-of-battlemass/</link>
		<comments>http://plyoung.wordpress.com/2011/12/01/development-of-battlemass/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 14:03:13 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Battlemass]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=887</guid>
		<description><![CDATA[I thought it would be interesting looking back at the past 5 months of Battlemass’ development and write a little something about the development side. The client side of Battlemass was developed with the Unity3d game engine. The server side &#8230; <a href="http://plyoung.wordpress.com/2011/12/01/development-of-battlemass/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=887&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://plyoung.files.wordpress.com/2011/12/05_jul_05.jpg?w=584&#038;h=438" alt="" title="05_jul_05" width="584" height="438" class="alignnone size-full wp-image-888" /></p>
<p>I thought it would be interesting looking back at the past 5 months of Battlemass’ development and write a little something about the development side.</p>
<p>The client side of Battlemass was developed with the Unity3d game engine. The server side is running on Google’s infrastructure via the Google App Engine (GAE) and written in Python. I’ve released a <a href="http://plyoung.com/forums/categories/unity" target="_blank">package</a> on the Unity Asset Store which will show you how to communicate with a GAE based server in your own Unity3d game.</p>
<p>Development started near the end of June 2011 and I quickly had a PHP based server up and a lobby system ready.</p>
<p>Around the middle of July 2011 I started looking into cloud hosting solutions and discovered the Google App Engine. I figured that if the game does well I would not have to struggle with scaling and it would be an opportunity to create code that could be used in future project. Only problem was that I had to choose between Java, Python and Go. Since I only had a little experience with Java and nothing when it comes to Java based webapps, and because I thought it might be easier porting from PHP to Python than Java, I decided to learn Python and scrap what I had in PHP and rewrite the server for GAE.<br />
<a href="http://www.battlemass.com/2011/12/5-months-in-development/" target="_blank">Visit the Battlemass site</a> to read more and view lotsa screenshots &#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/887/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/887/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/887/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=887&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/12/01/development-of-battlemass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/12/05_jul_05.jpg" medium="image">
			<media:title type="html">05_jul_05</media:title>
		</media:content>
	</item>
		<item>
		<title>New home site</title>
		<link>http://plyoung.wordpress.com/2011/11/24/new-home-site/</link>
		<comments>http://plyoung.wordpress.com/2011/11/24/new-home-site/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 23:12:56 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=882</guid>
		<description><![CDATA[I&#8217;ve created a new home site from where I link to my blog, forum, etc. The forum will be sued to support the apps and games I&#8217;ve created. Check it out at http://plyoung.com<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=882&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a new home site from where I link to my blog, forum, etc.<br />
The forum will be sued to support the apps and games I&#8217;ve created.</p>
<p>Check it out at <a href="http://plyoung.com">http://plyoung.com</a></p>
<p><img src="http://plyoung.files.wordpress.com/2011/11/plyoungsite.jpg?w=584" alt="" title="plyoungsite"   class="aligncenter size-full wp-image-883" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/882/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=882&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/11/24/new-home-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://plyoung.files.wordpress.com/2011/11/plyoungsite.jpg?w=150" />
		<media:content url="http://plyoung.files.wordpress.com/2011/11/plyoungsite.jpg?w=150" medium="image">
			<media:title type="html">plyoungsite</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/11/plyoungsite.jpg" medium="image">
			<media:title type="html">plyoungsite</media:title>
		</media:content>
	</item>
		<item>
		<title>Battlemass available</title>
		<link>http://plyoung.wordpress.com/2011/11/10/battlemass-available/</link>
		<comments>http://plyoung.wordpress.com/2011/11/10/battlemass-available/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:06:56 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Battlemass]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=873</guid>
		<description><![CDATA[Battlemass is now available for purchase. You can also grab a demo which will limit you to creating a match with the free maps only and you have acccess to the free units only; however, you may join matches that &#8230; <a href="http://plyoung.wordpress.com/2011/11/10/battlemass-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=873&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://plyoung.files.wordpress.com/2011/11/bmlogo650.jpg?w=584&#038;h=192" alt="" title="bmlogo650" width="584" height="192" class="aligncenter size-full wp-image-874" /><br />
<a href="http://www.battlemass.com/">Battlemass</a> is now available for purchase. You can also grab a demo which will limit you to creating a match with the free maps only and you have acccess to the free units only; however, you may join matches that uses non-free maps.</p>
<p>Here&#8217;s a gameplay vid of the game.</p>
<p><iframe width="584" height="329" src="http://www.youtube.com/embed/RtnvXoX-jJs?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/873/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=873&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/11/10/battlemass-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/11/bmlogo650.jpg" medium="image">
			<media:title type="html">bmlogo650</media:title>
		</media:content>
	</item>
		<item>
		<title>Battlemass public test phase</title>
		<link>http://plyoung.wordpress.com/2011/10/12/battlemass-public-test-phase/</link>
		<comments>http://plyoung.wordpress.com/2011/10/12/battlemass-public-test-phase/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 20:07:08 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Battlemass]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=854</guid>
		<description><![CDATA[I&#8217;ve decided to start the early public test phase of my game, Battlemass. Not all the art is done yet, most notably the units/vehicles are not the final ones and there will be a lot of décor and various obstacles &#8230; <a href="http://plyoung.wordpress.com/2011/10/12/battlemass-public-test-phase/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=854&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to start the early public test phase of my game, Battlemass. Not all the art is done yet, most notably the units/vehicles are not the final ones and there will be a lot of décor and various obstacles on the maps.<br />
<img class="alignleft size-medium wp-image-855" title="harvester" src="http://plyoung.files.wordpress.com/2011/10/harvester.jpg?w=300&#038;h=300" alt="" width="300" height="300" /><br />
With this test I would like to see how the server handles the various player loads.</p>
<p>You will see the latest version for download on the right-hand sidebar of the <a href="http://www.battlemass.com/">official site</a>. Please have a look at the online tutorial page to learn how the game works since there is no in-game tutorial yet.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/854/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=854&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/10/12/battlemass-public-test-phase/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/10/harvester.jpg?w=300" medium="image">
			<media:title type="html">harvester</media:title>
		</media:content>
	</item>
		<item>
		<title>Battlemass progress</title>
		<link>http://plyoung.wordpress.com/2011/09/20/battlemass-progress/</link>
		<comments>http://plyoung.wordpress.com/2011/09/20/battlemass-progress/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 22:10:48 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Battlemass]]></category>
		<category><![CDATA[sagd]]></category>

		<guid isPermaLink="false">http://plyoung.wordpress.com/?p=816</guid>
		<description><![CDATA[Been a while since I posted anything new, but that is because I have been very hard at work on Battlemass. We hope to start a public free-to-play beta of the game in October. I am also working on a &#8230; <a href="http://plyoung.wordpress.com/2011/09/20/battlemass-progress/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=816&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Been a while since I posted anything new, but that is because I have been very hard at work on Battlemass. We hope to start a public free-to-play beta of the game in October. I am also working on a website for the game which will be available under <a href="http://www.battlemass.com/" target="_blank">http://www.battlemass.com/</a>.</p>
<p>Here&#8217;s are some screenshots from the game.<br />
This is a far view of a map to give you an idea of the style we are going with for this game. The map looks quite empty because the artist is still working on décor objects, obstacles and other random stuff that will make the map more interesting. I will post more screenshots once the units are done and in-game.</p>
<p><img class="alignnone size-full wp-image-818" title="battlemass_board" src="http://plyoung.files.wordpress.com/2011/09/battlemass_board.jpg?w=584&#038;h=438" alt="" width="584" height="438" /></p>
<p>This is a shot of the lobby, showing the improvements we made to the GUI art.</p>
<p><img class="alignnone size-full wp-image-819" title="battlemass_lobby" src="http://plyoung.files.wordpress.com/2011/09/battlemass_lobby.jpg?w=584&#038;h=438" alt="" width="584" height="438" /></p>
<p><img class="alignnone size-full wp-image-817" title="units" src="http://plyoung.files.wordpress.com/2011/09/units.jpg?w=584&#038;h=351" alt="" width="584" height="351" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/816/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=816&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/09/20/battlemass-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/09/battlemass_board.jpg" medium="image">
			<media:title type="html">battlemass_board</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/09/battlemass_lobby.jpg" medium="image">
			<media:title type="html">battlemass_lobby</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/09/units.jpg" medium="image">
			<media:title type="html">units</media:title>
		</media:content>
	</item>
		<item>
		<title>Unity 3D and session cookies</title>
		<link>http://plyoung.wordpress.com/2011/08/05/unity-3d-and-session-cookies/</link>
		<comments>http://plyoung.wordpress.com/2011/08/05/unity-3d-and-session-cookies/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 21:15:33 +0000</pubDate>
		<dc:creator>Leslie Young (xyber)</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[HTTP cookie]]></category>
		<category><![CDATA[sagd]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[Unity 3D]]></category>
		<category><![CDATA[WWW Class]]></category>

		<guid isPermaLink="false">http://www.plyoung.com/?p=293</guid>
		<description><![CDATA[For the game I am working on I needed a way to authenticate with a web server. The normal way (when creating a website) would be for someone to log-in and the server side generating some session/ authentication cookie that &#8230; <a href="http://plyoung.wordpress.com/2011/08/05/unity-3d-and-session-cookies/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=293&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-772" style="border:0 none;" title="unity_cookies" src="http://plyoung.files.wordpress.com/2011/08/unity_cookies4.png?w=584" alt=""   /><br />
For the game I am working on I needed a way to authenticate with a web server. The normal way (when creating a website) would be for someone to log-in and the server side generating some session/ authentication cookie that needs to be send around. This cookie obliviously lives in the header of the response so I wrote the following code to handle sessions when working with the Unity 3D WWW class.</p>
<p>First you will need to save the cookie somewhere, and since the WWW class will expect a hashtable I will save it in it from the start. So you might have something like this. I created this in a singleton class called Game (you will notice I reference it in later code).</p>
<p><pre class="brush: csharp;">
// will be set to some session id after login
private Hashtable session_ident = new Hashtable();

// and some helper functions and properties
public void ClearSessionCookie(){
	session_ident[&quot;Cookie&quot;] = null;
}

public void SetSessionCookie(string s){
	session_ident[&quot;Cookie&quot;] = s;
}

public Hashtable SessionCookie{
	get { return session_ident; }
}

public string GetSessionCookie(){
	return session_ident[&quot;Cookie&quot;] as string;
}

public bool SessionCookieIsSet{
	get { return session_ident[&quot;Cookie&quot;] != null; }
}
</pre></p>
<p>Now we will look at the function that will log the player in. This was done in a class called Net (which is my wrapper to handle all my WWW calls). This function will make a call to my web server which should respond with a string &#8220;1Player_Name&#8221; , no HTML, just plain text) &#8211; just adapt the code to handle whatever your server response is. Server side I am working with a cookie called &#8220;auth&#8221;, this name can be anything else and depends on what you want to call it or the technology you are working with. I&#8217;ve included a commented block of code that you can use to see what the cookie name is if you are not setting the cookies manually and/or using some 3rd party lib to handle it. The &#8216;callback&#8217; is just a way I tell the rest of the game when the function is done talking to the server.</p>
<p><pre class="brush: csharp;">
// Failed=Bad server error, Error=server did reply with an error, OK=all fine
public enum ReturnCode : int { Failed=-1, Error=0, OK=1 }
public delegate void OnNetResult(ReturnCode code, string result);
public IEnumerator Login(OnNetResult callback, string nm, string pw)
{
	// create params to send
	WWWForm form = new WWWForm();
	form.AddField(&quot;nm&quot;, nm);
	form.AddField(&quot;pw&quot;, pw);

	// let www do its thing
	WWW www = new WWW(&quot;http://path_to/login/&quot;, form);
	yield return www;

	// the following code can be used to see what the SET-COOKIE contains
	// Have a look at http://en.wikipedia.org/wiki/HTTP_cookie to see what Set-Cookie is all about
	// It is bascially how the server will tell you what it expects you to be doing with the cookie
	// The name you are looking for will be the first characters followed be &quot;=&quot;, after that follows
	// the value of the cookie. There could also be other entries on the same line like 'Expires'
	// but they will all be seperated by ';'
	//if (www.responseHeaders.ContainsKey(&quot;SET-COOKIE&quot;)){
	//	Debug.Log(www.responseHeaders[&quot;SET-COOKIE&quot;]);
	//}

	// handle the data from www, but first check if there where errors
	if (!string.IsNullOrEmpty(www.error) || string.IsNullOrEmpty(www.text))
	{
		errmsg = &quot;Network communication error.&quot;;
		if (callback != null) callback(ReturnCode.Failed, errmsg);
	}
	else
	{
		errmsg = &quot;Network communication error.&quot;;

		// like I mentioned in description, this code
		// expects &quot;1player_name&quot; on success, else &quot;0&quot;
		if (www.text[0] == '1')
		{
			try
			{
				// extract the public name of player
				Game.Instance.name = www.text.Substring(1);
				Game.Instance.ClearSessionCookie();

				// check if session cookie was send, if not, well, no use to continue then
				if (www.responseHeaders.ContainsKey(&quot;SET-COOKIE&quot;))
				{
					// extract the session identifier cookie and save it
					// the cookie will be named, &quot;auth&quot; (this could be something else in your case)
					char[] splitter = { ';' };
					string[] v = www.responseHeaders[&quot;SET-COOKIE&quot;].Split(splitter);
					foreach (string s in v)
					{
						if (string.IsNullOrEmpty(s)) continue;
						if (s.Substring(0, 4).ToLower().Equals(&quot;auth&quot;))
						{	// found it
							Game.Instance.SetSessionCookie(s);
							break;
						}
					}
				}
			}
			catch {
				// this should only possibly happen during development
				if (callback != null) callback(ReturnCode.Failed, &quot;Network communication error.&quot;);
			}
		}

		// let whomever is interrested know that the login succeeded or failed
		if (callback != null)
		{
			if (www.text[0] == '1' &amp;&amp; Game.Instance.SessionCookieIsSet)
			{
				callback(ReturnCode.OK, &quot;Login ok&quot;);
			}
			else if (www.text[0] == '0' || !Game.Instance.SessionCookieIsSet)
			{
				errmsg = &quot;Invalid login name or password.&quot;;
				// my server sometimes sends &quot;0some_explenation&quot;, therefore this next line
				if (www.text.Length &gt; 1) errmsg = www.text.Substring(1);
				callback(ReturnCode.Error, errmsg);
			}
			else
			{
				// this should only happen during development since there was an unexpected
				// value at [0], not 0 or 1 as expected, so probably some script error
				errmsg = &quot;Network communication error.&quot;;
				callback(ReturnCode.Failed, errmsg);
			}
		}
	}
}
</pre></p>
<p>Now we have the session cookie and can send it back when making calls via the WW class. One thing to note though is that you will only be able to make POST requests, but hey, that is probably fine if you doing anything that needs authentication and sessions. You might have a function that looks something like this.</p>
<p><pre class="brush: csharp;">
public IEnumerator NormalRequest(string url, OnNetResult callback, Dictionary p)
{
	// p: is a set of keys and values where the key is the name and value the value for the post field
	// create form to send with request
	WWWForm form = new WWWForm();
	if (p != null) {
		foreach (KeyValuePair kv in p) form.AddField(kv.Key, kv.Value);
	}

	// let www do its thing, note that you send the SessionCookie along
	WWW www = new WWW(url, form.data, Game.Instance.SessionCookie);
	yield return www;
	// ...
</pre></p>
<p>.. and thats it. Not too hard.</p>
<hr />
<p>Just a small update.<br />
The above code obviously caches the cookie value after login and uses that same value over and over when communicating with the server, until the next time you would run the login logic. The problem is that on some systems that value could change! If that is the case you will have to check the www.responseHeaders["SET-COOKIE"] each time the server responded and cache the new value so that it can be used in the next request, else you will at some point be sending an invalid value to the server side and it will not recognise you and your authenticationcode will throw an error.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plyoung.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plyoung.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plyoung.wordpress.com/293/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plyoung.wordpress.com&amp;blog=23726316&amp;post=293&amp;subd=plyoung&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plyoung.wordpress.com/2011/08/05/unity-3d-and-session-cookies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://plyoung.files.wordpress.com/2011/08/unity_cookies4.png?w=150" />
		<media:content url="http://plyoung.files.wordpress.com/2011/08/unity_cookies4.png?w=150" medium="image">
			<media:title type="html">unity_cookies</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/cb4b6da0bc83f8b773bb89e476206996?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">akismet-cb4b6da0bc83f8b773bb89e476206996</media:title>
		</media:content>

		<media:content url="http://plyoung.files.wordpress.com/2011/08/unity_cookies4.png" medium="image">
			<media:title type="html">unity_cookies</media:title>
		</media:content>
	</item>
	</channel>
</rss>
