<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TK Games LLC &#187; Code Snippets</title>
	<atom:link href="http://tk-games.com/category/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://tk-games.com</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 14:24:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Jquery Countdown Script</title>
		<link>http://tk-games.com/2012/01/jquery-countdown-script/</link>
		<comments>http://tk-games.com/2012/01/jquery-countdown-script/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 14:24:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://tk-games.com/?p=36</guid>
		<description><![CDATA[So, I had the need the other day for one of those "if your page does not redirect in X seconds, click here" scripts where the X would count down. Here is a little piece of jquery i wrote to handle this.]]></description>
		<wfw:commentRss>http://tk-games.com/2012/01/jquery-countdown-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TGB Level Loader</title>
		<link>http://tk-games.com/2010/03/tgb-level-loader/</link>
		<comments>http://tk-games.com/2010/03/tgb-level-loader/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:38:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Snippets]]></category>

		<guid isPermaLink="false">http://tk-games.com/?p=16</guid>
		<description><![CDATA[So working with a new board selection class for La Box and I came across a nice little piece of code for loading levels.]]></description>
		<wfw:commentRss>http://tk-games.com/2010/03/tgb-level-loader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Position Particle Effects</title>
		<link>http://tk-games.com/2010/03/dynamic-position-particle-effects/</link>
		<comments>http://tk-games.com/2010/03/dynamic-position-particle-effects/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 02:09:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Snippets]]></category>

		<guid isPermaLink="false">http://tk-games.com/?p=11</guid>
		<description><![CDATA[So when I was working on some of the power ups for La Box I needed a way to display several particle effects on the screen at the same time. So what i did was create a function to do this for me.
function CreateGroundPountEffect(%pos)
{
%particle = new t2dParticleEffect();
%particle.addToScene($sceneGraph);
%particle.loadEffect(&#8221;~/data/particles/SmokePuff.eff&#8221;);
%particle.Position = %pos;
%particle.playEffect();
}
Use this function and pass in the [...]]]></description>
		<wfw:commentRss>http://tk-games.com/2010/03/dynamic-position-particle-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TGB Audio Setup</title>
		<link>http://tk-games.com/2010/03/tgb-audio-setup/</link>
		<comments>http://tk-games.com/2010/03/tgb-audio-setup/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 02:06:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Snippets]]></category>

		<guid isPermaLink="false">http://tk-games.com/?p=9</guid>
		<description><![CDATA[Here is a sample audio setup class for torque game builder. Simply create a new script file. Add in the following.
new AudioDescription(AudioNonLooping)
{
volume = 1.0;
isLooping = false;
isStreaming = true;
};
new AudioDescription(AudioLooping)
{
volume = 1.0;
isLooping = true;
isStreaming = true;
};
new AudioProfile(AudioSpaceBass)
{
filename = &#8220;~/data/audio/SpaceBass.wav&#8221;;
description = &#8220;AudioLooping&#8221;;
preload = true;
};
Execute the script in game.cs. then use alxPlay(AudioSpaceBass); anywhere you want to play the [...]]]></description>
		<wfw:commentRss>http://tk-games.com/2010/03/tgb-audio-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: tk-games.com @ 2012-05-20 12:25:05 -->
