<?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>Der Gleisarbeiter &#187; Spiele</title>
	<atom:link href="http://www.gleisarbeiter.de/category/spiele/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gleisarbeiter.de</link>
	<description></description>
	<lastBuildDate>Wed, 19 Oct 2011 14:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Developing an Android Mobile Game &#8211; Part 2</title>
		<link>http://www.gleisarbeiter.de/2009/06/24/developing-an-android-mobile-game-part-2/</link>
		<comments>http://www.gleisarbeiter.de/2009/06/24/developing-an-android-mobile-game-part-2/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 17:03:43 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Space Janitor]]></category>
		<category><![CDATA[Spiel]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=102</guid>
		<description><![CDATA[This is part 2 of my Android mobile game series. I want to develop a game just like my Widget game for the Vodafone Widget Runtime: Space Janitor. So, in the last part we created some parts of the UI the user sees when he starts the game. Today we want to create a small [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 2 of my Android mobile game series. I want to develop a game just like my Widget game for the Vodafone Widget Runtime: <a href="http://widget.vodafone.com/de/categories/14-entertainment/widgets/32-space-janitor">Space Janitor</a>.</p>
<p>So, in the last part we created some parts of the UI the user sees when he starts the game.</p>
<p>Today we want to create a small part of the real &#8220;Game View&#8221;!<br />
First, lets change the standard layout of the Android App. The layout file can be found in res/layout/main.xml.<br />
The standard is a simple LinearLayout with a TextView, that currently just displays &#8220;Hello&#8230;&#8221; when you start the game.<br />
Let&#8217;s remove this part and change it to:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FrameLayout</span> <span style="color: #000066;">xmlns:android</span>=<span style="color: #ff0000;">&quot;http://schemas.android.com/apk/res/android&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:orientation</span>=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;GameView</span></span>
<span style="color: #009900;">    	<span style="color: #000066;">android:id</span>=<span style="color: #ff0000;">&quot;@+id/game&quot;</span></span>
<span style="color: #009900;">    	<span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">    	<span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;RelativeLayout</span></span>
<span style="color: #009900;">	<span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TextView</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:id</span>=<span style="color: #ff0000;">&quot;@+id/text&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:text</span>=<span style="color: #ff0000;">&quot;@string/space_janitor_info_text&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:visibility</span>=<span style="color: #ff0000;">&quot;visible&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:layout_centerInParent</span>=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:gravity</span>=<span style="color: #ff0000;">&quot;center_horizontal&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:textColor</span>=<span style="color: #ff0000;">&quot;#88ffffff&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">android:textSize</span>=<span style="color: #ff0000;">&quot;24sp&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/RelativeLayout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/FrameLayout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>First, we define a Game View that we can use later on to hold the game graphics. Second we defined a RelativeLayout that holds a TextView, we need this to display some infos later on.</p>
<p>Now let&#8217;s extend the code to use this views.</p>
<p>Create a new class called GameView in your App. The GameView extends SurfaceView and has to implement the SufaceHolder.Callback interface. Add the yet unimplemented methods and a constructor to fulfill the interface&#8217;s requirements.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> GameView <span style="color: #000000; font-weight: bold;">extends</span> SurfaceView <span style="color: #000000; font-weight: bold;">implements</span> SurfaceHolder.<span style="color: #006633;">Callback</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> GameView<span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span> context, <span style="color: #003399;">AttributeSet</span> attrs<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>context, attrs<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated constructor stub</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> surfaceChanged<span style="color: #009900;">&#40;</span>SurfaceHolder holder, <span style="color: #000066; font-weight: bold;">int</span> format, <span style="color: #000066; font-weight: bold;">int</span> width,
			<span style="color: #000066; font-weight: bold;">int</span> height<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> surfaceCreated<span style="color: #009900;">&#40;</span>SurfaceHolder holder<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> surfaceDestroyed<span style="color: #009900;">&#40;</span>SurfaceHolder holder<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The SurfaceView is designated to hold the game graphics. Via the SurfaceHolder.Callback we are informed about dimension changes, i.e. when the user switches to landscape mode.</p>
<p>In the Main View we now have to code a connection to the Game View, we&#8217;ll do this via an instance variable of GameView. Add a variable of the type &#8220;GameView&#8221; to your Activity.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SpaceJanitor <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> MENU_START <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> GameView myGameView<span style="color: #339933;">;</span>
        ...
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>In our &#8220;onCreate&#8221;-method we have to initialize this variable and we would like to give the GameView the ability to display some info in the TextView we recently defined in our layout file, like &#8220;Game Over&#8221;, etc. So:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   requestWindowFeature<span style="color: #009900;">&#40;</span><span style="color: #003399;">Window</span>.<span style="color: #006633;">FEATURE_NO_TITLE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   myGameView <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>GameView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">game</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   myGameView.<span style="color: #006633;">setTextView</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This implies that we have to add a method &#8220;setTextView&#8221; in the GameView class to save a reference on this TextView locally.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setTextView<span style="color: #009900;">&#40;</span>TextView findViewById<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub	</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>In the next part we will add a thread to handle graphic updates, user actions, etc. etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2009/06/24/developing-an-android-mobile-game-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Developing an Android mobile game &#8211; Part 1</title>
		<link>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-1/</link>
		<comments>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-1/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 12:20:19 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=94</guid>
		<description><![CDATA[Game development tutorial on Android &#8211; Part 1 First I have to say that I am using Eclipse and the Android plugin to program, because it really minifies the work needed. If your using another IDE you have to change some of the steps according to your IDE&#8217;s workflow, but the code stays the same. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Game development tutorial on Android &#8211; Part 1</strong></p>
<p>First I have to say that I am using Eclipse and the Android plugin to program, because it really minifies the work needed. If your using another IDE you have to change some of the steps according to your IDE&#8217;s workflow, but the code stays the same.</p>
<p>I decided that my game should have a welcome screen and an options menu to start the game (or later when playing to pause or stop the game). That is easily done with Android.<br />
First lets create a new project in Android, name it what you like, I chose &#8220;Space Janitor&#8221; (I assume that you already now how to create new Android project, otherwise refer to one of the many tutorials).</p>
<p><span id="more-94"></span><br />
You will then see something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">de.rakery.android.spacejanitor.part1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SpaceJanitor <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
    <span style="color: #008000; font-style: italic; font-weight: bold;">/** Called when the activity is first created. */</span>
    @Override
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>We want to use the full screen for our game and don&#8217;t need the window title, so add the following to the onCreate Method:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">requestWindowFeature<span style="color: #009900;">&#40;</span><span style="color: #003399;">Window</span>.<span style="color: #006633;">FEATURE_NO_TITLE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Press Cmd-Shift-O in Eclipse (sorry, only have a Mac, don&#8217;t know which keys on Win/Linux) to automatically import the needed dependencies (here android.view.Window).</p>
<p>Next, lets create the Options Menu to start the game.<br />
We don&#8217;t want to keep the Text-Strings in our code, so lets move them to the XML file in res/values/strings.xml.<br />
When using Eclipse you will be presented with the following screen after double-clicking the file:</p>
<p><img src="http://www.gleisarbeiter.de/wp-content/uploads/2009/06/strings-in-eclipse.png" alt="Editing Strings in Eclipse" /></p>
<p>So, now you can easily add a new string key-value pair. Add a key &#8220;MENU_FIRST&#8221; and as value &#8220;Start new game&#8221; to the strings.xml.<br />
We will later add more menu items, but this one is enough for now.</p>
<p>So how do we add this String as a Menu item to the options menu?<br />
On Android when an activity starts a method onCreateOptionsMenu is called automatically at some points. So we can override the normal method of the class Activity and add our own onCreateOptionsMenu-method.<br />
Lets do this by adding the following right under the onCreate Method</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> onCreateOptionsMenu<span style="color: #009900;">&#40;</span><span style="color: #003399;">Menu</span> menu<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreateOptionsMenu</span><span style="color: #009900;">&#40;</span>menu<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        menu.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, MENU_START, <span style="color: #cc66cc;">0</span>, R.<span style="color: #006633;">string</span>.<span style="color: #006633;">MENU_FIRST</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The add-Method takes 4 arguments: the groupId, the itemId, the order, and a title.<br />
As you can see, we set the title by reading R.string.MENU_FIRST (the key we used for the text-string).<br />
I also defined a</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> MENU_START <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></pre></div></div>

<p>for my activity, that is now set as the menu itemId, which can later be used to identify user clicks on a menu item.<br />
I&#8217;ve set the group ID to 0 because currently there is only one group with the ID zero, and I want to order the items in the order I add them to the menu, so I can set order to 0. If you would like to order in a different way you would have to set the order explicitly.</p>
<p>Now we also want to react on user clicks on a menu item. Once again we override a method defined in Activity called onOptionsItemsSelect:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> onOptionsItemsSelect<span style="color: #009900;">&#40;</span><span style="color: #003399;">MenuItem</span> item<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">switch</span> <span style="color: #009900;">&#40;</span>item.<span style="color: #006633;">getItemId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	   	<span style="color: #666666; font-style: italic;">// do something with the clicks</span>
	   	<span style="color: #000000; font-weight: bold;">case</span> MENU_START<span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// TODO: Define what to do on click</span>
	 <span style="color: #009900;">&#125;</span>
	 <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Here we can make use of the constant MENU_START we defined to compare it to the itemID.</p>
<p>Start the emulator and you will see a black screen with a text &#8220;Hello World, Space Janitor&#8221;. When clicking on the options button, the menu will show up and display the Menuitem &#8220;Start new game&#8221;.</p>
<p>So, this was part one of the game development on Android tutorial, not much game development here, but we have to start somewhere <img src='http://www.gleisarbeiter.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Developing an Android mobile game &#8211; Introduction</title>
		<link>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-introduction/</link>
		<comments>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-introduction/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 10:51:24 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=91</guid>
		<description><![CDATA[I am currently learning more on Android development and for me the best way to learn something new is to try it out by myself. It&#8217;s the same when I learn new ways of programming: reading books and tutorials is fine, but when I try to build my own apps I learn even more. So [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently learning more on Android development and for me the best way to learn something new is to try it out by myself. It&#8217;s the same when I learn new ways of programming: reading books and tutorials is fine, but when I try to build my own apps I learn even more.</p>
<p>So I decided to write a simple game for the Android platform, not that there aren&#8217;t already enough games in the Android Market, more because in the last weeks I mostly concentrated on developing games for the Vodafone mobile widget runtime. I made a game called &#8220;Space Janitor&#8221;, which I now want to port to the Android platform. I would like to extend the game at some points, i.e. making use of the device accelerometer sensors to move the spaceship to the left or to the right, or vibrating the mobile when being hit by an asteroid. That would be real fun.</p>
<p>Another good way to learn is to try to explain the things one learned to others. That was a great way to learn during my university time, because the professors always wanted to have something explained <img src='http://www.gleisarbeiter.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  So if one already explained the learned things to others, it was no problem to explain it again to the professor. I now decided to keep track of my development by writing some blog posts about how to develop the game, thus explaing it to others. But I would also very much appreciate your comments on how to improve the quality and the speed of my code as I would call myself just a novice in Android programming. Maybe you&#8217;ve also got some more tipps for game improvement, game handling, gameplay, etc.</p>
<p>I will somewhat unregularly post new entries in my blog, so keep in touch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2009/06/01/developing-an-android-mobile-game-part-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Space Janitor ist &#8220;App of the Week&#8221; bei Vodafone Italy</title>
		<link>http://www.gleisarbeiter.de/2009/05/06/space-janitor-ist-app-of-the-week-bei-vodafone-italy/</link>
		<comments>http://www.gleisarbeiter.de/2009/05/06/space-janitor-ist-app-of-the-week-bei-vodafone-italy/#comments</comments>
		<pubDate>Thu, 07 May 2009 05:51:59 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Vodafone]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Italy]]></category>
		<category><![CDATA[Space Janitor]]></category>
		<category><![CDATA[Widget of the Week]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=83</guid>
		<description><![CDATA[Space Janitor ist zur App of the Week ausgesucht worden, momentan leider &#8220;nur&#8221; in Italien Mal schauen wann es in Deutschland zu haben ist.]]></description>
			<content:encoded><![CDATA[<p>Space Janitor ist zur App of the Week ausgesucht worden, <a href="http://widget.vodafone.com/it">momentan leider &#8220;nur&#8221; in Italien</a> <img src='http://www.gleisarbeiter.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Mal schauen wann es in Deutschland zu haben ist.</p>
<div id="attachment_87" class="wp-caption alignnone" style="width: 310px"><a href="http://widget.vodafone.com/it><img class="size-medium wp-image-87" title="appoftheweek" src="http://www.gleisarbeiter.de/wp-content/uploads/2009/05/appoftheweek-300x237.jpg" alt="App of the Week" width="300" height="237" /></a><p class="wp-caption-text">App of the Week</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2009/05/06/space-janitor-ist-app-of-the-week-bei-vodafone-italy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Space Janitor &#8211; Mobile Widget Game</title>
		<link>http://www.gleisarbeiter.de/2009/04/27/space-janitor-mobile-widget-game/</link>
		<comments>http://www.gleisarbeiter.de/2009/04/27/space-janitor-mobile-widget-game/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:57:30 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Vodafone]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Spiel]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=79</guid>
		<description><![CDATA[Heute wurde mein erstes Spiel für die Vodafone Mobile Widget Runtime vom Vodafone-Team freigeschaltet. Hoffentlich ist es dann auch bald auf den deutschen Vodafone-Widget Seiten zu finden, bis dahin kann man es unter diesem Link direkt herunterladen und aufs Handy, z.B. per Bluetooth, laden. Mit einem Klick auf die übertragene Datei wird dann der Widget [...]]]></description>
			<content:encoded><![CDATA[<p>Heute wurde mein erstes Spiel für die Vodafone Mobile Widget Runtime vom Vodafone-Team freigeschaltet. Hoffentlich ist es dann auch bald auf den deutschen Vodafone-Widget Seiten zu finden, bis dahin kann man es unter <a href="http://widget.vodafone.com/dev/widgets/space_janitor_103" target="_blank">diesem Link direkt herunterladen</a> und aufs Handy, z.B. per Bluetooth, laden.</p>
<p>Mit einem Klick auf die übertragene Datei wird dann der Widget Manager von Vodafone (falls noch nicht auf dem Handy, dann <a href="http://widget.vodafone.com/de/manager" target="_blank">hier runterladen</a>) und das Spiel gestartet.</p>
<p>Geflogen wird mit den Tasten 2, 4, 6 und 8 für vorne, links, rechts und runter, und das Ziel des Spieles ist möglichst viele Satelliten einzusammeln ohne von den Asteroiden getroffen zu werden.</p>
<p>Viel Spaß beim Müllsammeln!</p>
<p><strong>Update:</strong><br />
11.06.09: Habe soeben erfahren, dass Space Janitor schon 460mal von der Vodafone Plattform heruntergeladen wurde. Wer&#8217;s jetzt noch nicht hat, sofort holen!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2009/04/27/space-janitor-mobile-widget-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Das kleine Völkchen der &#8220;Programmierer&#8221;</title>
		<link>http://www.gleisarbeiter.de/2007/04/25/das-kleine-volkchen-der-programmierer/</link>
		<comments>http://www.gleisarbeiter.de/2007/04/25/das-kleine-volkchen-der-programmierer/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 10:03:34 +0000</pubDate>
		<dc:creator>gleisarbeiter</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Spiele]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://www.gleisarbeiter.de/?p=12</guid>
		<description><![CDATA[Programmierer waren schon immer ein lustiges Völkchen. Besonders deutlich wird dies an dem kleinen Spielchen zu Sun&#8217;s neuem &#8220;Sun Studio&#8221;, hier zu finden http://howmachineswork.com/sun/templeofthesun/?source=wom. Ganz in Indiana Jones-Manier müssen hier verschiedene Aufgaben erledigt werden, um das &#8220;Sun Studio&#8221; zu finden. Ein Blick lohnt sich auf jeden Fall! Viel Spaß beim Zocken!]]></description>
			<content:encoded><![CDATA[<p>Programmierer waren schon immer ein lustiges Völkchen. Besonders deutlich wird dies an dem kleinen Spielchen zu Sun&#8217;s neuem &#8220;Sun Studio&#8221;, hier zu finden <a href="http://howmachineswork.com/sun/templeofthesun/?source=wom">http://howmachineswork.com/sun/templeofthesun/?source=wom</a>.<br />
Ganz in Indiana Jones-Manier müssen hier verschiedene Aufgaben erledigt werden, um das &#8220;Sun Studio&#8221; zu finden. Ein Blick lohnt sich auf jeden Fall!</p>
<p>Viel Spaß beim Zocken!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gleisarbeiter.de/2007/04/25/das-kleine-volkchen-der-programmierer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

