<?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>Sapus Media &#187; cocos2d</title>
	<atom:link href="http://www.sapusmedia.com/category/cocos2d/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sapusmedia.com</link>
	<description>Professional tools for iOS game developers</description>
	<lastBuildDate>Sun, 15 Jan 2012 22:33:17 +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>Sapus Tongue Source Code v1.9.2 released</title>
		<link>http://www.sapusmedia.com/2010/02/sapus-tongue-source-code-v1-9-2-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sapus-tongue-source-code-v1-9-2-released</link>
		<comments>http://www.sapusmedia.com/2010/02/sapus-tongue-source-code-v1-9-2-released/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:23:41 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[Sapus Tongue]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.sapusmedia.com/?p=347</guid>
		<description><![CDATA[Sapus Tongue v1.9.2 source code has been released. Changes: Buttons: buttons are loaded using CCSpriteFrameCache (faster loading times, consumes less memory) BuyNode &#38; SelectCharNode: uses CCSpriteFrameCache &#38; SpriteSheet (faster loading times, consumes less memory, faster rendering times) SapusIntroNode: reuses Default.png instead of loading a new image GameNode: using better hash values for Chipmunk Uses cocso2d [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://3.bp.blogspot.com/_7Tp7oCOlWFE/Sb6-98GbBvI/AAAAAAAAPnM/EzCD3xJ2Glg/s1600-h/Icon.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5313894581658126066" src="http://3.bp.blogspot.com/_7Tp7oCOlWFE/Sb6-98GbBvI/AAAAAAAAPnM/EzCD3xJ2Glg/s200/Icon.png" border="0" alt="" /></a>Sapus Tongue v1.9.2 source code has been released.</p>
<p>Changes:</p>
<ul>
<li>Buttons: buttons are loaded using <em>CCSpriteFrameCache</em> (faster loading times, consumes less memory)</li>
<li><em>BuyNode</em> &amp; <em>SelectCharNode</em>: uses <em>CCSpriteFrameCache</em> &amp; <em>SpriteSheet</em> (faster loading times, consumes less memory, faster rendering times)</li>
<li>SapusIntroNode: reuses <em>Default.png</em> instead of loading a new image</li>
<li><em>GameNode</em>: using better hash values for Chipmunk</li>
<li>Uses cocso2d v0.99.0-rc + blend fix (SVN r1761)</li>
<li>Uses Chipmunk v5.1</li>
</ul>
<p>If you have bought the <a href="http://www.sapusmedia.com/sources">Premium</a> or <a href="http://www.sapusmedia.com/sources">Updates</a> source code package, you should have received an email with the download link. If you have not yet received it, please let me know and I&#8217;ll be happy to send it to you. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2010/02/sapus-tongue-source-code-v1-9-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joystick download</title>
		<link>http://www.sapusmedia.com/2010/01/joystick-download/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joystick-download</link>
		<comments>http://www.sapusmedia.com/2010/01/joystick-download/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 19:55:29 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[LevelSVG]]></category>

		<guid isPermaLink="false">http://www.sapusmedia.com/?p=342</guid>
		<description><![CDATA[LevelSVG is using a modified version of cocos2d&#8216;s Joystick implementation. The main differences are: It supports a Jump button It renders the Joystick (pad and button) This implementation is not yet committed in the cocos2d repository since it has some hardcoded values, and is focused on games that uses stick + button. The cococs2d&#8217;s version [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sapusmedia.com/blog/wp-content/uploads/2009/10/levelSVG-icon.png"><img class="alignleft size-full wp-image-191" title="levelSVG-icon" src="http://www.sapusmedia.com/blog/wp-content/uploads/2009/10/levelSVG-icon.png" alt="" width="47" height="47" /></a> <a href="http://www.sapusmedia.com/levelsvg">LevelSVG</a> is using a modified version of <a href="http://www.cocos2d-iphone.org">cocos2d</a>&#8216;s Joystick implementation.</p>
<p>The main differences are:</p>
<ul>
<li>It supports a Jump button</li>
<li>It renders the Joystick (pad and button)</li>
</ul>
<p>This implementation is not yet committed in the cocos2d repository since it has some hardcoded values, and is focused on games that uses stick + button. The cococs2d&#8217;s version is focused on dual stick games.</p>
<p>In case you are interested in it, you can download it from here: <a href="http://www.sapusmedia.com/blog/wp-content/uploads/2010/01/joystick-20100122.tar.gz">joystick-20100122.tar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2010/01/joystick-download/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LevelSVG map editor</title>
		<link>http://www.sapusmedia.com/2009/10/levelsvg-map-editor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=levelsvg-map-editor</link>
		<comments>http://www.sapusmedia.com/2009/10/levelsvg-map-editor/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 10:53:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[box2d]]></category>
		<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[LevelSVG]]></category>
		<category><![CDATA[physics engine]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=145</guid>
		<description><![CDATA[My second game will be a platform game. One of the most time-consuming tasks in developing platform games is creating good level maps. Therefore, I have put a lot of effort in trying to ease this task by creating an SVG parser that supports: Basic physics objects like: rect, circle, lines, bezier paths and nested [...]]]></description>
			<content:encoded><![CDATA[<div>My second game will be a platform game.</div>
<div>One of the most time-consuming tasks in developing platform games is creating good level maps. Therefore,<span style="background-color: #ffffff;"> I have put a lot of effort in trying to ease this task by creating an SVG parser that supports:</span></div>
<div>
<ul>
<li>Basic physics objects like: rect, circle, lines, bezier paths and nested transformations</li>
<li>The possibility to edit physics properties like: density, friction, restitution and isSensor</li>
<li>The possibility to link SVG elements with pre-defined physics objects and cocos2d sprites</li>
<li>Collision detection logic between these elements</li>
<li>Jump logic (the hero only jumps when touching the ground)</li>
<li>Movement logic (tilt, d-pad)</li>
</ul>
<div>Example video:</div>
</div>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/fUvqEh2tlCQ&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/fUvqEh2tlCQ&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<div>The source code of this level &#8220;editor&#8221; will be available for purchase in a few days.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/10/levelsvg-map-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cocos2d + box2d: part II</title>
		<link>http://www.sapusmedia.com/2009/08/cocos2d-box2d-part-ii/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocos2d-box2d-part-ii</link>
		<comments>http://www.sapusmedia.com/2009/08/cocos2d-box2d-part-ii/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:43:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[box2d]]></category>
		<category><![CDATA[cocos2d]]></category>

		<guid isPermaLink="false">http://174.129.192.29/blog/?p=65</guid>
		<description><![CDATA[Today I&#8217;ve been working on the editor and it is more or less functional. It is still a prototype, but it should work for very basic games. Here is a video that shows some of it&#8217;s features.]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve been working on the <span style="font-style: italic;">editor</span> and it is more or less functional. It is still a prototype, but it should work for very basic games.</p>
<p>Here is a video that shows some of it&#8217;s features.<br /><center><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/yvZM-YPPbII&amp;hl=en&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/yvZM-YPPbII&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"></embed></object><br /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/08/cocos2d-box2d-part-ii/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Experimenting with cocos2d + physics engine</title>
		<link>http://www.sapusmedia.com/2009/08/experimenting-with-cocos2d-physics-engine/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=experimenting-with-cocos2d-physics-engine</link>
		<comments>http://www.sapusmedia.com/2009/08/experimenting-with-cocos2d-physics-engine/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 15:08:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[physics engine]]></category>

		<guid isPermaLink="false">http://174.129.192.29/blog/?p=64</guid>
		<description><![CDATA[Coding real games is the best way to evaluate how useful a game library is (like cocos2d). I&#8217;m really happy with cocos2d, and the way it has evolved, but I think cocos2d needs to have better integration with a physics engine (box2d, chipmunk, or any other physics engine). And by integration I mean: An easy [...]]]></description>
			<content:encoded><![CDATA[<p>Coding real games is the best way to evaluate how useful a game library is (like cocos2d).</p>
<p>I&#8217;m really happy with cocos2d, and the way it has evolved, but I think cocos2d needs to have better integration with a physics engine (box2d, chipmunk, or any other physics engine).</p>
<p>And by integration I mean:
<ul>
<li>An easy way to edit a <span style="font-style: italic;">physics world</span> (bodies, shapes, etc.)</li>
<li>An easy way to edit <span style="font-style: italic;">visual world</span> (eg: using tile map)</li>
<li>An easy way to match the physics world and the visual world</li>
</ul>
<p>Ideally all these steps should be integrated using just 1 editor.</p>
<p>But before coding 1 editor that integrates physics + visual worlds, I&#8217;m exploring the existent alternatives.</p>
<p>For example, the <a href="http://mapeditor.org/">tiled</a> editor is a really good tile map editor (supported since cocos2d v0.8.1), and <a href="http://inkscape.org/">inkscape</a> can be used to draw physics edges. But is it easy to mix those editors ? What are the alternatives ?</p>
<p>Well, that&#8217;s what I&#8217;m doing now&#8230; I&#8217;m building a platform game with the idea to evaluate how easy is to code it using cocos2d.</p>
<p>The 1st step I took was to learn box2d. If you want to test the latest box2d version (from svn) inside the iPhone without cocos2d, use this <a href="http://code.google.com/p/box2d/issues/detail?id=3">patch</a>. And if you want to use the latest box2d version with cocos2d, then you should use the <a href="http://code.google.com/p/cocos2d-iphone/source/checkout">latest cocos2d svn revision</a>.</p>
<p>Did you code a platform game using cocos2d ? Would you mind sharing your experience ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/08/experimenting-with-cocos2d-physics-engine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>cocos2d for iPhone &#8211; New Homepage</title>
		<link>http://www.sapusmedia.com/2009/06/cocos2d-for-iphone-new-homepage/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocos2d-for-iphone-new-homepage</link>
		<comments>http://www.sapusmedia.com/2009/06/cocos2d-for-iphone-new-homepage/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:35:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>

		<guid isPermaLink="false">http://174.129.192.29/blog/?p=61</guid>
		<description><![CDATA[cocos2d for iPhone has a new home page: http://www.cocos2d-iphone.org/ that contains: the official cocos2d for iPhone blog the cocos2d for iPhone new forum the cocos2d for iPhone documentation In this blog I will continue to announce news regarding Sapus Media (the company behind cocos2d for iPhone), but everything related to cocos2d for iPhone will be [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-style: italic;">cocos2d for iPhone</span> has a new home page: <a href="http://www.cocos2d-iphone.org/">http://www.cocos2d-iphone.org/</a> that contains:
<ul>
<li>the official <span style="font-style: italic;">cocos2d for iPhone</span> <a href="http://www.cocos2d-iphone.org/">blog</a></li>
<li>the <span style="font-style: italic;">cocos2d for iPhone</span> new <a href="http://www.cocos2d-iphone.org/forum">forum</a></li>
<li>the <span style="font-style: italic;">cocos2d for iPhone</span> <a href="http://www.cocos2d-iphone.org/documentation">documentation</a></li>
</ul>
<p>In this blog I will continue to announce news regarding Sapus Media (the company behind <span style="font-style: italic;">cocos2d for iPhone</span>), but everything related to <span style="font-style: italic;">cocos2d for iPhone</span> will be announced on that site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/06/cocos2d-for-iphone-new-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>understanding pixel format in cocos2d v0.7.3</title>
		<link>http://www.sapusmedia.com/2009/05/understanding-pixel-format-in-cocos2d-v0-7-3-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=understanding-pixel-format-in-cocos2d-v0-7-3-2</link>
		<comments>http://www.sapusmedia.com/2009/05/understanding-pixel-format-in-cocos2d-v0-7-3-2/#comments</comments>
		<pubDate>Thu, 28 May 2009 10:28:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=137</guid>
		<description><![CDATA[Since cosos2d v0.7.3, you can specify the texture&#8217;s pixel format of your PNG/TIFF/BMP/GIF images. The texture&#8217;s pixel format is the way the image is stored in GPU memory. Possible pixel formats: RGBA8888 (32-bit) (kTexture2DPixelFormat_RGBA8888) RGBA4444 (16-bit) (kTexture2DPixelFormat_RGBA4444) RGB5_A1 (16-bit)(kTexture2DPixelFormat_RGB5A1) RGB565 (16-bit) (kTexture2DPixelFormat_RGB565) RGBA8888: 8 bits are assigned to the red channel, 8 bits to the [...]]]></description>
			<content:encoded><![CDATA[<p>Since cosos2d v0.7.3, you can specify the texture&#8217;s<span style="font-style: italic;"> pixel format</span> of your PNG/TIFF/BMP/GIF images. The texture&#8217;s <span style="font-style: italic;">pixel format</span> is the way the image is stored in GPU memory.  Possible pixel formats:</p>
<ul>
<li>RGBA8888 (32-bit) <span style="font-size:85%;"><span style="font-family:courier new;">(kTexture2DPixelFormat_RGBA8888)</span></span></li>
<li>RGBA4444 (16-bit) <span style="font-size:85%;"><span style="font-family:courier new;">(kTexture2DPixelFormat_RGBA4444)</span></span></li>
<li>RGB5_A1 (16-bit)<span style="font-size:85%;"><span style="font-family:courier new;">(kTexture2DPixelFormat_RGB5A1)</span></span></li>
<li>RGB565 (16-bit) <span style="font-size:85%;"><span style="font-family:courier new;">(kTexture2DPixelFormat_RGB565)</span></span></li>
</ul>
<p><span style="font-weight: bold;font-size:100%;">RGBA8888: </span></p>
<ul>
<li><span style="font-weight: bold;">8</span> bits are assigned to the <span style="font-weight: bold;">red</span> channel, <span style="font-weight: bold;">8</span> bits to the <span style="font-weight: bold;">green</span> channel, <span style="font-weight: bold;">8</span> bits to the <span style="font-weight: bold;">blue</span> channel and <span style="font-weight: bold;">8</span> bits to the <span style="font-weight: bold;">alpha</span> channel.</li>
<li>Use this pixel format when you need the <span style="font-weight: bold;">maximum possible quality</span> for your image.</li>
<li>But it will consume the double of memory compared to 16-bit textures. Memory is a precious resource on the iPhone</li>
<li>Usually it is also slower to render.</li>
<li>Useful for: background image of your intro scene, and for images with lots of gradient colors</li>
</ul>
<p><span style="font-weight: bold;"><span style="font-size:100%;">RGBA4444</span>:</span></p>
<ul>
<li><span style="font-weight: bold;">4</span> bits are assigned to the <span style="font-weight: bold;">red</span> channel, <span style="font-weight: bold;">4</span> bits to the <span style="font-weight: bold;">green</span> channel, <span style="font-weight: bold;">4</span> bits to the <span style="font-weight: bold;">blue</span> channel, and <span style="font-weight: bold;">4</span> bits to the <span style="font-weight: bold;">alpha</span> channel</li>
<li>It gives you good quality in all channels, good speed, good memory consumption.</li>
<li>Useful for: <span style="font-weight: bold;">sprites</span> that have different values of transparency</li>
</ul>
<p><span style="font-weight: bold;"><span style="font-size:100%;">RGB5A1</span>: </span></p>
<ul>
<li><span style="font-weight: bold;">5</span> bits are assigned to the <span style="font-weight: bold;">red</span> channel, <span style="font-weight: bold;">5</span> bits to the <span style="font-weight: bold;">green</span> channel, <span style="font-weight: bold;">5</span> bits to the <span style="font-weight: bold;">blue</span> channel, and <span style="font-weight: bold;">only</span> <span style="font-weight: bold;">1</span> bit to the <span style="font-weight: bold;">alpha</span> channel</li>
<li>It gives you good quality in RGB channels but poor quality on the A channel. It also gives you good speed and good memory consumption.</li>
<li>Useful for: <span style="font-weight: bold;">sprites</span> that have transparent parts, but the transparency is either On or Off</li>
</ul>
<p><span style="font-weight: bold;"><span style="font-size:100%;">RGB565</span>:</span></p>
<ul>
<li><span style="font-weight: bold;">5</span> bits are assigned to the <span style="font-weight: bold;">red</span> channel, <span style="font-weight: bold;">6</span> bits to the <span style="font-weight: bold;">green</span> channel, and <span style="font-weight: bold;">5</span> bits to the <span style="font-weight: bold;">blue</span> channel. It has <span style="font-weight: bold;">no alpha</span> channel support</li>
<li>It gives you the<span style="font-weight: bold;"> best possible quality for 16-bit</span> textures, but <span style="font-weight: bold;">without alpha</span> channel support.</li>
<li>Useful for: background images in your game.</li>
</ul>
<p>The default pixel format in v0.7.3 is RGBA8888.  How to use it:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// Set the pixel format before loading the image</span>
<span style="color: #11740a; font-style: italic;">// RGBA 8888 image (32-bit)</span>
<span style="color: #002200;">&#91;</span>Texture2D setDefaultAlphaPixelFormat<span style="color: #002200;">:</span>kTexture2DPixelFormat_RGBA8888<span style="color: #002200;">&#93;</span>;
Sprite <span style="color: #002200;">*</span>sprite1 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>Sprite spriteWithFile<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;test-rgba1.png&quot;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// Set the pixel format before loading the image</span>
<span style="color: #11740a; font-style: italic;">// RGBA 4444 image (16-bit)</span>
<span style="color: #002200;">&#91;</span>Texture2D setDefaultAlphaPixelFormat<span style="color: #002200;">:</span>kTexture2DPixelFormat_RGBA4444<span style="color: #002200;">&#93;</span>;
Sprite <span style="color: #002200;">*</span>sprite2 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>Sprite spriteWithFile<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;test-rgba2.png&quot;</span><span style="color: #002200;">&#93;</span>; 
&nbsp;
<span style="color: #11740a; font-style: italic;">// Set the pixel format before loading the image</span>
<span style="color: #11740a; font-style: italic;">// RGB5A1 image (16-bit)</span>
<span style="color: #002200;">&#91;</span>Texture2D setDefaultAlphaPixelFormat<span style="color: #002200;">:</span>kTexture2DPixelFormat_RGB5A1<span style="color: #002200;">&#93;</span>;
Sprite <span style="color: #002200;">*</span>sprite3 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>Sprite spriteWithFile<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;test-rgba3.png&quot;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// Set the pixel format before loading the image</span>
<span style="color: #11740a; font-style: italic;">// RGB565 image (16-bit)</span>
<span style="color: #002200;">&#91;</span>Texture2D setDefaultAlphaPixelFormat<span style="color: #002200;">:</span>kTexture2DPixelFormat_RGB565<span style="color: #002200;">&#93;</span>;
Sprite <span style="color: #002200;">*</span>sprite4 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>Sprite spriteWithFile<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;test-rgba4.png&quot;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// restore the default pixel format</span>
<span style="color: #002200;">&#91;</span>Texture2D setDefaultAlphaPixelFormat<span style="color: #002200;">:</span>kTexture2DPixelFormat_Default<span style="color: #002200;">&#93;</span>;</pre></div></div>

<ul>
<li><span style="font-weight: bold;">Q:</span> Can use this technique for PVRTC images ?<span style="font-style: italic;"> </span></li>
<li><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;">A:</span> No, PVRTC images have their own format. PVRTC images are faster and they consumes less memory since they are either 2-bit or 4-bit textures but the quality is not that great.</span></span></span></li>
<li><span style="font-weight: bold;">Q:</span> If I use 16-bit textures, will my game load faster ?</li>
<li><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;">A:</span> The texture pixel format has nothing to do with the loading times of your game. The Pixel Format is how the image is stored in the GPU memory. If you want faster loading times you should reduce the size of you .PNG/GIF/TIFF/TMP image file. </span></span></span></li>
<li><span style="font-weight: bold;">Q:</span> Should I use RGB565 for the images that are compressed by XCode ?</li>
<li><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;">A:</span> When XCode compresses the PNG images, it will create a  compressed PNG image that has it&#8217;s alpha channel premultiplied in the RGB channels. The PNG format is RGB565, but you should NOT confuse a PNG format with a texture pixel format. A PNG image is understood by Photoshop and cocos2d, but the GPU knows nothing about PNG images. The PNG images need to be converted into a Texture (the format understood by the GPU). The answer is: it depends on what you want. The Image (PNG,GIF,TIFF,BMP) format is independent of the Texture format. </span></span></span></li>
<li><span style="font-weight: bold;">Q:</span> If I create a PNG/BMP/TIFF/GIF image without alpha channel, can I change the texture pixel format ?</li>
<li><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;">A:</span> If your PNG/BMP/TIFF/GIF image has no alpha channel (premultiplied or not), then the pixel format that will be used for the texture is RGB565. It can&#8217;t be changed using the API but you can change by modifying the Texture2D.m file</span></span></span></li>
<li><span style="font-weight: bold;">Q:</span> Can I change the pixel format once the texture was created.<span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"> </span></span></span></li>
<li><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"><span style="font-weight: bold;">A:</span> No. Once the Texture was created you can&#8217;t modify the pixel format. But you can create new textures from the same image using different pixel formats. <span style="font-weight: bold;">Just remember to remove the image from the TextureMgr!</span> </span></span></span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/05/understanding-pixel-format-in-cocos2d-v0-7-3-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More than 100 games are using cocos2d, 3 games in the top 10</title>
		<link>http://www.sapusmedia.com/2009/05/more-than-100-games-are-using-cocos2d-3-games-in-the-top-10-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=more-than-100-games-are-using-cocos2d-3-games-in-the-top-10-2</link>
		<comments>http://www.sapusmedia.com/2009/05/more-than-100-games-are-using-cocos2d-3-games-in-the-top-10-2/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:08:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[AppStore]]></category>
		<category><![CDATA[cocos2d]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=136</guid>
		<description><![CDATA[More and more games are using cocos2d.The complete list of known games that are using cocos2d is here: Games using cocos2d. There are more than 100 games without including free/demos versions. Also, 3 cocos2d games are in today&#8217;s Top 10 free games list!: Unblock Me FREE (3rd) StickWars Lite (6th) Fishing Frenzy (8th) It is [...]]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_7Tp7oCOlWFE/Shxa_vbXoEI/AAAAAAAAUhU/cr4Dw3SNd3w/s1600-h/Picture+2.png"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 315px;" src="http://4.bp.blogspot.com/_7Tp7oCOlWFE/Shxa_vbXoEI/AAAAAAAAUhU/cr4Dw3SNd3w/s320/Picture+2.png" alt="" id="BLOGGER_PHOTO_ID_5340243309264085058" border="0" /></a><br />More and more games are using cocos2d.<br />The complete list of known games that are using cocos2d is here: <span style="text-decoration: underline;">Games using cocos2d</span>. There are more than 100 games without including free/demos versions.</p>
<p>Also, 3 cocos2d games are in today&#8217;s Top 10 free games list!:
<ul>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=315019111&amp;mt=8">Unblock Me FREE</a> <span style="font-style: italic;">(3rd)</span></li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=309528712&amp;mt=8">StickWars Lite</a> <span style="font-style: italic;">(6th)</span></li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=314188925&amp;mt=8">Fishing Frenzy</a> <span style="font-style: italic;">(8th)</span></li>
</ul>
<p>It is worth noting that <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=309527804&amp;mt=8">StickWars</a> continues to be in the Top 10 paid App list (it&#8217;s ranked #2). I think that it has been the #1 Top paid App for at least 3 weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/05/more-than-100-games-are-using-cocos2d-3-games-in-the-top-10-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Paid App is using cocos2d and cocos Live</title>
		<link>http://www.sapusmedia.com/2009/04/top-paid-app-is-using-cocos2d-and-cocos-live-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=top-paid-app-is-using-cocos2d-and-cocos-live-2</link>
		<comments>http://www.sapusmedia.com/2009/04/top-paid-app-is-using-cocos2d-and-cocos-live-2/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 10:34:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[cocosLive]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=133</guid>
		<description><![CDATA[There are a lot of games in the App Store which are using cocos2d and cocos Live: Games using cocos2d: cocos2d games Games using cocos Live: cocos Live games The number of games using cocos2d / cocos Live is growing fast. At present there are more than 80 games using cocos2d and more than 30 [...]]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://johnehartzog.com/wp-content/uploads/2009/03/img_0087.png"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 163px; height: 109px;" src="http://johnehartzog.com/wp-content/uploads/2009/03/img_0087.png" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_7Tp7oCOlWFE/SfbeOgCXlFI/AAAAAAAARzk/R4EjBCfJgM8/s1600-h/trophy.GIF"><img style="margin: 0pt 10px 10px 0pt; float: right; cursor: pointer; width: 90px; height: 86px;" src="http://2.bp.blogspot.com/_7Tp7oCOlWFE/SfbeOgCXlFI/AAAAAAAARzk/R4EjBCfJgM8/s200/trophy.GIF" alt="" id="BLOGGER_PHOTO_ID_5329691549738964050" border="0" /></a>There are a lot of games in the App Store which are using cocos2d and cocos Live:
<ul>
<li>Games using cocos2d: <a href="http://code.google.com/p/cocos2d-iphone/wiki/GamesUsingCocos2d">cocos2d games</a></li>
<li>Games using cocos Live: <a href="http://www.cocoslive.net/games">cocos Live games</a></li>
</ul>
<p>The number of games using cocos2d  / cocos Live is growing fast. At present there are more than 80 games using cocos2d and more than 30 games using cocos Live.</p>
<p>Also, I&#8217;ve been recently informed that the top paid application is <a href="http://johnehartzog.com/projects/stickwars/">StickWars</a>, which uses cocos2d and cocos Live!<br />Congratulations to John Hartzog for his game, and to the <a href="http://groups.google.com/group/cocos2d-iphone-discuss">cocos2d community</a>!<span style="font-family:Geneva,Verdana,Arial,Helvetica;font-size:85%;color:#000000;"><span class="il"></span><span class="il"></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/04/top-paid-app-is-using-cocos2d-and-cocos-live-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cocos2d for iPhone v0.7.2 released</title>
		<link>http://www.sapusmedia.com/2009/04/cocos2d-for-iphone-v0-7-2-released-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocos2d-for-iphone-v0-7-2-released-2</link>
		<comments>http://www.sapusmedia.com/2009/04/cocos2d-for-iphone-v0-7-2-released-2/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 15:59:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocos2d]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=132</guid>
		<description><![CDATA[cocos2d for iPhone v0.7.2 is available for download: http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.7.2.tar.gz Release Notes: http://code.google.com/p/cocos2d-iphone/source/browse/branches/branch-0.7/tools/convert_0_7_1_to_0_7_2.txt Highlights: Sound Engine plays ogg vorbis files Many improvements in AtlasSprites / TextureAtlas Performance and stability improvements in actions / scheduler Full Changelog: All: removed chipmunk macros. using CG macros (issue #290) Actions: Added TintTo and TintBy (issue #204) AtlasSprite: don&#8217;t overwrite index [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cocos2d-iphone-discuss.googlegroups.com/web/cocos2d-Icon.png?gda=TIQwFUIAAAB4oKvnRj5qKoXEwYu1CGlVJCyznSVXgivIqc0pIePwRHVRa23VpJ_GhITHQPeTLm5V4u3aa4iAIyYQIqbG9naPgh6o8ccLBvP6Chud5KMzIQ&amp;gsc=NsmpAQsAAAAi97dsNDKM_0_cpZoX6BeK" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"></a><img class="alignnone size-full wp-image-166" title="cocos2d_67" src="http://174.129.192.29/blog/wp-content/uploads/2009/10/cocos2d_67.png" alt="cocos2d_67" width="67" height="67" />cocos2d for iPhone v0.7.2 is available for download:<br />
<a href="http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.7.2.tar.gz">http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.7.2.tar.gz</a></p>
<p><span style="font-weight: bold;">Release Notes:</span><br />
<a href="http://code.google.com/p/cocos2d-iphone/source/browse/branches/branch-0.7/tools/convert_0_7_1_to_0_7_2.txt">http://code.google.com/p/cocos2d-iphone/source/browse/branches/branch-0.7/tools/convert_0_7_1_to_0_7_2.txt</a></p>
<p><span style="font-weight: bold;">Highlights:</span></p>
<ul>
<li>Sound Engine plays ogg vorbis files</li>
<li>Many improvements in AtlasSprites / TextureAtlas</li>
<li>Performance and stability improvements in actions / scheduler</li>
</ul>
<p><span style="font-weight: bold;"><br />
Full Changelog:</span></p>
<ul>
<li>All: removed chipmunk macros. using CG macros (issue #290)</li>
<li>Actions: Added TintTo and TintBy (issue #204)</li>
<li>AtlasSprite: don&#8217;t overwrite index 0 (issue #283)</li>
<li>AtlasSprite: Supports Z-order (issue #275)</li>
<li>AtlasSprite &amp; Sprite: don&#8217;t auto center sprite when setting frame (issue #281)</li>
<li>AtlasSprite: don&#8217;t render in subpixels (issue #135)</li>
<li>AtlasSpriteManager: supports transformations (issue #308)</li>
<li>AtlasSpriteManager: fixes in removeChild (issue #296)</li>
<li>AtlasSpriteManager: works with capacity=1 (issue #305)</li>
<li>CocosNode: CocosNodeExtras merged into CocosNode (issue #292)</li>
<li>CocosNode: improved runAction/stopAction (issue #300)</li>
<li>CocosNode: possible memory leak when running actions (issue #298)</li>
<li>CocosNode: dont execute an already running action (issue #299)</li>
<li>CocosNode: children referring to deallocated parent (issue #297)</li>
<li>CocosNode: fixed &#8220;already scheduled exception&#8221; (issue #251)</li>
<li>CocosNode: don&#8217;t render in subpixels (issue #135)</li>
<li>Demos: AtlasSprite with z-order (issue #275)</li>
<li>Demos: ParticleDemo uses touches to move the center of the emitter (issue #138)</li>
<li>Demos: organized tests folder (issue #280)</li>
<li>Demos: Atlas and Sprites uses TintBy and TintTo (issue #204)</li>
<li>Demos: Menu shows how to use padding / dynamic toggle items (part of issue #249, issue #224)</li>
<li>Demos: added drawing primitives excample (part of issue #322)</li>
<li>Director: Attach uses &#8216;bounds&#8217; not &#8216;frame&#8217; (issue #233)</li>
<li>Director: runWithScene / end doesn&#8217;t crash/leak anymore (issue #325)</li>
<li>Director / Transitions: pushScene with Transitions works (issue #267)</li>
<li>Documentation: API doc documents free functions (issue #314)</li>
<li>Menu: an empty menu can be crated (issue #277)</li>
<li>Menu: align supports padding (issue #249)</li>
<li>Menu: align takes into account scale (issue #248)</li>
<li>Menu: MenuToggleItem supports add/remove items in runtime (issue #224)</li>
<li>Particles: Use by default fire.pvr (issue #276)</li>
<li>Particles: resetSystem actually resets the system (issue #252)</li>
<li>Particles: texture is a property (issue #282)</li>
<li>Particles: colors and vertices in 1 VBO (issue #246)</li>
<li>Primitives: deprecated all functions. New functions uses CGPoint (issue #322)</li>
<li>Scheduler: improved timer performance (issue #309)</li>
<li>SoundSupport: supports vorbis codec (issue #321)</li>
<li>Support: ccArray: a fast alternative to NSMutableArray (issue #304)</li>
<li>TextureAtlas: fixed colorarray memory leak (issue #272)</li>
<li>TextureAtlas: support for insert,remove,reorder (issue #275)</li>
<li>TextureAtlas: free indices correctly when out of memory (issue #293)</li>
<li>TextureAtlas: resizeCapacity returns BOOL instead of raise exception (issue #294)</li>
<li>TextureAtlas: prevent crash when not enough memory while allocating color (issue #295)</li>
<li>TextureNode: texture is &#8220;retain&#8221; not &#8220;assign&#8221; (issue #230 and issue #274)</li>
<li>TileMapAtlas: supports fullpath (issue #220)</li>
<li>TileMapAtlas: don&#8217;t render in subpixels (issue #135)</li>
<li>XCode project: added class model (issue #312)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/04/cocos2d-for-iphone-v0-7-2-released-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

