<?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>karmatoad</title>
	<atom:link href="http://www.karmatoad.co.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.karmatoad.co.uk</link>
	<description>IOS Developer</description>
	<lastBuildDate>Wed, 07 Dec 2011 21:50:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Xmas Kong?</title>
		<link>http://www.karmatoad.co.uk/?p=229</link>
		<comments>http://www.karmatoad.co.uk/?p=229#comments</comments>
		<pubDate>Wed, 07 Dec 2011 21:48:30 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=229</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.karmatoad.co.uk/wp-content/uploads/2011/12/Screen-Shot-2011-12-07-at-21.44.51.png"><img src="http://www.karmatoad.co.uk/wp-content/uploads/2011/12/Screen-Shot-2011-12-07-at-21.44.51.png" alt="" title="Screen Shot 2011-12-07 at 21.44.51" width="396" height="744" class="aligncenter size-full wp-image-223" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=229</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Stay hungry, stay foolish, don&#8217;t settle.</title>
		<link>http://www.karmatoad.co.uk/?p=217</link>
		<comments>http://www.karmatoad.co.uk/?p=217#comments</comments>
		<pubDate>Sun, 09 Oct 2011 21:07:05 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=217</guid>
		<description><![CDATA[Lessons in life. RIP Steve Jobs.]]></description>
				<content:encoded><![CDATA[<p>Lessons in life.</p>
<p><iframe width="584" height="438" src="http://www.youtube.com/embed/UF8uR6Z6KLc?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>RIP Steve Jobs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=217</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IOS, Box2D and OpenGL.</title>
		<link>http://www.karmatoad.co.uk/?p=183</link>
		<comments>http://www.karmatoad.co.uk/?p=183#comments</comments>
		<pubDate>Sat, 26 Feb 2011 12:54:19 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[GameDev]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=183</guid>
		<description><![CDATA[Looking through the top selling IOS apps (well, the games section), it seems like having realistic physics is the place to be. (Angry Birds of course, but also others like Cover Orange, Cut The Rope, and the new number one &#8230; <a href="http://www.karmatoad.co.uk/?p=183">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Looking through the top selling IOS apps (well, the games section), it seems like having realistic physics is the place to be. (Angry Birds of course, but also others like Cover Orange, Cut The Rope, and the new number one app Tiny Wings).</p>
<p>Tiny Wings (excellent by the way) credits Box2D on one of it&#8217;s screens &#8211; this got me thinking how easy it would be to get something up and running that uses the <a href="http://www.box2d.org/">Box2D</a> library.</p>
<p>There&#8217;s a lot of stuff out there regarding Box2D on IOS, but most of it is related to cocos2d, and that&#8217;s not really my thing. Fortunately for me, I found an excellent blog post on <a href="http://www.cocoanetics.com/2010/05/physics-101-uikit-app-with-box2d-for-gravity/">Cocoanetics</a> which walks you through how to quickly get Box2D working in a simple app.</p>
<p>My code is based largely on their excellent work (and of course the equally impressive Box2D library itself) &#8211; the changes I&#8217;ve made are purely to get something working using Open GL.</p>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.karmatoad.co.uk/wp-content/uploads/2011/02/Box2D-OpenGL.png"><img class="size-medium wp-image-188 " title="Box2D OpenGL" src="http://www.karmatoad.co.uk/wp-content/uploads/2011/02/Box2D-OpenGL-300x159.png" alt="" width="300" height="159" /></a><p class="wp-caption-text">A big pile of blocks...</p></div>
<p>The code here generates a universal app (ipad or iphone/ipod touch). All the blocks are generated at random (size, colour, linear and angular velocity). Touching the screen restarts the process (or waiting for the blocks to all stop moving&#8230;). </p>
<p>Change the MAX_RECTS define in the ViewController.h file to change how many blocks are generated &#8211; size and colour info is done in Rectangle.m. Here&#8217;s the project:</p>
<p><a href="http://www.karmatoad.co.uk/wp-content/uploads/2011/02/nibfree.zip">nibfree</a></p>
<p>Side note &#8211; the project is called nibfree as I was originally trying to get a universal opengl app working with no nib file (done!).</p>
<p>I&#8217;m not sure why, but it&#8217;s quite mesmerising watching how the blocks fall.</p>
<p>Big thanks to the <a href="http://www.cocoanetics.com/2010/05/physics-101-uikit-app-with-box2d-for-gravity/">Cocoanetics</a> guys for their original blog.</p>
<p>As usual, any feedback at all is welcomed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=183</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Starquake on iPhone</title>
		<link>http://www.karmatoad.co.uk/?p=171</link>
		<comments>http://www.karmatoad.co.uk/?p=171#comments</comments>
		<pubDate>Thu, 30 Dec 2010 13:56:49 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=171</guid>
		<description><![CDATA[Sample video:]]></description>
				<content:encoded><![CDATA[<div id="attachment_170" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.karmatoad.co.uk/wp-content/uploads/2010/12/Screen-shot-2010-12-30-at-13.47.56.png"><img class="size-medium wp-image-170" title="Starquake on iPhone" src="http://www.karmatoad.co.uk/wp-content/uploads/2010/12/Screen-shot-2010-12-30-at-13.47.56-300x159.png" alt="Starquake on iPhone" width="300" height="159" /></a><p class="wp-caption-text">Starquake on iPhone</p></div>
<p>Sample video:</p>
<p><iframe width="584" height="438" src="http://www.youtube.com/embed/2VL4dqoNrYE?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=171</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8230;with buttons on&#8230;</title>
		<link>http://www.karmatoad.co.uk/?p=164</link>
		<comments>http://www.karmatoad.co.uk/?p=164#comments</comments>
		<pubDate>Fri, 19 Nov 2010 09:46:42 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=164</guid>
		<description><![CDATA[Thanks to Nay for doing some buttons. There&#8217;s a selection of buttons in the Graphics folder to have a look at (code changes in player.m and button.m, plus a few other nips and tucks here and there). I&#8217;ve left the &#8230; <a href="http://www.karmatoad.co.uk/?p=164">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Thanks to Nay for doing some buttons. There&#8217;s a selection of buttons in the Graphics folder to have a look at (code changes in player.m and button.m, plus a few other nips and tucks here and there).</p>
<p>I&#8217;ve left the old alpha buttons on too &#8211; you can comment these out in the button.m class (draw method).</p>
<div id="attachment_163" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.karmatoad.co.uk/wp-content/uploads/2010/11/iSpacies2-with-buttons.png"><img class="size-medium wp-image-163" title="iSpacies2 with buttons" src="http://www.karmatoad.co.uk/wp-content/uploads/2010/11/iSpacies2-with-buttons-300x161.png" alt="iSpacies2 with buttons" width="300" height="161" /></a><p class="wp-caption-text">iSpacies2 with buttons</p></div>
<p>Here&#8217;s the updated project:</p>
<p>(project removed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=164</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Back in the saddle again &#8211; iSpacies2</title>
		<link>http://www.karmatoad.co.uk/?p=149</link>
		<comments>http://www.karmatoad.co.uk/?p=149#comments</comments>
		<pubDate>Tue, 02 Nov 2010 11:08:43 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[GameDev]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=149</guid>
		<description><![CDATA[Blimey, almost 8 months since my last post. I&#8217;ve finally got back on to doing some iPhone coding &#8211; spending some time away from this and coming back, it felt like I&#8217;d forgotten a lot of stuff. After checking my &#8230; <a href="http://www.karmatoad.co.uk/?p=149">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Blimey, almost 8 months since my last post.</p>
<p>I&#8217;ve finally got back on to doing some iPhone coding &#8211; spending some time away from this and coming back, it felt like I&#8217;d forgotten a lot of stuff. After checking my old projects (iSpacies, Ant Attack) it appeared that maybe I didn&#8217;t know as much as I&#8217;d thought&#8230;</p>
<p>So, with that in mind, I decided to do iSpacies from scratch, giving myself only a couple of weeks, and to focus on what I didn&#8217;t like last time.</p>
<p>Here&#8217;s what&#8217;s better than before:</p>
<ul>
<li>The graphics (same sprites, but a nicer background with a parallax starfield)</li>
<li>The sound (it&#8217;s got some)</li>
<li>The code (much more object based this time)</li>
<li>Collision code on the bases (much improved)</li>
</ul>
<div id="attachment_148" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.karmatoad.co.uk/wp-content/uploads/2010/11/iSpacies2.png"><img class="size-medium wp-image-148" title="iSpacies2" src="http://www.karmatoad.co.uk/wp-content/uploads/2010/11/iSpacies2-300x161.png" alt="iSpacies2" width="300" height="161" /></a><p class="wp-caption-text">iSpacies2 in action</p></div>
<p>When I started this I wasn&#8217;t sure that revisiting an old project was going to be beneficial &#8211; but now I&#8217;ve done it, I&#8217;d recommend it to anyone. I&#8217;m much happier with the way this one has turned out, and it&#8217;s giving me some momentum to carry on with new stuff.</p>
<p>Left box controls left/right movement, right box to fire (anybody got any nice button graphics I can use?)</p>
<p>Here&#8217;s the project, would really appreciate some feedback on this (good or bad):</p>
<p>(project removed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=149</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>There are ants lol</title>
		<link>http://www.karmatoad.co.uk/?p=127</link>
		<comments>http://www.karmatoad.co.uk/?p=127#comments</comments>
		<pubDate>Wed, 10 Mar 2010 09:57:33 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[GameDev]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=127</guid>
		<description><![CDATA[Following my last update, and fortunately for me (and the project), someone has come forward to help out with the graphics &#8211; Colin Wren is his name (see his site here), and he&#8217;s a top man. The graphics Colin supplies &#8230; <a href="http://www.karmatoad.co.uk/?p=127">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Following my last update, and fortunately for me (and the project), someone has come forward to help out with the graphics &#8211; Colin Wren is his name (see his site <a href="http://www.colinwren.com">here</a>), and he&#8217;s a top man.</p>
<p>The graphics Colin supplies are in .dae format, and with a lot of help from this site (<a href="http://www.everita.com/lightwave-collada-and-opengles-on-the-iphone">Tipu&#8217;s iTiger</a>) and an XML parser (<a href="http://www.tbxml.co.uk/">TBXML</a>), and much head scratching, we got the models going nicely.</p>
<p>At the moment they&#8217;re not animated, but they will be soon&#8230;</p>
<p><a href="http://www.karmatoad.co.uk/wp-content/uploads/2010/03/Screen-shot-2010-03-10-at-08.53.44.png"><img class="aligncenter size-medium wp-image-131" title="Female model amongst the ants" src="http://www.karmatoad.co.uk/wp-content/uploads/2010/03/Screen-shot-2010-03-10-at-08.53.44-300x161.png" alt="" width="300" height="161" /></a></p>
<p>Other things now in there are bombs and collisions. To aid testing on the simulator I&#8217;ve added an auto-jump feature on the player &#8211; a collision in the x or y plane makes him/her jump. This also works quite nicely when testing on hardware so I may keep it (maybe as an option). I&#8217;ve also updated to the latest version of the <a href="http://www.71squared.com/">71Squared</a> Sound Manager.</p>
<p>The button top left flicks between the male and female model &#8211; other controls as before (bomb button now works of course).</p>
<p><a href="http://www.karmatoad.co.uk/wp-content/uploads/2010/03/Screen-shot-2010-03-10-at-08.56.45.png"><img class="aligncenter size-medium wp-image-132" title="Male model exploring the city" src="http://www.karmatoad.co.uk/wp-content/uploads/2010/03/Screen-shot-2010-03-10-at-08.56.45-300x161.png" alt="" width="300" height="161" /></a></p>
<p>So, still plenty of things to be done, but slowly and surely it&#8217;s coming together.</p>
<p>Here&#8217;s the latest project folder:<br />
(removed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=127</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Happy New Year &#8211; Ant Attack project source</title>
		<link>http://www.karmatoad.co.uk/?p=118</link>
		<comments>http://www.karmatoad.co.uk/?p=118#comments</comments>
		<pubDate>Fri, 01 Jan 2010 14:45:07 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[GameDev]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=118</guid>
		<description><![CDATA[Here&#8217;s the latest version of the Ant Attack project &#8211; I&#8217;ve not had much time to spend on this over the last month or so, so I&#8217;ve decided to release it as is (unfinished of course). The map data used &#8230; <a href="http://www.karmatoad.co.uk/?p=118">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s the latest version of the Ant Attack project &#8211; I&#8217;ve not had much time to spend on this over the last month or so, so I&#8217;ve decided to release it as is (unfinished of course).</p>
<p>The map data used in here is ripped directly from the spectrum original &#8211; see this website for an explanation of how the data is stored:</p>
<p><a href="http://www.whimsy.demon.co.uk/antattack/">Hacking 3D Ant Attack</a></p>
<p>Inside the map class I read in this data and parse it into discrete blocks (total of 2650 of them) and then render the ones closest to the current camera position &#8211; this system isn&#8217;t great by any means, but does provide a simple enough algorithm and reasonable frame rate. (Would appreciate it if someone could test this on a 3GS device and let me know the frame rates achieved).</p>
<p>At the moment, the &#8216;ants&#8217; in the map just  run around at random, colliding with the map and making occasional direction changes.</p>
<p>The large button on the left is used to move, right button to jump &#8211; the button next to it currently does nothing (other than stop the jump sound playing). The red buttons allow zooming in and out &#8211; if you touch the middle of the screen (where your player block is) you can change the camera angle&#8230;</p>
<p>The sound code is basically taken from the <a href="http://www.71squared.com">71Squared</a> guys, the glu functions were found on <a href="http://iphonedevelopment.blogspot.com/">Iphone Development</a> (amongst others).</p>
<p>All opinions / comments / questions are welcomed&#8230;</p>
<p>(project removed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=118</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Moving into the 3rd dimension</title>
		<link>http://www.karmatoad.co.uk/?p=92</link>
		<comments>http://www.karmatoad.co.uk/?p=92#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:07:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[GameDev]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=92</guid>
		<description><![CDATA[I&#8217;ve spent the last couple of months playing around with things in 3d (OpenGL) on the iPhone. I find it easier to stick with and learn something if there&#8217;s a definite end goal, and so after thinking about it for &#8230; <a href="http://www.karmatoad.co.uk/?p=92">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve spent the last couple of months playing around with things in 3d (OpenGL) on the iPhone. I find it easier to stick with and learn something if there&#8217;s a definite end goal, and so after thinking about it for a while, I decided to do a version of the classic ZX Spectrum game 3d Ant Attack by Sandy White (see his page here: <a href="http://www.sandywhite.co.uk/fun/ants">Sandy Whites Ant Attack page</a>).</p>
<p>The main difference between the original and this one is that my version will be &#8216;proper&#8217; 3d, compared to the isometric original (not to disrespect that version, it&#8217;s an absolute classic). This also means we can get nice things happening, like zooming and panning the camera, lights, textures and other bits and pieces.</p>
<p>Here&#8217;s a screenshot of how it&#8217;s coming along &#8211; all graphics (quite clearly) are programmer art. Hopefully I can find someone to help me out with something a little bit prettier.</p>
<div id="attachment_91" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.karmatoad.co.uk/wp-content/uploads/2009/12/Screen-shot-2009-12-07-at-20.29.20.png"><img class="size-large wp-image-91  " title="iPhone ant attack 3d" src="http://www.karmatoad.co.uk/wp-content/uploads/2009/12/Screen-shot-2009-12-07-at-20.29.20-300x161.png" alt="Graphic artist needed!" width="300" height="161" /></a><p class="wp-caption-text">Graphic artist needed! Click to zoom.</p></div>
<p>The green squares overlaid are the control buttons (left big box for movement, right smaller box for jump). I&#8217;m finding the hardest thing to get right is the control method on the iPhone, and am still not happy with how I&#8217;ve got it at the moment. The small brightly coloured cube is your player (I did mention it was programmer art).</p>
<p>So far I&#8217;ve got the map in, along with a camera system allowing zooming and switching angles. You can move the player box, jumping and general map collision are working well. I&#8217;ve also got 5 ants (well, brightly coloured boxes) running around and colliding with the walls. Current frame rate (on a 1st gen iPod touch) is between 40 and 60fps.</p>
<p>Still to be done then, in no particular order:</p>
<p>A.I. for the ants</p>
<p>People to rescue</p>
<p>Sound</p>
<p>Better graphics (any volunteers?)</p>
<p>Lighting</p>
<p>User interface tweaks</p>
<p>Bombs</p>
<p>Menu screens</p>
<p>Sounds like a lot of stuff, but after getting all the 3d stuff going I&#8217;m hoping I&#8217;ve got the hard bits done&#8230;.source code will follow when it&#8217;s finished if anyone&#8217;s interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=92</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>iSpacies 1.1 &#8211; bugfixes and small changes.</title>
		<link>http://www.karmatoad.co.uk/?p=87</link>
		<comments>http://www.karmatoad.co.uk/?p=87#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:53:02 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.karmatoad.co.uk/?p=87</guid>
		<description><![CDATA[Just a quick update to the project to fix a few things and change bits and pieces. First up I&#8217;ve moved away from using an NSTimer update method, and gone to just spinning round the main loop. (Thanks once again &#8230; <a href="http://www.karmatoad.co.uk/?p=87">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Just a quick update to the project to fix a few things and change bits and pieces.</p>
<p>First up I&#8217;ve moved away from using an NSTimer update method, and gone to just spinning round the main loop. (Thanks once again to 71squared for that). One effect of doing this is that on the simulator it now runs almost too fast &#8211; on hardware it&#8217;s fine though. To be honest I&#8217;m not sure why &#8211; I&#8217;ve also made a few changes around using the timeDelta (time elapsed between cycles of the main loop) to help smooth things out a bit.</p>
<p>Other things fixed / changed:</p>
<p>The game now ends if the invaders land.</p>
<p>Improvements to the key controls &#8211; I&#8217;ve discovered you can get a hash value for a particular touch which makes the input logic work much nicer.</p>
<p>Fixed a bug whereby the number of bombs on level 2 and beyond decreased.</p>
<p>Changed it so that if you lock the iPhone/iTouch it doesn&#8217;t still run around the main loop / render.</p>
<p>Bit of a tidy up.</p>
<p>Here&#8217;s the latest project:  (removed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karmatoad.co.uk/?feed=rss2&#038;p=87</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
