<?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>小黑米的生活</title>
	<atom:link href="http://edwardhey.webbeb.com/feed" rel="self" type="application/rss+xml" />
	<link>http://edwardhey.webbeb.com</link>
	<description>只玩技术</description>
	<lastBuildDate>Mon, 30 Jan 2012 13:40:51 +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>nohup 命令使用注意</title>
		<link>http://edwardhey.webbeb.com/theme/408</link>
		<comments>http://edwardhey.webbeb.com/theme/408#comments</comments>
		<pubDate>Mon, 30 Jan 2012 13:39:36 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=408</guid>
		<description><![CDATA[<p>nohup命令作用：让进程在后台可靠运行</p>
<p>nohup 的一般用法（命令行下）：</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">nohup command &#62; command.log 2&#62;&#038;1 &#038;</div></div>
<p>如果终端推出或网络断开,会向进程发送hangup信号~ 如果进程没有特殊处理hangup默认是忽略的~ 进程会被挂到init进程下，从而可以在后台继续执行</p>
 <a href="http://edwardhey.webbeb.com/theme/408">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="2008年机器人(@hqlong) 为难我的一道题目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2F%3Fp%3D41&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F408">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2008年机器人(@hqlong) 为难我的一道题目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCArray类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F408">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCArray类</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="巧妙的注释" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F232&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F408">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">巧妙的注释</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[音乐]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F305&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F408">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/20/32294013.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[音乐]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/408/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Javascript] 原型(prototype)实现面向对象</title>
		<link>http://edwardhey.webbeb.com/theme/397</link>
		<comments>http://edwardhey.webbeb.com/theme/397#comments</comments>
		<pubDate>Tue, 22 Nov 2011 10:29:55 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=397</guid>
		<description><![CDATA[使用JS原型(prototype)来做面向对象，模块化部分代码~

今天和同事讨论了下prototype,我个人比较倾向于把部分逻辑放到前端实现,从而减少对后端数据的耦合,相当于在做富客户端应用,如果这么做就必须要在客户端用面向对象编程来处理模块,但同事也很在理,一是兼容性的考虑,二是如果只是web应用或简单的web game似乎真没多少逻辑会放到浏览器去渲染的~ 好吧,不管如何也好~ 先探讨,用来做做小应用来玩着先吧~
 <a href="http://edwardhey.webbeb.com/theme/397">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[Object-C]面向对象小试牛刀" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F223&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F397">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[Object-C]面向对象小试牛刀</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nohup 命令使用注意 " style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F408&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F397">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nohup 命令使用注意 </font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[音乐] Milkshake" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F309&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F397">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/33826145.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[音乐] Milkshake</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCTransitionScene" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F397">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCTransitionScene</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/397/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[shell] VPN回公司环境设置正确的路由表</title>
		<link>http://edwardhey.webbeb.com/theme/377</link>
		<comments>http://edwardhey.webbeb.com/theme/377#comments</comments>
		<pubDate>Fri, 28 Oct 2011 16:39:34 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=377</guid>
		<description><![CDATA[<p>好吧&#8230;为了赶上工作的进度,不得不在家工作了~ 因公司的环境在内网,需要vpn回去公司环境,登陆开发机器,工作才能继续</p>
<p>先自己vpn回去,这个就不说了&#8230;网上有很多教程,自己google下吧~</p>
<p>主要还是路由表的问题~ 我网络的情况是:<br />
ip           ->       gateway<br />
192.168.5.2           192.168.5.1</p>
<p>公司的情况:<br />
开发机器的ip:192.168.1.x<br />
vpn接入的虚拟ip:x.x.x.x</p>
<p>所以要添加一条 192.168.1.x 的路由走 ppp0 网卡，即可实现我的需求了</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">#!/bin/bash<br />
route -nv add -net 192.168.1 -interface ppp0</div></div>
 <a href="http://edwardhey.webbeb.com/theme/377">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[Object-C] 常量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F246&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F377">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[Object-C] 常量</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="python &amp; growl on mac os" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F31&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F377">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/08/7128442.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">python &amp; growl on mac os</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[Iphone] 游戏开发基础概念" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F314&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F377">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/03/8523400.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[Iphone] 游戏开发基础概念</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="权限设计" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F6&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F377">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">权限设计</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/377/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[cocos2d] 游戏里面的场景过渡</title>
		<link>http://edwardhey.webbeb.com/theme/370</link>
		<comments>http://edwardhey.webbeb.com/theme/370#comments</comments>
		<pubDate>Wed, 05 Oct 2011 23:45:14 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=370</guid>
		<description><![CDATA[<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">1. scene: OtherScene<br />
2. init: &#60;OtherScene = 066B2130 &#124; Tag = -1&#62;<br />
3. onEnter: &#60;OtherScene = 066B2130 &#124; Tag = -1&#62;<br />
4. // 这里运行了过渡效果<br />
5. onExit: &#60;FirstScene = 0668DF40 &#124; Tag = -1&#62;<br />
6. onEnterTransitionDidFinish: &#60;OtherScene = 066B2130 &#124; Tag = -1&#62; <br />
7. dealloc: &#60;FirstScene = 0668DF40 &#124; Tag = -1&#62;</div></div>
<p>上面的是cocos2d里面的场景过渡日志,可以发现很有趣的,A场景过渡到B场景的时候,A场景发起replaceScene请求,就init B场景,然后执行B场景的onEnter函数,程序执行到这里,就说明B场景init完成,然后对A场景执行onExit和dealloc请求,最后请求A场景的onEnterTransitionDidFinish,这样就完成了2个场景</p> <a href="http://edwardhey.webbeb.com/theme/370">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[cocos2d] CCArray类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCArray类</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] 加速计的使用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] 加速计的使用</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] OpenGL functions" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F363&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] OpenGL functions</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCTransitionScene" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCTransitionScene</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/370/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] OpenGL draw base functions</title>
		<link>http://edwardhey.webbeb.com/theme/363</link>
		<comments>http://edwardhey.webbeb.com/theme/363#comments</comments>
		<pubDate>Wed, 05 Oct 2011 16:04:56 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=363</guid>
		<description><![CDATA[<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">-(void) draw<br />
{<br />
CGSize s = [[CCDirector sharedDirector] winSize];<br /><br />// draw a simple line<br />
// The default state is:<br />
// Line Width: 1<br />
// color: 255,255,255,255 (white, non-transparent)<br />
// Anti-Aliased<br />
glEnable(GL_LINE_SMOOTH);<br /><br />
ccDrawLine( ccp(0, 0), ccp(s.width, s.height) );<br />
<br />
// line: color, width, aliased<br />
// glLineWidth &#62; 1 and GL_LINE_SMOOTH are not compatible<br />
// GL_SMOOTH_LINE_WIDTH_RANGE = (1,1) on iPhone<br />
glDisable(GL_LINE_SMOOTH);<br />
glLineWidth( 5.0f );<br />
glColor4ub(255,0,0,255);<br />
ccDrawLine( ccp(0<br /><br/>//以下被省略了...</div></div> <a href="http://edwardhey.webbeb.com/theme/363">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="3"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="python &amp; growl on mac os" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F31&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F363">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/08/7128442.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">python &amp; growl on mac os</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2008年机器人(@hqlong) 为难我的一道题目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2F%3Fp%3D41&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F363">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2008年机器人(@hqlong) 为难我的一道题目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[Object-C] 常量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F246&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F363">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[Object-C] 常量</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="3" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/363/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] CCTransitionScene</title>
		<link>http://edwardhey.webbeb.com/theme/352</link>
		<comments>http://edwardhey.webbeb.com/theme/352#comments</comments>
		<pubDate>Wed, 05 Oct 2011 13:16:53 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=352</guid>
		<description><![CDATA[<p>CCTransitionScene &#8211; 所有过渡效果的基类</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">//淡入淡出<br />
CCFadTransition *tran = [CCFadTransition transitionWithDuration:1<br />
                                                          scene:[HelloWorld scene]<br />
                                                      withColor:ccWHITE];<br />
<br />
[[CCDirector sharedDirector] replaceScene:tran];<br />
CCFadTransition: 淡入淡出到一个指定颜色,然后再回来<br />
CCFadTRTransition(3):瓦片(tiles)反转过来提示场景<br />
CCJumpZoomTransition:场景跳动着变小时,新场景则跳动着变大<br />
MoveInLTransition(3):场景移出,同时新的场景从左(3)移入.<br /><br />
CCOrientedTransitionScene(6):<br /><br/>//以下被省略了...</div></div> <a href="http://edwardhey.webbeb.com/theme/352">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="3"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="python &amp; growl on mac os" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2F%3Fp%3D31&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/08/7128442.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">python &amp; growl on mac os</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="MAC OS安装PHP扩展时候缺少pcre.h" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F54&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">MAC OS安装PHP扩展时候缺少pcre.h</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="权限设计" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F6&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">权限设计</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="3" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/352/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] cocos2d里面一些实用的东西</title>
		<link>http://edwardhey.webbeb.com/theme/343</link>
		<comments>http://edwardhey.webbeb.com/theme/343#comments</comments>
		<pubDate>Wed, 05 Oct 2011 12:32:57 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=343</guid>
		<description><![CDATA[<blockquote><p>允许屏保</p></blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">[self setScreenSaverEnabled:YES];<br />
#pragma mark Reset Game<br />
// The game is played only using the accelerometer. The screen may go dark while playing because the player<br />
// won't touch the screen. This method allows the screensaver to be disabled during gameplay.<br />
-(void) setScreenSaverEnabled:(bool)enabled<br />
{<br />
    UIApplication *thisApp = [UIApplication sharedApplication];<br />
    thisApp.idleTimerDisabled = !enabled;<br />
}</div></div>
<blockquote><p>启用重力感应</p></blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">self.isAccelerometerEnabled = YES;</div></div>
<blockquote><p>启用触摸屏</p></blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">self.isTouchEnabled = NO;</div></div>
<blockquote><p>foreac</p><br/>//以下被省略了...</blockquote> <a href="http://edwardhey.webbeb.com/theme/343">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[cocos2d] CCTransitionScene" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F343">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCTransitionScene</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCArray类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F343">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCArray类</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] cocos2d 1.0 设置屏幕默认为纵向" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F321&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F343">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] cocos2d 1.0 设置屏幕默认为纵向</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] 游戏里面的场景过渡" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F343">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] 游戏里面的场景过渡</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/343/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] schedule</title>
		<link>http://edwardhey.webbeb.com/theme/337</link>
		<comments>http://edwardhey.webbeb.com/theme/337#comments</comments>
		<pubDate>Tue, 04 Oct 2011 14:04:14 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=337</guid>
		<description><![CDATA[<p>在处理Sprite的时候,需要设置Sprite的行为,需要使用到schedule,第一个参数就是selector对象,额~ 理解成C语言的函数指针就对了~</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">[self unschedule:@selector(spidersUpdate:)];<br />
[self schedule:@selector(spidersUpdate:) interval:3.0f];<br />
[self scheduleUpdate];//==[self scheduleUpdate:@selector(update:) interval:0.0f];</div></div>
 <a href="http://edwardhey.webbeb.com/theme/337">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="3"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[cocos2d] 游戏里面的场景过渡" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F370&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F337">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] 游戏里面的场景过渡</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="权限设计" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2F%3Fp%3D6&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F337">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">权限设计</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决Linux链接Microsoft SQL Server 2008乱码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F49&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F337">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/08/7499017.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决Linux链接Microsoft SQL Server 2008乱码</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="3" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/337/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] CCArray类</title>
		<link>http://edwardhey.webbeb.com/theme/332</link>
		<comments>http://edwardhey.webbeb.com/theme/332#comments</comments>
		<pubDate>Tue, 04 Oct 2011 08:56:07 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=332</guid>
		<description><![CDATA[<p>你可 以在Xcode项目中的cocos2d/Support组找到CCArray的类文件。cocos2d引擎内 部使用了CCArray。它和苹果官方的NSMutableArray类似,但是运行效率更高。 CCArray类实现了NSArray和NSMutableArray的子集,并且添加一些从NSArray初 始化到CCArray的新方法。CCArray通过将数组中的最后一个对象(nil)赋值给删 除的位置,实现了fastRemoveObject和fastRemoveObjectAtIndex两个方法。避 免了复制部份数组的内存。这让删除数组中的元素变的更快,不过这也意味着 CCArray中的对象会改变位置。如果你的程序依赖于指定的对象排列次序,你就 不应该使用fastRemoveObject这类方法。在列表4-9中,你可以看到CCArray的 类引用 – 它没有实现所有的NSArray和NSMutableArray方法:<br />
列表4-9. CCArray的类引用</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">+ (id) array;<br />
+ (id) arrayWithCapacity:(NSUInteger)capacity; + (i<br /><br/>//以下被省略了...</div></div> <a href="http://edwardhey.webbeb.com/theme/332">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[cocos2d] CCTransitionScene" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCTransitionScene</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] cocos2d里面一些实用的东西" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F343&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] cocos2d里面一些实用的东西</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] schedule" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F337&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] schedule</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] 加速计的使用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] 加速计的使用</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/332/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cocos2d] 加速计的使用</title>
		<link>http://edwardhey.webbeb.com/theme/329</link>
		<comments>http://edwardhey.webbeb.com/theme/329#comments</comments>
		<pubDate>Tue, 04 Oct 2011 08:23:45 +0000</pubDate>
		<dc:creator>edwardhey</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://edwardhey.webbeb.com/?p=329</guid>
		<description><![CDATA[<p>以下代码使用了三个新的“设计参数”:减速度 速率,加速计敏感度和最大速度。</p>
<p>减速是通过降低当前速度值来实现的。在降低速度值以后,要将新的加速度值和加速计敏感度值相乘所得的值与降低后的速度值相加。减速度速率越小,主角精灵就能越快的改变蜘蛛的方向。加速计敏感度的值越大,主角精灵对加速计的输入就越敏感。因为这三个参数一起影响着同一个值,所以在调整的时候要注意每次只调整一个值。</p>
<p>在layer的init加入</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">[self scheduleUpdate];</div></div>
<p>player是玩家的精灵,playervelocity</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;width:100%;"><div class="text codecolorer">-(void) update:(ccTime) delta<br />
{<br />
    CGPoint pos = player.position;<br />
    pos.x += playervelocity.x;<br />
    <br />
    CGSize screenSize = [[CCDirector sharedDirector] winSize];<br />
    float imageWidthHalved = [player texture].contentSize.width*0.5f;<br />
    float le<br /><br/>//以下被省略了...</div></div> <a href="http://edwardhey.webbeb.com/theme/329">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">也许您也喜欢</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[cocos2d] schedule" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F337&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] schedule</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCTransitionScene" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F352&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCTransitionScene</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] OpenGL functions" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F363&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] OpenGL functions</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[cocos2d] CCArray类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F332&from=http%3A%2F%2Fedwardhey.webbeb.com%2Ftheme%2F329">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/18/31796606.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[cocos2d] CCArray类</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://edwardhey.webbeb.com/theme/329/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

