<?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>Made with Tea</title>
	<atom:link href="http://madewithtea.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://madewithtea.wordpress.com</link>
	<description>Software Development</description>
	<lastBuildDate>Fri, 08 Oct 2010 08:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='madewithtea.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Made with Tea</title>
		<link>http://madewithtea.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://madewithtea.wordpress.com/osd.xml" title="Made with Tea" />
	<atom:link rel='hub' href='http://madewithtea.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Berlin and Games Academy</title>
		<link>http://madewithtea.wordpress.com/2010/10/08/berlin-and-games-academy/</link>
		<comments>http://madewithtea.wordpress.com/2010/10/08/berlin-and-games-academy/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 08:56:50 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=121</guid>
		<description><![CDATA[It&#8217;s been a while ago since my last blog post &#8211; so here are the facts Unfortunately I was very busy in the last week. I was studying for the last exam this semester (investment &#38; production). Today I&#8217;m driving with my girlfriend and some people to Berlin, Germany. I am going to visit the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=121&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>It&#8217;s been a while ago since my last blog post &#8211; so here are the facts</strong></p>
<p>Unfortunately I was very busy in the last week. I was studying for the last exam this semester (investment &amp; production). Today I&#8217;m driving with my girlfriend and some people to Berlin, Germany. I am going to visit the open house at the Games Academy in Berlin. Of course I am going to write a blog post about it. We&#8217;re going to stay a couple of days, to Tuesday and after arriving home again, I<strong>&#8216;</strong>m going to continue studying. The resulting fact: My project is frozen over this time. I hope that when studying regularly in the next semester there&#8217;s time for the project. Greetings.<strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=121&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/10/08/berlin-and-games-academy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>Behaviour Trees</title>
		<link>http://madewithtea.wordpress.com/2010/09/25/behaviour-trees/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/25/behaviour-trees/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 12:29:30 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=108</guid>
		<description><![CDATA[Forget state machines &#38; your Lua scripts! After writing the post about state machines I stumbled upon a website about &#8217;10 Reasons the Age of Finite State Machines is over&#8217;. After reading that post I wasn&#8217;t excited about the thing called &#8216;behaviour tree&#8217;, but then I saw a video lecture on &#8216;behaviour trees&#8217; here. What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=108&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Forget state machines &amp; your Lua scripts</strong>!</p>
<p>After writing the post about state machines I stumbled upon a <a href="http://aigamedev.com/open/articles/fsm-age-is-over/">website</a> about &#8217;10 Reasons the Age of Finite State Machines is over&#8217;. After reading that post I wasn&#8217;t excited about the thing called &#8216;behaviour tree&#8217;, but then I saw a video lecture on &#8216;behaviour trees&#8217; <a href="http://aigamedev.com/open/articles/behavior-trees-part1/">here</a>. What is a behaviour tree briefly explained? A behaviour tree is a mixture of hierachical state machines, scripting and planners. It&#8217;s a programming pattern. It describes the behaviour of a certain game object with events and conditions. It&#8217;s hierachical, and the behaviours can be reused. I&#8217;m not an expert, even an amateur on this topic, therefore I advise you to check out the video lecture. It really opened my eyes to the game AI behaviour designing. Have a nice weekend.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=108&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/25/behaviour-trees/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>My home my castle</title>
		<link>http://madewithtea.wordpress.com/2010/09/21/my-home-my-castle/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/21/my-home-my-castle/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 18:39:58 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=93</guid>
		<description><![CDATA[The short keep up-to-date post The weather gets colder, we&#8217;re approaching winter, at least autumn. The tip for today and the next days: stay in your castle for preventing get ill (if you get ill from going to work. stay at home while you&#8217;re ill). Use the time to focus your mind on important things [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=93&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>The short keep up-to-date post </strong></p>
<p><strong></strong>The weather gets colder, we&#8217;re approaching winter, at least autumn. The tip for today and the next days: stay in your castle for preventing get ill (if you get ill from going to work. stay at home while you&#8217;re ill). Use the time to focus your mind on important things like friends and family. Myself is relaxing in the evening, drinking tea and is going to watch a movie. The lines of code of my game project count round about 2300 lines. A good reason for illustrating something, to keep my creativity in balance.  On the left hand side I&#8217;ve placed an illustration i made shortly before the blog post. Maybe this could be a game asset in the near future, you&#8217;ll see. In the end of this short keep up-to-date post I like to greet my girlfriend and my friends!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=93&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/21/my-home-my-castle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>State machines</title>
		<link>http://madewithtea.wordpress.com/2010/09/20/state-machines/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/20/state-machines/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 09:48:16 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[c]]></category>
		<category><![CDATA[codekata]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=75</guid>
		<description><![CDATA[Switching from one state to another, to another to another &#8230; As I mentioned in the end of the past week, i&#8217;ll now introduce my code kata to finite state machines for game objects. First I&#8217;ll describe the idea behind it, and then how I implemented it.The programming paradigm behind it is called &#8216;Automata-based programming&#8216;. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=75&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Switching from one state to another, to another to another &#8230;</strong></p>
<p>As I mentioned in the end of the past week, i&#8217;ll now introduce my code kata to <a href="http://en.wikipedia.org/wiki/Finite_state_machine" target="_blank">finite state machines</a> for game objects. First I&#8217;ll describe the idea behind it, and then how I implemented it.The programming paradigm behind it is called &#8216;<a href="http://en.wikipedia.org/wiki/Automata-based_programming">Automata-based programming</a>&#8216;.</p>
<p><strong>The idea of finite state machines in game objects<br />
</strong></p>
<p>State machines are a special type of graphs in graph theory. State machines can be used to define a behaviour of something with different states. It&#8217;s massively used in computer engineering. In this post I like to present you an example on how finite state machines can be used for game development. In a game it&#8217;s usual to manage game objects, each game object has its own logic code. Depending on other game objects, level or player interaction the behaviour of the game object should change. By letting the behaviour / action code (e.g. the sprite glows) depend on a state (e.g. mouse over) we can separate each behaviour / action code. The state changes within a transition, a transition from one state to another is applied if an event is fired (e.g. the mouse over event). For better comprehension or if you want to skip the source code explanation, here&#8217;s the <a href="http://github.com/jpzk/madewithtea_katas/blob/master/gameobject_fsm.c" target="_blank">example code</a>.</p>
<p><strong>General design and action function pointer<br />
</strong></p>
<p>The code is quite complex, so you should be an average C programmer to read it. The orignal code in my project is separated into different compilation units, in this code kata it&#8217;s all packed up in one C file and kept simple as possible. The data and functions of the finite state machine are coupled with the block object. The block object is an example game object; the block object is defined by its structure and its functions. In the main function of the example source code the block is falling down.. until it hits the ground, then an event is fired (hit the ground) and the state and logic code of the game object changes. The game object block logic has to be called trough the interface function &#8216;block_action(struct block *_block)&#8217;. The block_action functions delegates to the current action function which holds the action code of the current state. This can be done by a function pointer &#8216;block-&gt;action&#8217;  in the block structure that points to the current action function. In the end of the next section I explain how we need the function pointer.</p>
<p><strong>Hands on code<br />
</strong></p>
<p>The design of the finite state machine follows: Current state of the game object is a data field in the block structure (block-&gt;state). The transition itself is a structure, with the data fields state (integer), event (integer), and a function pointer. The data fields of the transition structure define a transition in our finite state machine. The state data field represents the state from which the transition is being made. The event represents the event that has to occur for applying the transition and the function pointer points to a function which is called when the transition was applied.  block_fsm_run(struct block *_block) runs the finite state machine against the current state and a fired event. If there&#8217;s a transition from the current state with the fired event, the function pointer in the transition is called. All functions, the transitions point to, set the waiting event to none and set the action function pointer (block-&gt;action).</p>
<p>Enough words, lets dive into the <a href="http://github.com/jpzk/madewithtea_katas/blob/master/gameobject_fsm.c" target="_blank">example code</a> if you haven&#8217;t seen it already. I hope you liked the tutorial / code kata on how you can use a finite state machine in game objects. It&#8217;s just one implementation and the tip of the iceberg. If you have an additions and question post it to the comments I&#8217;m glad to answer. A good start in the new week!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=75&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/20/state-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>Code for food</title>
		<link>http://madewithtea.wordpress.com/2010/09/12/code-for-food/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/12/code-for-food/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:53:36 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=68</guid>
		<description><![CDATA[Eat, code, love. Man, it&#8217;s been a long time since i wrote my last blog post &#8211; 3 days ago. However, I&#8217;ve been quite busy at the moment, cause old clients want some add-ons to their web applications and I rather work on that &#8211; money is always useful. On the other hand, I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=68&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Eat, code, love.</strong></p>
<p>Man, it&#8217;s been a long time since i wrote my last blog post &#8211; 3 days ago. However, I&#8217;ve been quite busy at the moment, cause old clients want some add-ons to their web applications and I rather work on that &#8211; money is always useful. On the other hand, I have absolutely no time for my project. But I&#8217;m willing to give you another tutorial on game development soon. It&#8217;s about formulating your game entities as finite state machines. In addition to that, I&#8217;m writing some C example code.  Well, stay tuned for the next tutorial code kata, and have a great start into the new week!</p>
<p>Greetings, jpzk (tired, and is going to sleep now)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=68&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/12/code-for-food/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>Passion</title>
		<link>http://madewithtea.wordpress.com/2010/09/09/passion/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/09/passion/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 17:18:21 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=63</guid>
		<description><![CDATA[Computers were my first love Good evening readers, I find it quite funny, that people think if they got a nice idea, they&#8217;ll be rich anyhow. But the important part of making ideas real is the part of motivation and passion while converting the blueprints of an idea to a working, useful, thing. I think [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=63&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Computers were my first love</strong></p>
<p>Good evening readers, I find it quite funny, that people think if they got a nice idea, they&#8217;ll be rich anyhow. But the important part of making ideas real is the part of motivation and passion while converting the blueprints of an idea to a working, useful, thing. I think most of the programmers, at least I do,  are perfectionists and like solving problems elegantly (only if there&#8217;s no real or almost no deadline). Furthermore I think we&#8217;re passionate about our code, and like to see it as poetry or as a well-designed masterpiece.</p>
<p>However, besides that there are days when you lose your motivation about the project &#8211; In my opinion, don&#8217;t force yourself writing the code, find new energy (drink tea, meet friends, watch a movie e.g.) and then think of your own masterpiece and what it should be. For those code poets among us, let the spirit of code poetry come to your fingertips again (you&#8217;re coding, what you want to code), and for those software architects  among us, think of your design, the patterns and how does it work together.</p>
<p>Greetings, your jpzk</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=63&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/09/passion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>Hi, neighbour</title>
		<link>http://madewithtea.wordpress.com/2010/09/07/neighbour-grid/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/07/neighbour-grid/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 07:42:36 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[codekata]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=29</guid>
		<description><![CDATA[While I drink my China Lung Ching also known as Dragon Well I refreshed my energy working on the project. For my current project I need a neighbour-aware grid. Because I&#8217;m a big fan of Goban/Go and it&#8217;s a really good example I illustrated the drawing on the left hand side. The Problem is of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=29&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_35" class="wp-caption alignleft" style="width: 280px"><a href="http://madewithtea.files.wordpress.com/2010/09/kata.jpg"><img class="size-full wp-image-35" title="A neighbour-aware grid" src="http://madewithtea.files.wordpress.com/2010/09/kata.jpg?w=700" alt=""   /></a><p class="wp-caption-text">A neighbour-aware grid</p></div>
<p>While I drink my <a href="http://steepster.com/teas/rutland-tea-co-www-tea-time-biz/9792-china-lung-ching-1st-grade?post=50764" target="_blank"><em>China Lung Ching</em></a> also known as Dragon Well I refreshed my energy working on the project. For my current project I need a neighbour-aware grid. Because I&#8217;m a big fan of <a href="http://en.wikipedia.org/wiki/Go_%28game%29" target="_blank">Goban/Go</a> and it&#8217;s a really good example I illustrated the drawing on the left hand side. The Problem is of getting the neighbours of a specific cell (and checking them against conditions in dependence to their attributes). The performance of the solution is relevant. So at first I thought of the graph theory, which in fact could pretty much handle. Instead of using a &#8220;full-blown&#8221; <a href="http://en.wikipedia.org/wiki/Graph_theory" target="_blank">graph theory </a>library, I just take the idea of graphs and use it in my solution. If you want to, see this blog article as a <a href="http://en.wikipedia.org/wiki/Code_Kata" target="_blank">code kata</a> for a neighbour-aware grid.</p>
<p><strong>The data structure</strong></p>
<p>At first I have to say that I implement the data structure in C, because it produces no extra memory footprint. Lets consider the picture on the left hand side. If you interpret the two-dimensional array of the image as an array you could formulate equations for an index of top, right, bottom and left neighbour and dependence to the current cell. To be  more flexible with location-based updates (and save calculation time), I have implemented a data structure, which stores a two-dimensional grid (as a one-dimensional) and four pointers in each cell (in code: grid element) to its neighbours. Each cell is implemented as a struct and is able to store some extra information, like type, resistance and so on.</p>
<p>To set up the pointers the computer goes through the one-dimensional grid and set the pointers to top, right, bottom, left neighbour if the cell is in a position, where there are neighbours to the according sides. Remember that the index of the first cell is 0. In the picture on the left hand side the width and height of the grid are three and three. The conditions are four if clauses which check for existence of top neighbour (the row index of the current cell hast to be greater than zero), existence of right neighbour (the column index of the current cell has to be smaller than the width of the two-dimensional grid), existence of bottom neighbour (the row index of the current cell has to be smaller than the height of the grid) and the existence of left neighbour (the column  index of the current cell has to be greater than zero).</p>
<p><strong>Implementation in C</strong></p>
<p>Enough Text, let&#8217;s see my implementation (see <a href="http://github.com/jpzk/madewithtea_katas/blob/master/neighbour_aware_grid.c" target="_blank">implementation</a>). It&#8217;s not yet finished, because location-based updates are relevant to my project to increase the execution speed, but if you have suggestions for further enhancements please let me know and write it to the comments!</p>
<p>Thanks for reading, and have a nice day!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=29&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/07/neighbour-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>

		<media:content url="http://madewithtea.files.wordpress.com/2010/09/kata.jpg" medium="image">
			<media:title type="html">A neighbour-aware grid</media:title>
		</media:content>
	</item>
		<item>
		<title>C versus C++</title>
		<link>http://madewithtea.wordpress.com/2010/09/04/c-versus-c/</link>
		<comments>http://madewithtea.wordpress.com/2010/09/04/c-versus-c/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 11:16:38 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=21</guid>
		<description><![CDATA[&#8220;No programming technique solves all problems. No programming language produces only correct results. No programmer should start each project from scratch&#8221; &#8211; Object-Oriented Programming with ANSI-C (here) I just read an article on C versus C++, you can check it out here. It&#8217;s an overview of his programming experiences with C and C++. On many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=21&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;No programming technique solves all problems. No programming language produces only correct results.  No programmer should start each project from scratch&#8221; &#8211; </em>Object-Oriented Programming with ANSI-C<em> </em>(<a href="www.planetpdf.com/codecuts/pdfs/ooc.pdf">here</a>)<em><br />
</em></p>
<p>I just read an article on C versus C++, you can check it out <a href="http://oddments.org/?p=79" target="_blank">here</a>. It&#8217;s an overview of his programming experiences with C and C++. On many aspects of the author mentioned I agree. And if you&#8217;re in conflict which language you want to choose, you should definitely read the blog post. He also mentioned the object oriented programming style in C, which I use for my projects. In the end I decided to keep my work on in C with the argument, that my projects are relative small (means round about 10 &#8220;classes&#8221;) and most work is already implemented by the game engine.</p>
<p>Greetings and have a nice day, jpzk</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=21&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/09/04/c-versus-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting started</title>
		<link>http://madewithtea.wordpress.com/2010/08/31/hallo-welt/</link>
		<comments>http://madewithtea.wordpress.com/2010/08/31/hallo-welt/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 21:17:09 +0000</pubDate>
		<dc:creator>jpzk</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[announcement]]></category>

		<guid isPermaLink="false">http://madewithtea.wordpress.com/?p=1</guid>
		<description><![CDATA[Hello guys, it&#8217;s been a while since i started working on the Made with Tea projects, now that i set up the development blog I got the opportunity to show the game ideas. But till the first release i keep them hided. The game will be released on WebOS and it&#8217;s written in C and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=1&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys,</p>
<p>it&#8217;s been a while since i started working on the Made with Tea projects, now that i set up the development blog I got the opportunity to show the game ideas. But till the first release i keep them hided. The game will be released on WebOS and it&#8217;s written in C and uses the brick engine which is a 2D engine build on top of SDL. It&#8217;s a very customizable engine and fits my needs. Unlike other engines, the brick engine is very lightweight and some essential features are missing, which i have to implement, too. I am currently working on a prototype of the game with all fundamental services which are needed.</p>
<p>Greetings, jpzk</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madewithtea.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madewithtea.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madewithtea.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madewithtea.wordpress.com&amp;blog=15546230&amp;post=1&amp;subd=madewithtea&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madewithtea.wordpress.com/2010/08/31/hallo-welt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf3ca7d0045e5f823c16d5f6b7687060?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jpzk</media:title>
		</media:content>
	</item>
	</channel>
</rss>
