<?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>iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News &#187; particle generator</title>
	<atom:link href="http://maniacdev.com/tag/particle-generator/feed/" rel="self" type="application/rss+xml" />
	<link>http://maniacdev.com</link>
	<description>ManiacDev.Com</description>
	<lastBuildDate>Sat, 31 Jul 2010 07:43:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Source Code: Particle Based Explosions In iPhone OpenGL ES</title>
		<link>http://maniacdev.com/2009/07/source-code-particle-based-explosions-in-iphone-opengl-es/</link>
		<comments>http://maniacdev.com/2009/07/source-code-particle-based-explosions-in-iphone-opengl-es/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 09:03:19 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[iPhone SDK And iPad SDK]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[3gs]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[itouch]]></category>
		<category><![CDATA[opengl es]]></category>
		<category><![CDATA[particle generator]]></category>
		<category><![CDATA[particles]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://maniacdev.com/?p=399</guid>
		<description><![CDATA[Hi everybody, if you&#8217;ve been following me on twitter you may have seen my tweet about an open sourced iPhone version of Space Invaders.&#160; If you haven&#8217;t seen it yet, it&#8217;s a very concise implementation of the classic game, and also a very basic implementation, but I&#160;noticed something pretty cool while playing with it, and [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everybody, if you&#8217;ve been following me on twitter you may have seen my tweet about an <a target="_new" rel="nofollow" href="http://www.karmatoad.co.uk/?p=43">open sourced iPhone version of Space Invaders</a>.&nbsp;</p>
<p>If you haven&#8217;t seen it yet, it&#8217;s a very concise implementation of the classic game, and also a very basic implementation, but I&nbsp;noticed something pretty cool while playing with it, and that was the particle based explosions. So what I&nbsp;did was spend about 3 minutes playing with the code, and I&nbsp;came up with the demo shown here in this video.</p>
<p><object width="425" height="355" type="application/x-shockwave-flash" data="http://www.youtube.com/v/7JitKtbGTWU"><param name="movie" value="http://www.youtube.com/v/7JitKtbGTWU" />This video was embedded using the YouTuber plugin by <a href="http://www.roytanck.com">Roy Tanck</a>. Adobe Flash Player is required to view the video.</object></p>
<p>To create these explosions a Particle&nbsp;Emitter created by the guys at <a target="_new" rel="nofollow" href="http://71squared.co.uk">71 Squared</a> (makers of some great iPhone game development tutorials) along with a custom texture class.&nbsp;</p>
<p>To create the explosions a Particle Emitter is first created and initialized using the initParticleWithEmitter class, where you can specify parameters for the color, duration, size, number of particles, and gravity of the resulting display of particles (an example of this is in the EaglView.m file).</p>
<p>To display the particles a time index is created, and the update: method is executed along with the renderparticles method.&nbsp; I won&#8217;t go into the details here as the ParticleEmitter classes are extremely well documented.</p>
<p>Download the source code for the explosion generator here:<br />
<a href="http://maniacdev.com/Explosions.zip">&gt;&gt;&gt;&nbsp;Explosion Generator Source &lt;&lt;&lt;</a></p>
<p>Have fun with the code.</p>
<p>&nbsp;</p>
<p>&copy;2010 <a href="http://maniacdev.com">iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News</a>. All Rights Reserved.</p>.
<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://maniacdev.com/feed/" title="RSS"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES%20-%20http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F" title="Twitter"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F&amp;t=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES" title="Facebook"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F&amp;title=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES" title="DZone"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F&amp;t=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES" title="HackerNews"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F&amp;title=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES&amp;notes=Hi%20everybody%2C%20if%20you%27ve%20been%20following%20me%20on%20twitter%20you%20may%20have%20seen%20my%20tweet%20about%20an%20open%20sourced%20iPhone%20version%20of%20Space%20Invaders.%26nbsp%3B%0D%0AIf%20you%20haven%27t%20seen%20it%20yet%2C%20it%27s%20a%20very%20concise%20implementation%20of%20the%20classic%20game%2C%20and%20also%20a%20very%20basic%20i" title="del.icio.us"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Source%20Code%3A%20Particle%20Based%20Explosions%20In%20iPhone%20OpenGL%20ES&amp;link=http%3A%2F%2Fmaniacdev.com%2F2009%2F07%2Fsource-code-particle-based-explosions-in-iphone-opengl-es%2F" title="FriendFeed"><img src="http://maniacdev.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://maniacdev.com/2009/07/source-code-particle-based-explosions-in-iphone-opengl-es/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
