<?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>Crazyhead Games &#187; chum</title>
	<atom:link href="http://crazyheadgames.com/tag/chum/feed/" rel="self" type="application/rss+xml" />
	<link>http://crazyheadgames.com</link>
	<description>mobile gaming</description>
	<lastBuildDate>Sat, 23 Jul 2011 02:44:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Chum now on github</title>
		<link>http://crazyheadgames.com/2010/05/10/chum-now-on-github/</link>
		<comments>http://crazyheadgames.com/2010/05/10/chum-now-on-github/#comments</comments>
		<pubDate>Tue, 11 May 2010 02:34:41 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[chum]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://crazyheadgames.com/?p=20</guid>
		<description><![CDATA[I decided I was far enough along on Chum to put it up on github: http://github.com/jslade/chum It&#8217;s far from complete &#8212; I&#8217;m really just working on the proof of concept now: will it be reasonably easy to use to build a full game, and will it perform decently for some relatively simple stuff out of [...]]]></description>
			<content:encoded><![CDATA[<p>I decided I was far enough along on <a href="http://crazyheadgames.com/2010/02/03/chum-android-game-engine/">Chum</a> to put it up on <a href="http://github.com/">github</a>:</p>
<p style="text-align: center;"><a href="http://github.com/jslade/chum">http://github.com/jslade/chum</a></p>
<p>It&#8217;s far from complete &#8212; I&#8217;m really just working on the proof of concept now: will it be reasonably easy to use to build a full game, and will it perform decently for some relatively simple stuff out of the box?</p>
<p>But so far, I am pleased with how it&#8217;s coming together.  I have liked several things about using the tree of GameNodes for everything, with GameEvents to manage communications between nodes.  I recently added GameSequence, which makes use of both.  It&#8217;s intended to be the basis for managing animations and such &#8212; I already used it to implement several <a href="http://github.com/jslade/chum/blob/master/src/chum/engine/common/TextAnimation.java">text animations</a>, as shown in the <a href="http://github.com/jslade/chum/blob/master/src/chum/examples/AnimatedTextExample.java">AnimatedTextExample</a>:</p>
<pre>
<div id="LC166">                <span>// Shake side to side</span></div>
<div id="LC167">                <span>animation</span> <span>=</span> <span>new</span> <span>GameSequence</span><span>.</span><span>Series</span><span>();</span></div>
<div id="LC168">                <span>int</span> <span>offset</span> <span>=</span> <span>FP</span><span>.</span><span>intToFP</span><span>(</span><span>30</span><span>);</span></div>
<div id="LC169">                <span>to</span><span>.</span><span>set</span><span>(</span><span>center</span><span>);</span></div>
<div id="LC171">                <span>from</span><span>.</span><span>set</span><span>(</span><span>center</span><span>);</span></div>
<div id="LC172">                <span>to</span><span>.</span><span>x</span> <span>=</span> <span>center</span><span>.</span><span>x</span> <span>-</span> <span>offset</span><span>;</span></div>
<div id="LC173">                <span>animation</span><span>.</span><span>addNode</span><span>(</span><span>textNode</span><span>.</span><span>animatePosition</span><span>(</span><span>from</span><span>,</span><span>to</span><span>,</span><span>50</span><span>));</span></div>
<div id="LC175">                <span>from</span><span>.</span><span>set</span><span>(</span><span>to</span><span>);</span></div>
<div id="LC176">                <span>to</span><span>.</span><span>x</span> <span>=</span> <span>center</span><span>.</span><span>x</span> <span>+</span> <span>offset</span><span>;</span></div>
<div id="LC177">                <span>animation</span><span>.</span><span>addNode</span><span>(</span><span>textNode</span><span>.</span><span>animatePosition</span><span>(</span><span>from</span><span>,</span><span>to</span><span>,</span><span>70</span><span>));</span></div>
<div id="LC179">                <span>from</span><span>.</span><span>set</span><span>(</span><span>to</span><span>);</span></div>
<div id="LC180">                <span>to</span><span>.</span><span>x</span> <span>=</span> <span>center</span><span>.</span><span>x</span> <span>-</span> <span>offset</span><span>;</span></div>
<div id="LC181">                <span>animation</span><span>.</span><span>addNode</span><span>(</span><span>textNode</span><span>.</span><span>animatePosition</span><span>(</span><span>from</span><span>,</span><span>to</span><span>,</span><span>70</span><span>));</span></div>
<div id="LC183">                <span>from</span><span>.</span><span>set</span><span>(</span><span>to</span><span>);</span></div>
<div id="LC184">                <span>to</span><span>.</span><span>x</span> <span>=</span> <span>center</span><span>.</span><span>x</span> <span>+</span> <span>offset</span><span>;</span></div>
<div id="LC185">                <span>animation</span><span>.</span><span>addNode</span><span>(</span><span>textNode</span><span>.</span><span>animatePosition</span><span>(</span><span>from</span><span>,</span><span>to</span><span>,</span><span>70</span><span>));</span></div>
</pre>
<p>xI hope to be working on a couple of actual games using Chum in the near future &#8212; a 2D game called &#8216;<a href="http://www.mismagame.com/">Misma</a>&#8216; ported from the iPhone, and a simple 3D action game along the lines of &#8216;<a href="http://www.androlib.com/android.application.com-escmobile-cube_race_demo-EAp.aspx">3D Cube Race</a>&#8216;,  but with a lot more to it.  And I&#8217;ll be at <a href="http://code.google.com/events/io/2010/">Google I/O</a> in a couple of weeks, and would be more than happy to talk about Chum, game engines, games in general, or whatever&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://crazyheadgames.com/2010/05/10/chum-now-on-github/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

