<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Red Clover Blog</title>
	
	<link>http://redclovergames.com/blog</link>
	<description />
	<lastBuildDate>Sun, 29 Jan 2012 20:34:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/RedCloverBlog" /><feedburner:info uri="redcloverblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>HexTactics: Prototype Build 1</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/wXGuCCoYK1U/</link>
		<comments>http://redclovergames.com/blog/?p=563#comments</comments>
		<pubDate>Sun, 29 Jan 2012 20:34:24 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[HexTactics]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=563</guid>
		<description><![CDATA[Another 4 hours into HexTactics and I have a playable prototype build ready! Click here or on the image below to try it out! http://redclovergames.com/blog/?page_id=565 &#160; For the technically inclined, here&#8217;s a quick list of features implemented so far: Basic path finding (using A* of course, thank you Aron Granberg!) Controllable Wizard Unit w/Fireball spell Collapsible bridges [...]]]></description>
			<content:encoded><![CDATA[<p>Another 4 hours into HexTactics and I have a playable prototype build ready!</p>
<p>Click here or on the image below to try it out! <a href="http://redclovergames.com/blog/?page_id=565">http://redclovergames.com/blog/?page_id=565</a></p>
<p><a href="http://redclovergames.com/blog/?page_id=565"><img class="alignnone size-full wp-image-567" title="Tactics2" src="http://redclovergames.com/blog/wp-content/uploads/2012/01/Tactics2.png" alt="" width="413" height="349" /></a></p>
<p>&nbsp;</p>
<p>For the technically inclined, here&#8217;s a quick list of features implemented so far:</p>
<ul>
<li>Basic path finding (using A* of course, thank you <a href="http://www.arongranberg.com/unity/a-pathfinding/">Aron Granberg</a>!)</li>
<li>Controllable Wizard Unit w/Fireball spell</li>
<li>Collapsible bridges</li>
<li>Walls and Castle structures</li>
</ul>
<p>I think I&#8217;m going to like this project&#8230;</p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/wXGuCCoYK1U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=563</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=563</feedburner:origLink></item>
		<item>
		<title>HexTactics</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/o9thgOTwImE/</link>
		<comments>http://redclovergames.com/blog/?p=560#comments</comments>
		<pubDate>Sat, 28 Jan 2012 18:20:13 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[HexTactics]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=560</guid>
		<description><![CDATA[Alex and I decided to have a quick competition this weekend.  A mini game Jam between friends if you will, primarily involving physics based destruction in some way.  I didn&#8217;t think it was going to happen, but he decided to take the challenge, so I at least had to work on something. So here&#8217;s what [...]]]></description>
			<content:encoded><![CDATA[<p>Alex and I decided to have a quick competition this weekend.  A mini game Jam between friends if you will, primarily involving <strong>physics based destruction</strong> in some way.  I didn&#8217;t think it was going to happen, but he decided to take the challenge, so I at least had to work on something. <img src='http://redclovergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here&#8217;s what I came up with in the last 2 hours or so.  I may not have much time to work on it this weekend, but it&#8217;s fun anyway.  The concept is a Physics based Tactical RPG [turn based], played out on a hexagonal grid, with different types of units and interactive/dynamic terrain and obstacles.</p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2012/01/Tactics1.png"><img class="alignnone size-full wp-image-561" title="Tactics1" src="http://redclovergames.com/blog/wp-content/uploads/2012/01/Tactics1.png" alt="" width="732" height="583" /></a></p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/o9thgOTwImE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=560</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=560</feedburner:origLink></item>
		<item>
		<title>The Wizard Apprentice Saga Begins!</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/YG5ko8hdarI/</link>
		<comments>http://redclovergames.com/blog/?p=550#comments</comments>
		<pubDate>Thu, 22 Dec 2011 05:22:54 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[LD48]]></category>
		<category><![CDATA[LudumDare]]></category>
		<category><![CDATA[The Wizard Apprentice]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=550</guid>
		<description><![CDATA[Ludum Dare was really an eye opening experience for me.  I had a ton of fun and I&#8217;m getting an amazing amount of feedback from the indie gamedev community, which is fantastic!  I think as a result of the experience, I&#8217;m going to continue developing &#8220;The Wizard Apprentice&#8221; prototype into a more feature-full game.  I [...]]]></description>
			<content:encoded><![CDATA[<p>Ludum Dare was really an eye opening experience for me.  I had a ton of fun and I&#8217;m getting an amazing amount of feedback from the indie gamedev community, which is fantastic!  I think as a result of the experience, I&#8217;m going to continue developing &#8220;The Wizard Apprentice&#8221; prototype into a more feature-full game.  I love doing the level and puzzle design, and dropping the assets in and playing with them is really a blast!  I&#8217;m not going to abandon <strong>HexDev</strong>, but it&#8217;s currently sitting on my back burner.</p>
<p>I decided to run with the concept, and fix a lot of things, keeping some of the puzzles the same, rewriting some, and adding a lot more content.  I&#8217;m probably going to rename the game, because the name is too generic and I literally decided on the name in the last 10 minutes of the competition while I was submitting my entry. <img src='http://redclovergames.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I&#8217;ve done a couple of things so far, worth mentioning, so here&#8217;s a glimpse:</p>
<ul>
<li>I&#8217;m revamping the way my modelling in Blender was done, so I have cleaner transitions and better control over connections like the stairwell.</li>
<li>Opened up the room depth, taking full advantage of the &#8220;octagonal space&#8221; on each floor.</li>
<li>Stairwells no longer require a turn halfway through (I&#8217;m not sure if this will make it harder or easier, but so far I like the new style better)</li>
<li>Adding Toon-Style shading where appropriate</li>
<li>Fixed some camera angle issues to give better depth perspective.  (may tweak this some more)</li>
</ul>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/VisualImprovements.png"><img class="alignnone size-full wp-image-549" title="VisualImprovements" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/VisualImprovements.png" alt="" width="796" height="501" /></a></p>
<p>Lots more to come!  Stay tuned!</p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/YG5ko8hdarI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=550</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=550</feedburner:origLink></item>
		<item>
		<title>Ludum Dare 22: The Wizard Apprentice</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/b7A1jfEb2oU/</link>
		<comments>http://redclovergames.com/blog/?p=543#comments</comments>
		<pubDate>Mon, 19 Dec 2011 02:40:54 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[LD48]]></category>
		<category><![CDATA[LudumDare]]></category>
		<category><![CDATA[The Wizard Apprentice]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=543</guid>
		<description><![CDATA[So this weekend, starting Saturday evening, I decided I was going to enter Ludum Dare 22 and try to hammer out a game in less than 48 hours!  Being a husband and father, I found it very difficult to actually get a lot of time spent on this, so I would say in total I [...]]]></description>
			<content:encoded><![CDATA[<p>So this weekend, starting Saturday evening, I decided I was going to enter Ludum Dare 22 and try to hammer out a game in less than 48 hours!  Being a husband and father, I found it very difficult to actually get a lot of time spent on this, so I would say in total I had about 16 hours of committed time on this project, so all things considered, I think it was a pretty good run for it&#8217;s worth.  And it was fun!</p>
<p>Play: <a href="http://redclovergames.com/blog/?page_id=538">The Wizard Apprentice</a></p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/Screenshot_Floor2.png"><img class="alignnone size-full wp-image-545" title="Screenshot_Floor2" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/Screenshot_Floor2.png" alt="" width="766" height="433" /></a></p>
<p>Things I would have liked to do if I had the full 48 hours of dedication:</p>
<ul>
<li>Sound!</li>
<li>Textured walls</li>
<li>Animated Avatar</li>
<li>Cleaner controls</li>
<li>Better GUI</li>
<li>More Magic (but he&#8217;s only an apprentice).</li>
</ul>
<p>But hey, with such strict time limitations, not a whole lot you can do, so without further ado, go enjoy The Wizard Apprentice!</p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/Screenshot_WholeTower.png"><img class="alignnone size-full wp-image-544" title="Screenshot_WholeTower" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/Screenshot_WholeTower.png" alt="" width="597" height="585" /></a></p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/b7A1jfEb2oU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=543</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=543</feedburner:origLink></item>
		<item>
		<title>HexDev Alpha Build 14</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/a5dEtMmGOuE/</link>
		<comments>http://redclovergames.com/blog/?p=533#comments</comments>
		<pubDate>Sat, 10 Dec 2011 03:44:48 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[HexDev]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=533</guid>
		<description><![CDATA[Oh, and I posted a new HexDev Alpha Build tonight as well, because it&#8217;s been a while since I&#8217;ve updated it. Quick feature list off the top of my head: Ice Penguins Alligators Bow &#38; Arrow Pickaxe Mineable Copper Ore Ash Caves Skeletons Edit: Treasure Chests (with nothing in them and very cool audio) Coming [...]]]></description>
			<content:encoded><![CDATA[<div>Oh, and I posted a new <a href="http://redclovergames.com/blog/?page_id=397">HexDev Alpha Build</a> tonight as well, because it&#8217;s been a while since I&#8217;ve updated it.</div>
<div><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/Buidl14.png"><img class="alignnone size-full wp-image-534" title="Buidl14" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/Buidl14.png" alt="" width="719" height="590" /></a></div>
<div>Quick feature list off the top of my head:</div>
<ul>
<li>Ice</li>
<li>Penguins</li>
<li>Alligators</li>
<li>Bow &amp; Arrow</li>
<li>Pickaxe</li>
<li>Mineable Copper Ore</li>
<li>Ash</li>
<li>Caves</li>
<li>Skeletons</li>
<li>Edit: Treasure Chests (with nothing in them and very cool audio)</li>
</ul>
<p>Coming soon:  Banjos and Penguin mounts?</p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/a5dEtMmGOuE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=533</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=533</feedburner:origLink></item>
		<item>
		<title>Simple Scrolling Combat Text with Unity3D</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/KJ7-PGySZgg/</link>
		<comments>http://redclovergames.com/blog/?p=519#comments</comments>
		<pubDate>Sat, 10 Dec 2011 03:29:12 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[HexDev]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=519</guid>
		<description><![CDATA[I found an interesting discussion on Eric Heimburg&#8217;s G+ page about &#8220;floaty numbers&#8221; in Unity, and offered to share my solution to this problem as seen in HexDev, so here it is! Maybe someone will come looking for Scrolling Combat Text in Unity and this code will help! So to get things started, here&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>I found an interesting discussion on <a href="https://plus.google.com/115229764504220999980">Eric Heimburg&#8217;s G+ page</a> about &#8220;floaty numbers&#8221; in Unity, and offered to share my solution to this problem as seen in HexDev, so here it is!  Maybe someone will come looking for Scrolling Combat Text in Unity and this code will help!</p>
<p>So to get things started, here&#8217;s a quick screenshot of the implementation in HexDev:</p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/SCT2.png"><img class="alignnone size-medium wp-image-526" title="SCT2" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/SCT2-300x285.png" alt="" width="300" height="285" /></a></p>
<h2>Concept</h2>
<p>The basic concept is to display numbers above a unit whenever they take damage.  The number should rise for a certain height at a given speed and then poof away!  Nice and simple right?</p>
<p>So, to do this using my approach, we need a couple things:</p>
<ol>
<li>A Prefab with a TextMesh component attached.</li>
<li>A Unit object with a MonoBehaviour attached that calls: SendMessage(&#8220;DamageTaken&#8221;, x);   where x is the number to be displayed.</li>
<li>The ScrollingCombatText behaviour below attached to the GameObject that you want to display SCT numbers.</li>
</ol>
<p>So, Step 1) In my projects, I have created a prefab called SCTText which looks like this:</p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/SCTText.png"><img class="alignnone size-full wp-image-527" title="SCTText" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/SCTText.png" alt="" width="301" height="657" /></a></p>
<p>Nothing fancy, again just a GameObject that has a TextMesh object on it.  The beauty of it is that you can change this prefab to have a mesh or particles or whatever you want on it.  The number will be updated by the ScrollingCombatText script below.</p>
<p>For step 2, all of my units have a special behaviour attached to them that manages their health.  Whenever they take damage, they simply use the Unity <a href="http://unity3d.com/support/documentation/ScriptReference/GameObject.SendMessage.html">SendMessage</a> API to notify other MonoBehaviour&#8217;s attached to the game object that the unit has taken damage.  This will probably need to be tailored to your project.</p>
<p>And for step 3, I just attach the script below to my GameObject, give it the Prefab we defined in step 1, configure some parameters and whenever the unit takes damge, voila!  Scrolling combat text!  Here&#8217;s what the configuration of the script looks like on my units (each unit can have their own values or we can use the default values):</p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/12/ScrollingCombatTextScript.png"><img class="alignnone size-full wp-image-528" title="ScrollingCombatTextScript" src="http://redclovergames.com/blog/wp-content/uploads/2011/12/ScrollingCombatTextScript.png" alt="" width="303" height="87" /></a></p>
<h2>Code &#8211; ScrollingCombatText</h2>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">UnityEngine</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> ScrollingCombatText <span style="color: #008000;">:</span> MonoBehaviour
<span style="color: #008000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// How fast will the spawned text object rise</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">float</span> RiseRate <span style="color: #008000;">=</span> 4<span style="color: #008000;">.</span>0f<span style="color: #008000;">;</span>
	<span style="color: #008080; font-style: italic;">// How high should the spawned text object rise</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">float</span> RiseHeight <span style="color: #008000;">=</span> 10<span style="color: #008000;">.</span>0f<span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #008080; font-style: italic;">// Prefab with an attached TextMesh component that will be spawned when damage is taken</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> GameObject TextPrefab <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">private</span> List floatingTextObjects <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #008080; font-style: italic;">// This will be the starting height of the floating numbers</span>
	<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">float</span> initialHeight <span style="color: #008000;">=</span> 0<span style="color: #008000;">.</span>0f<span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #008080; font-style: italic;">// Use this for initialization</span>
	<span style="color: #6666cc; font-weight: bold;">void</span> Start <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
		<span style="color: #008080; font-style: italic;">// If this component is attached to a CharacterController, use the CharacterController's height attribute to set the initial height</span>
		CharacterController charController <span style="color: #008000;">=</span> gameObject<span style="color: #008000;">.</span><span style="color: #0000FF;">GetComponent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>charController <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
			initialHeight <span style="color: #008000;">=</span> charController<span style="color: #008000;">.</span><span style="color: #0000FF;">height</span><span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #008080; font-style: italic;">// Requires the GameObject to have a method call to: SendMessage(&quot;DamageTaken&quot;, int)</span>
    <span style="color: #6666cc; font-weight: bold;">void</span> DamageTaken<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> damageAmount<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
		<span style="color: #008080; font-style: italic;">// Create a new text object and set the starting height and text</span>
        GameObject textInstance <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span>GameObject<span style="color: #008000;">&#41;</span>Instantiate<span style="color: #008000;">&#40;</span>TextPrefab<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        textInstance<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">parent</span> <span style="color: #008000;">=</span> gameObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">;</span>
        textInstance<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span> <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Vector3<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">0</span>, initialHeight, <span style="color: #FF0000;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        TextMesh mesh <span style="color: #008000;">=</span> textInstance<span style="color: #008000;">.</span><span style="color: #0000FF;">GetComponent</span><span style="color: #008000;">&lt;</span>TextMesh<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        mesh<span style="color: #008000;">.</span><span style="color: #0000FF;">text</span> <span style="color: #008000;">=</span> damageAmount<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
		<span style="color: #008080; font-style: italic;">// Add to the list of floating text objects to update every frame</span>
        floatingTextObjects<span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>textInstance<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #008080; font-style: italic;">// Update is called once per frame</span>
    <span style="color: #6666cc; font-weight: bold;">void</span> Update<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
		<span style="color: #008080; font-style: italic;">// Cache all text meshes to be deleted and later delete them</span>
        List objectsToDelete <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span>GameObject floatingTextObject <span style="color: #0600FF; font-weight: bold;">in</span> floatingTextObjects<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
			<span style="color: #6666cc; font-weight: bold;">float</span> riseDelta <span style="color: #008000;">=</span> Time<span style="color: #008000;">.</span><span style="color: #0000FF;">deltaTime</span> <span style="color: #008000;">*</span> RiseRate<span style="color: #008000;">;</span>
            Vector3 newPosition <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Vector3<span style="color: #008000;">&#40;</span>floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">x</span>, floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">y</span> <span style="color: #008000;">+</span> riseDelta, floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">z</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span> <span style="color: #008000;">=</span> newPosition<span style="color: #008000;">;</span>
            floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">LookAt</span><span style="color: #008000;">&#40;</span>floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">position</span> <span style="color: #008000;">+</span> Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">mainCamera</span><span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">forward</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
			<span style="color: #008080; font-style: italic;">// Delete this floating text object if it exceeds our RiseHeight property</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>floatingTextObject<span style="color: #008000;">.</span><span style="color: #0000FF;">transform</span><span style="color: #008000;">.</span><span style="color: #0000FF;">localPosition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">y</span> <span style="color: #008000;">&amp;</span>gt<span style="color: #008000;">;=</span> initialHeight <span style="color: #008000;">+</span> RiseHeight<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                objectsToDelete<span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>floatingTextObject<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span>GameObject objectToDelete <span style="color: #0600FF; font-weight: bold;">in</span> objectsToDelete<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            floatingTextObjects<span style="color: #008000;">.</span><span style="color: #0000FF;">Remove</span><span style="color: #008000;">&#40;</span>objectToDelete<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Destroy<span style="color: #008000;">&#40;</span>objectToDelete<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/KJ7-PGySZgg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=519</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=519</feedburner:origLink></item>
		<item>
		<title>Responsibility in Game Design</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/K1e7NbjdMZw/</link>
		<comments>http://redclovergames.com/blog/?p=509#comments</comments>
		<pubDate>Thu, 17 Nov 2011 03:30:36 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Game Design]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=509</guid>
		<description><![CDATA[At the moment, one of the biggest struggles I am having as a game designer is giving players objectives.  I have the power to give people an objective to achieve, so what do I want people to do?  When I ask myself that, I realize that I am potentially putting a lot of power into [...]]]></description>
			<content:encoded><![CDATA[<p>At the moment, one of the biggest struggles I am having as a game designer is giving players objectives.  I have the power to give people an objective to achieve, so what do I want people to do?  When I ask myself that, I realize that I am potentially putting a lot of power into my own hands (along with a tremendous amount of responsibility!)   Think about some of these questions: &#8220;What do I want people to do?&#8221;, &#8220;How do I want people to behave?&#8221;, &#8220;What do I want people to take away from this experience?&#8221;  This makes me think about other games that I&#8217;ve played [and enjoyed] and the thoughts or answers to those questions that game designers must have made while designing some games.</p>
<h3>Ethics</h3>
<p>For a game like Grand Theft Auto, someone sat in a room and answered some of those questions: &#8220;I want players to [virtually] kill other virtual characters with weapons.&#8221; or &#8220;I want players to steal cars [because you're not allowed to in real life!]&#8221; or &#8220;I want players to steal money to buy drugs.&#8221;  Maybe they didn&#8217;t say it out loud and they probably didn&#8217;t say it in those exact phrases, but someone had to think of the concept, convey it to a team, and test it out to see how fun it was.  And it must have been fun and people must have liked it because it sold like crazy!</p>
<p>I struggle internally with the idea of pushing content that is &#8220;unethical&#8221;.  If I make a game with violence in it, am I condoning that action?  If I put my brand logo on food that is bad for people&#8217;s health does that mean I want people to die?  Do I really want me kids and people playing my game to learn about violence or stealing or death like this?</p>
<h3>Curiosity</h3>
<p>I recently discovered an indie game called <a href="http://www.catapultforhire.com/">Catapult For Hire</a> by Tyrone Henrie.  There was an interview conducted by <a href="http://indiegameschannel.com/">Indie Games Channel</a> where they ask him about his motivations and I really think I can relate to this guy [aside from the fact that I don't have the guts to quit my day job to program games full time since I'm supporting a family of 5].  In that <a href="http://indiegameschannel.com/wp/2011/09/06/interview-pixelmegas-tyrone-henrie-discusses-catapult-for-hire/">article</a>, he tells why he started developing Catapult for Hire:</p>
<blockquote><p>Originally, I wanted to enter a game into a competition and so I decided to do something involving catapults. [...]  I didn’t want to do just another game where you throw stuff and hit stuff.</p></blockquote>
<p>So from that, we can imply that his primary objective was to &#8220;do something different&#8221;.  Reading on a little bit, I found a more concrete example of his game design goal:</p>
<blockquote><p>From a gameplay standpoint, my goal is to create a sense of childlike wonder where the world is your little plaything.</p></blockquote>
<p>So there is a very abstract goal for his desire to make a video game, in which many game developers (including myself) share.  I do enjoy exploration and fulfilling curiosity, giving people an avenue to &#8220;play&#8221; things they cannot in real life.</p>
<h3>Build A Better Mousetrap</h3>
<p>In a recent interview with <a href="http://www.raphkoster.com/2011/10/27/rpg-fanatic-interviews-me/">Raph Koster</a>, he talks about developers being inspired by those that came before them.  The developers of EQ wanted to build something better than MUDs, the developers of WoW wanted to build something better than EQ, etc&#8230; etc&#8230;  So, I guess that could be viewed as an inspiration.  When we see something and experience something, I think it&#8217;s natural that we want to point out the flaws and try to fix them and make it better.</p>
<p>So should I just try to build something better?  Take the latest trend, fix a few things and tweak it?  Or is that shallow?  Personally I can&#8217;t see myself just creating another game like game X.  I feel like I need to make a difference and do something unique.</p>
<h3>The Gamification Reality</h3>
<p>Raph Koster also talks about the gamification of things in the real world and how the lines between gaming and reality are becoming blurred, in a totally whimsical but <a href="http://www.gdcvault.com/play/1015142/It-s-All-Games-Now">seriously awesome presentation</a> at GDC Online this year.  Game design is no longer focused on your basement dweller, soda drinking, couch potato persona, it’s getting “serious” and “popular” and “social”, GASP!</p>
<p>Will Wright takes it 1 step further with a new start-up company called <em>Hivemind</em>, who will be developing games of the genre “personal gaming”.  In <a href="http://www.gamasutra.com/view/news/38601/Will_Wright_Reveals_Personal_Gaming_Project_Hivemind.php">this article</a>, Will Wright explains his concept of “personal gaming”:</p>
<blockquote><p>The idea is that the game will be designed to provide a personal experience to each individual player by taking into account aspects from the player’s real life….If we can learn enough about the player, we can create games about their real life. How do we get you more engaged in reality rather than distract you from it?”</p></blockquote>
<p>So, Will Wright is suggesting here that the objectives of these “personal gaming” game designs are to engage you more in reality rather than create a distraction.  I mean, right there he flat out calls games a “distraction”… which really makes a lot of sense.  So as a game designer am I really just building a “distraction”, something pointless to pass the time?  In some ways, I can’t help but feel that yeah, that’s what every game I’ve ever played is doing.</p>
<h3>Virtual “Reality”</h3>
<p>However, I am also reminded of Mojang and Minecraft and how they are inspiring communities to <a href="http://mojang.com/2011/10/27/minecraft-empowers-people-to-change-their-block/">design their neighborhood</a>.  Through this sandbox “game”, people are going to share their ideas about the community and construction companies are going to use these “virtual blueprints” to help design <strong>real.  life.  places!</strong> How cool!  The game becomes a tool!</p>
<p>Speaking of tools, our bodies are wonderful tools too.  Bret Victor of <a href="http://worrydream.com/">WorryDream.com</a>, wrote an article that discusses the <a href="http://worrydream.com/ABriefRantOnTheFutureOfInteractionDesign/">Future of Interaction Design</a>.  What do I take from this?  Well, I think that consoles like the Wii [and Kinect] are already showing us the potential that our bodies have in the gaming world.  The idea and effort that went into designing this system was not merely an extrapolation of existing designs (add 1 more button, use 1 less finger), where we continue to use a controller.  Instead, they utilized the human potential to interact with the game worlds and created something that changed the world of gaming!  So, some game designer was inspired to give more meaning and value to gaming by creating this, which I think is great.</p>
<p>Then there is <a href="http://fold.it/portal/">Foldit</a>.  The concept is that by playing a protein folding “game”, you are helping contribute to important medical research, which can help <strong>real people</strong>!</p>
<h3>Education Games</h3>
<p>My children play lots of education based games right now that teach them numbers, counting, shapes, letters, logic, colors, and many other fundamental life skills that we also teach them by way of reading, talking, drawing, discussion, tangible toys, playing games, etc…  But I guess the point here is that some game designs are built with the intention to <strong>teach</strong> somebody something of value.  Knowing that golems are weak against fire and the only way to kill a 1 eyed tree frog with blue skin is to fire a poison dart into belly doesn’t really provide a whole lot of tangible takeaways.  That’s rather useless information really, but it’s fun!  Education game design takes the idea that we can convey important facts to people through fun activities.  Personally, I was always more motivated by labs than reading from a book in Science class.  I thought it was great to see stuff in action and learn that way.</p>
<p>As a game designer, our fundamental goal is to give our players <strong>something to do</strong>…</p>
<p>So now that I wrote this blog post, I guess I am still asking myself:  What do I want people to do?</p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/K1e7NbjdMZw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=509</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=509</feedburner:origLink></item>
		<item>
		<title>Cube Slime Mayhem!</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/1A10QEHRDJs/</link>
		<comments>http://redclovergames.com/blog/?p=503#comments</comments>
		<pubDate>Mon, 31 Oct 2011 02:52:38 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[HexDev]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=503</guid>
		<description><![CDATA[I&#8217;m having too much fun playing with Cube Slimes and Burning Trees! Desining emergent gameplay is awesome!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having too much fun playing with Cube Slimes and Burning Trees!</p>
<p>Desining emergent gameplay is awesome! <img src='http://redclovergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://redclovergames.com/blog/wp-content/uploads/2011/10/Snapshot.png"><img class="alignnone size-full wp-image-504" title="Snapshot" src="http://redclovergames.com/blog/wp-content/uploads/2011/10/Snapshot.png" alt="" width="570" height="471" /></a></p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/1A10QEHRDJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=503</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=503</feedburner:origLink></item>
		<item>
		<title>HexDev on Kongregate</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/7033iLHzUbY/</link>
		<comments>http://redclovergames.com/blog/?p=496#comments</comments>
		<pubDate>Wed, 26 Oct 2011 14:42:03 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[HexDev]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=496</guid>
		<description><![CDATA[Attention loyal supporters of HexDev! &#60;crickets&#62; Ahem, ok, so I made the link to HexDev at the top point directly to the game on Kongregate.  This will help me save some web space and generate a bit of revenue (hahahaha), ahem&#8230; as I keep developing.  At some point, if Kongregate supports the Shared Content API [...]]]></description>
			<content:encoded><![CDATA[<p>Attention loyal supporters of HexDev!</p>
<p>&lt;crickets&gt;</p>
<p>Ahem, ok, so I made the link to HexDev at the top point directly to the game on Kongregate.  This will help me save some web space and generate a bit of revenue (hahahaha), ahem&#8230; as I keep developing.  At some point, if Kongregate supports the Shared Content API for Unity, I&#8217;m ready to integrate it into the game so people can share custom maps.  Someday I may have to write my own content sharing API if they don&#8217;t deliver.</p>
<p>Here&#8217;s where you come in!  If you have a Kongregate account, I need a few more votes on the game to see how people like it so far.  The problem with Kongregate is that once games fall off the &#8220;new&#8221; list, they never get seen again, unless they are 5/5 star games which make the front page.  But at the same time, that makes sense for their business because a lot of garbage and prototype stuff gets put there, so they have to.</p>
<p>So, long story short:</p>
<ol>
<li><strong><a href="http://www.kongregate.com/games/Ralkarin/hexdev-alpha-1">Go vote for HexDev on Kongregate!</a></strong> (so I can see the score)</li>
<li>If you dislike this change for any reason, comment below so I can reconsider the change.</li>
</ol>
<p>Thanks!</p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/7033iLHzUbY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=496</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=496</feedburner:origLink></item>
		<item>
		<title>HexDev in Surround Sound!</title>
		<link>http://feedproxy.google.com/~r/RedCloverBlog/~3/HiTEjuskpMc/</link>
		<comments>http://redclovergames.com/blog/?p=488#comments</comments>
		<pubDate>Wed, 26 Oct 2011 03:18:52 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[HexDev]]></category>

		<guid isPermaLink="false">http://redclovergames.com/blog/?p=488</guid>
		<description><![CDATA[Posted a new HexDev build with sound! Filesize went up quite a bit. Also debugging ore collection, so if you place any mountain tiles, you might see some ore spawn. Right click to gather, but that&#8217;s all you can do for now. Oh, and I reverted some of the graphics back to smooth shading instead [...]]]></description>
			<content:encoded><![CDATA[<p>Posted a new HexDev build with sound!  Filesize went up quite a bit.  Also debugging ore collection, so if you place any mountain tiles, you might see some ore spawn.  Right click to gather, but that&#8217;s all you can do for now.</p>
<p>Oh, and I reverted some of the graphics back to smooth shading instead of flat shading to get the nice outlines.  I think I like it.</p>
<p><a href="http://redclovergames.com/blog/?page_id=397">Enjoy!</a></p>
<p><a href="http://redclovergames.com/blog/?page_id=397"></a></p>
<img src="http://feeds.feedburner.com/~r/RedCloverBlog/~4/HiTEjuskpMc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://redclovergames.com/blog/?feed=rss2&amp;p=488</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://redclovergames.com/blog/?p=488</feedburner:origLink></item>
	</channel>
</rss>

