<?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; cocosLive</title>
	<atom:link href="http://www.sapusmedia.com/category/cocoslive/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>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>cocoslive released under the GNU GPL v3 license</title>
		<link>http://www.sapusmedia.com/2009/04/cocoslive-released-under-the-gnu-gpl-v3-license-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocoslive-released-under-the-gnu-gpl-v3-license-2</link>
		<comments>http://www.sapusmedia.com/2009/04/cocoslive-released-under-the-gnu-gpl-v3-license-2/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 10:12:00 +0000</pubDate>
		<dc:creator>riq</dc:creator>
				<category><![CDATA[cocosLive]]></category>

		<guid isPermaLink="false">http://174.129.192.29/?p=130</guid>
		<description><![CDATA[Hi,I&#8217;ve just released cocos Live with the GNU GPL v3 license.The project is hosted in here:http://code.google.com/p/cocoslive/ Everybody is welcome to participate in the development of the server.The are a lot of interesting things to do with it! If you want to join the discussion forum, go here:http://groups.google.com/group/cocoslive-discuss]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />I&#8217;ve just released cocos Live with the GNU GPL v3 license.<br />The project is hosted in here:<br /><a href="http://code.google.com/p/cocoslive/">http://code.google.com/p/cocoslive/</a></p>
<p>Everybody is welcome to participate in the development of the server.<br />The are a lot of interesting things to do with it!</p>
<p>If you want to join the discussion forum, go here:<br /><a href="http://groups.google.com/group/cocoslive-discuss">http://groups.google.com/group/cocoslive-discuss</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/04/cocoslive-released-under-the-gnu-gpl-v3-license-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cocos Live v0.1.1 with device id filter</title>
		<link>http://www.sapusmedia.com/2009/02/cocos-live-v0-1-1-with-device-id-filter-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocos-live-v0-1-1-with-device-id-filter-2</link>
		<comments>http://www.sapusmedia.com/2009/02/cocos-live-v0-1-1-with-device-id-filter-2/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:02: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=121</guid>
		<description><![CDATA[Cocos Live v0.1.1 introduces some changes in the Web front end. The most important change is that now it is possible to the display certain fields in the Web and send back to the iPhone another set of fields.Use the Sendback property to send a field back to the iPhone and use the Display On [...]]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_7Tp7oCOlWFE/SaWXrzqW5hI/AAAAAAAAO_c/y9uoOn69rPY/s1600-h/Picture+3.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 84px;" src="http://1.bp.blogspot.com/_7Tp7oCOlWFE/SaWXrzqW5hI/AAAAAAAAO_c/y9uoOn69rPY/s320/Picture+3.png" alt="" id="BLOGGER_PHOTO_ID_5306814514784036370" border="0" /></a><br /><a href="http://www.cocoslive.net/">Cocos Live</a> v0.1.1 introduces some changes in the Web front end. The most important change is that now it is possible to the display certain fields in the Web and send back to the iPhone another set of fields.<br />Use the <span style="font-family:courier new;">Sendback</span> property to send a field back to the iPhone and use the <span style="font-family:courier new;">Display On Web</span> property to display a field on the web page.<br />Eg: If you don&#8217;t want to send back the <span style="font-family:courier new;">usr_playername</span> property to the iPhone, but you want to display it on the web page, then set <span style="font-family:courier new;">SendBack = False</span> and <span style="font-family:courier new;">Display On Web = True</span>.</p>
<p>In Cocos Live v0.1.1 you can also filter games by device id:
<pre><code>// request scores posted by this device// request scores "all time"// request best 15 scores (limit:15, offset:0)[request requestScores:kQueryAllTime limit:15 offset:0 <span style="color: rgb(255, 0, 0);">flags:kQueryFlagsByDevice</span> category:@"easy"];</code></pre>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_7Tp7oCOlWFE/SaWYxE7BFEI/AAAAAAAAO_k/gN1Zsx5Ug_0/s1600-h/Picture+4.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 223px;" src="http://1.bp.blogspot.com/_7Tp7oCOlWFE/SaWYxE7BFEI/AAAAAAAAO_k/gN1Zsx5Ug_0/s320/Picture+4.png" alt="" id="BLOGGER_PHOTO_ID_5306815704828286018" border="0" /></a>To filter by device id using the Web front end you need to enable the <span style="font-family:courier new;">Display On Web</span> property for the <span style="font-family:courier new;">cc_device_id</span> field.<br />Then, you can click on that field to filter by that device id.</p>
<p>Cocos Live client v0.1.1 will be available with <a href="http://code.google.com/p/cocos2d-iphone">cocos2d</a> v0.7.1, but if you can&#8217;t wait, you can download it from the svn rev. 594.</p>
<p>Cocos Live service v0.1.1 is &#8220;live&#8221; now. To try this feature, you can play filtering the scores of <a href="http://www.cocoslive.net/game-scores?gamename=DemoGame">DemoGame</a> game.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/02/cocos-live-v0-1-1-with-device-id-filter-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cocos Live: a high score server for cocos2d</title>
		<link>http://www.sapusmedia.com/2009/02/cocos-live-a-high-score-server-for-cocos2d-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cocos-live-a-high-score-server-for-cocos2d-2</link>
		<comments>http://www.sapusmedia.com/2009/02/cocos-live-a-high-score-server-for-cocos2d-2/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 13:42: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=118</guid>
		<description><![CDATA[Cocos Live is a service that tries to help iPhone Indie Game Developers by giving them an API to solve their online requirements. As of version 0.1, the only feature available is the High Score Server. Future versions will have more features. To use the High Score Server you need to: Have a valid Google [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: left; float: right; margin-right: 20px;"><a href="http://picasaweb.google.com/lh/photo/zlREtNxEpnFAIwD5mcjd6g?feat=embedwebsite"><img src="http://lh5.ggpht.com/_7Tp7oCOlWFE/SZ1i2fGiryI/AAAAAAAAOvM/X5zafUtrzPI/s288/IMG_0001_6.PNG" alt="" /></a></div>
<p><a href="http://www.cocoslive.net/">Cocos Live</a> is a service that tries to help <span style="font-weight: bold;">iPhone Indie Game Developers</span> by giving them an API to solve their <em>online</em> requirements.</p>
<p>As of version 0.1, the only feature available is the High Score Server. Future versions will have more features.</p>
<p>To use the High Score Server you need to:</p>
<ol>
<li>Have a valid Google account</li>
<li>Sign in into Cocos Live with that account</li>
<li>Create a game, customize it, and copy the secret key</li>
</ol>
<h3>Requesting a score</h3>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> requestScore
<span style="color: #002200;">&#123;</span>
    <span style="color: #11740a; font-style: italic;">// create a Request object for the game &quot;DemoGame&quot; </span>
    <span style="color: #11740a; font-style: italic;">// You need to implement the Score Request Delegate</span>
    ScoreServerRequest <span style="color: #002200;">*</span>request <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>ScoreServerRequest alloc<span style="color: #002200;">&#93;</span> initWithGameName<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;DemoGame&quot;</span> delegate<span style="color: #002200;">:</span>self<span style="color: #002200;">&#93;</span>;
&nbsp;
     <span style="color: #11740a; font-style: italic;">/* use kQueryFlagIgnore to request World scores */</span>
     tQueryFlags flags <span style="color: #002200;">=</span> kQueryFlagIgnore;
&nbsp;
     <span style="color: #11740a; font-style: italic;">/* or use kQueryFlagCountry to request the best scores of your country */</span>
     <span style="color: #11740a; font-style: italic;">// tQueryFlags flags = kQueryFlagByCountry;</span>
&nbsp;
     <span style="color: #11740a; font-style: italic;">// request the first 15 scores ( offset:0 limit:15)</span>
     <span style="color: #11740a; font-style: italic;">// request AllTime best scores (this is the only supported option in v0.1</span>
     <span style="color: #11740a; font-style: italic;">// request the scores for the category &quot;easy&quot;</span>
     <span style="color: #002200;">&#91;</span>request requestScores<span style="color: #002200;">:</span>kQueryAllTime limit<span style="color: #002200;">:</span><span style="color: #2400d9;">15</span> offset<span style="color: #002200;">:</span><span style="color: #2400d9;">0</span> flags<span style="color: #002200;">:</span>flags category<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;easy&quot;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
     <span style="color: #11740a; font-style: italic;">// Release. It won't be freed from memory until the connection fails or suceeds</span>
     <span style="color: #002200;">&#91;</span>request release<span style="color: #002200;">&#93;</span>;
 <span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">// ScoreRequest delegate</span>
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> scoreRequestOk<span style="color: #002200;">:</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> sender
<span style="color: #002200;">&#123;</span>
<span style="color: #11740a; font-style: italic;">// the scores are stored in a NSArrayNSArray *scores = [sender parseScores];</span>
&nbsp;
 <span style="color: #11740a; font-style: italic;">// Display them as you wish: using a UITableView,</span>
 <span style="color: #11740a; font-style: italic;">// a custom CocosNode, etc...</span>
 <span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> scoreRequestFail<span style="color: #002200;">:</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> sender
<span style="color: #002200;">&#123;</span>
<span style="color: #11740a; font-style: italic;">// request failed. Display an error message.</span>
<span style="color: #002200;">&#125;</span></pre></div></div>

<h3>Posting a score</h3>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> postScore
<span style="color: #002200;">&#123;</span>
    <span style="color: #11740a; font-style: italic;">// Create que &quot;post&quot; object for the game &quot;DemoGame&quot;</span>
    <span style="color: #11740a; font-style: italic;">// The gameKey is the secret key that is generated when you create you game in cocos live.</span>
    <span style="color: #11740a; font-style: italic;">// This secret key is used to prevent spoofing the high</span>
    scoresScoreServerPost <span style="color: #002200;">*</span>server <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>ScoreServerPost alloc<span style="color: #002200;">&#93;</span> initWithGameName<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;DemoGame&quot;</span> gameKey<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;e8e0765de336f46b17a39ad652ee4d39&quot;</span> delegate<span style="color: #002200;">:</span>self<span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #400080;">NSMutableDictionary</span> <span style="color: #002200;">*</span>dict <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSMutableDictionary</span> dictionaryWithCapacity<span style="color: #002200;">:</span><span style="color: #2400d9;">4</span><span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #11740a; font-style: italic;">// usr_ are fields that can be modified.</span>
    <span style="color: #11740a; font-style: italic;">// set score[dict setObject: [NSNumber numberWithInt: 340 ] forKey:@&quot;cc_score&quot;];</span>
    <span style="color: #11740a; font-style: italic;">// set speed[dict setObject: [NSNumber numberWithInt: 120 ] forKey:@&quot;usr_speed&quot;];</span>
    <span style="color: #11740a; font-style: italic;">// set angle[dict setObject: [NSNumber numberWithInt: 92 ] forKey:@&quot;usr_angle&quot;];</span>
    <span style="color: #11740a; font-style: italic;">// set playername[dict setObject:@&quot;Ricardo&quot; forKey:@&quot;usr_playername&quot;];</span>
    <span style="color: #11740a; font-style: italic;">// set player type[dict setObject: [NSNumber numberWithInt: 0 ] forKey:@&quot;usr_playertype&quot;];</span>
&nbsp;
     <span style="color: #11740a; font-style: italic;">// cc_ are fields that cannot be modified. cocos fields</span>
     <span style="color: #11740a; font-style: italic;">// set category... it can be &quot;easy&quot;, &quot;medium&quot;, whatever you want.</span>
     <span style="color: #002200;">&#91;</span>dict setObject<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;easy&quot;</span> forKey<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;cc_category&quot;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #002200;">&#91;</span>server sendScore<span style="color: #002200;">:</span>dict<span style="color: #002200;">&#93;</span>;
&nbsp;
     <span style="color: #11740a; font-style: italic;">// Release. It won't be freed from memory until the connection fails or suceeds</span>
     <span style="color: #002200;">&#91;</span>server release<span style="color: #002200;">&#93;</span>;
 <span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">// PostScore Delegate</span>
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> scorePostOk<span style="color: #002200;">:</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> sender
<span style="color: #002200;">&#123;</span>
    <span style="color: #11740a; font-style: italic;">// Score post successful</span>
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> scorePostFail<span style="color: #002200;">:</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> sender
<span style="color: #002200;">&#123;</span>
    <span style="color: #11740a; font-style: italic;">// score post failed</span>
    tPostStatus status <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>sender postStatus<span style="color: #002200;">&#93;</span>;
    <span style="color: #a61390;">if</span><span style="color: #002200;">&#40;</span> status <span style="color: #002200;">==</span> kPostStatusPostFailed <span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        <span style="color: #11740a; font-style: italic;">// an error with the server ?</span>
        <span style="color: #11740a; font-style: italic;">// try again</span>
    <span style="color: #002200;">&#125;</span><span style="color: #a61390;">else</span> <span style="color: #a61390;">if</span><span style="color: #002200;">&#40;</span> status <span style="color: #002200;">==</span> kPostStatusConnectionFailed <span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        <span style="color: #11740a; font-style: italic;">// a error establishing the connection ?</span>
        <span style="color: #11740a; font-style: italic;">// turn-on wifi, and then try again</span>
    <span style="color: #002200;">&#125;</span>
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>For further information download <a href="http://code.google.com/p/cocos2d-iphone">cocos2d for iPhone</a> v0.7, try the cocosLiveDemo example and read the <a href="http://code.google.com/p/cocos2d-iphone/source/browse/trunk/tests/cocosLive/cocosLiveDemo.m">cocosLiveDemo.m</a> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sapusmedia.com/2009/02/cocos-live-a-high-score-server-for-cocos2d-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

