<?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 5, iPad SDK Development Tutorial and Programming Tips &#187; Tag: 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, 04 Feb 2012 14:30:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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[
<div class="twitterbutton" style="float: right; padding-left: 5px;"><a href="http://twitter.com/share?url=http://maniacdev.com/2009/07/source-code-particle-based-explosions-in-iphone-opengl-es/&amp;text=Source Code: Particle Based Explosions In iPhone OpenGL ES&amp;via=maniacdev&amp;related=DolcePixel"><img align="right" src="http://maniacdev.com/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
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[
<div class="twitterbutton" style="float: right; padding-left: 5px;"><a href="http://twitter.com/share?url=http://maniacdev.com/2009/07/source-code-particle-based-explosions-in-iphone-opengl-es/&amp;text=Source Code: Particle Based Explosions In iPhone OpenGL ES&amp;via=maniacdev&amp;related=DolcePixel"><img align="right" src="http://maniacdev.com/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
<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>
<!--YouTube Error: bad URL entered-->
<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;2012 <a href="http://maniacdev.com">iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips</a>. All Rights Reserved.</p>.<div class="prli-social-buttons-bar"><a href="http://del.icio.us/post?url=http%3A%2F%2Fmaniacdev.com%2Fb8b&title=Source+Code%3A+Particle+Based+Explosions+In+iPhone+OpenGL+ES" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/delicious_32.png" alt="Delicious" title="Delicious" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://twitter.com/home?status=RT+%40maniacdev%3A+Source+Code%3A+Particle+Based+Explosions+In+iPhone+OpenGL+ES+http%3A%2F%2Fmaniacdev.com%2Fb8b" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/twitter_32.png" alt="Twitter" title="Twitter" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://technorati.com/faves?add=http%3A%2F%2Fmaniacdev.com%2Fb8b" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/technorati_32.png" alt="Technorati" title="Technorati" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmaniacdev.com%2Fb8b&t=Source+Code%3A+Particle+Based+Explosions+In+iPhone+OpenGL+ES" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/facebook_32.png" alt="Facebook" title="Facebook" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fmaniacdev.com%2Fb8b&title=Source+Code%3A+Particle+Based+Explosions+In+iPhone+OpenGL+ES" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/linkedin_32.png" alt="LinkedIn" title="LinkedIn" border="0" style="padding: 0 20px 0 0;" /></a><a href="mailto:?subject=Source Code: Particle Based Explosions In iPhone OpenGL ES&body=Source Code: Particle Based Explosions In iPhone OpenGL ES%20http%3A%2F%2Fmaniacdev.com%2Fb8b" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/email_32.png" alt="Email" title="Email" border="0" style="padding: 0 20px 0 0;" /></a></div>
	Tags: <a href="http://maniacdev.com/tag/3gs/" title="3gs" rel="tag" rel="nofollow">3gs</a>, <a href="http://maniacdev.com/tag/itouch/" title="itouch" rel="tag" rel="nofollow">itouch</a>, <a href="http://maniacdev.com/tag/apple/" title="apple" rel="tag" rel="nofollow">apple</a>, <a href="http://maniacdev.com/tag/development/" title="development" rel="tag" rel="nofollow">development</a>, <a href="http://maniacdev.com/tag/3g/" title="3g" rel="tag" rel="nofollow">3g</a>, <a href="http://maniacdev.com/tag/iphone/" title="iPhone" rel="tag" rel="nofollow">iPhone</a>, <a href="http://maniacdev.com/tag/opengl-es/" title="opengl es" rel="tag" rel="nofollow">opengl es</a>, <a href="http://maniacdev.com/tag/source-code/" title="source code" rel="tag" rel="nofollow">source code</a>, <a href="http://maniacdev.com/tag/particles/" title="particles" rel="tag" rel="nofollow">particles</a>, <a href="http://maniacdev.com/tag/particle-generator/" title="particle generator" rel="tag" rel="nofollow">particle generator</a><br />
]]></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>

