锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲熟妇无码另类久久久,99国内精品久久久久久久,偷偷做久久久久网站http://www.shnenglu.com/wc250en007/category/19588.html鍓嶈繘鐨勮礬涓?/description>zh-cnWed, 24 Oct 2012 03:55:01 GMTWed, 24 Oct 2012 03:55:01 GMT60鍦╨inux緋葷粺涓嬬敤eclipse闆嗘垚鐜寮鍙慶ocos2d-x android欏圭洰錛岄泦鎴恓ava鍜宑++鐜(杞?http://www.shnenglu.com/wc250en007/archive/2012/10/24/193757.htmlLet me see seeLet me see seeWed, 24 Oct 2012 01:29:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/10/24/193757.htmlhttp://www.shnenglu.com/wc250en007/comments/193757.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/10/24/193757.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/193757.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/193757.html闃呰鍏ㄦ枃

]]>
cocos2d-x android娓告垙浣跨敤鑷繁鐨勫瓧浣?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/10/15/193320.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Mon, 15 Oct 2012 08:58:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/10/15/193320.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/193320.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/10/15/193320.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/193320.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/193320.html</trackback:ping><description><![CDATA[鍦ㄤ嬌鐢╟ocos2d-x鍙戝竷Android騫沖彴娓告垙鏃訛紝娓告垙涓彲鑳介渶瑕佹樉紺轟腑鏂囧瓧浣擄紝 鎴栬呮兂鏄劇ず婕備寒鐨勮嚜瀹氫箟瀛椾綋,榪欐庝箞鍔炲憿錛?br />cocos2d-x涓瓧浣撴爣絳炬彁渚涗簡CCLabelAtlas, CCLabelBMFont CCLabelTTF<br /><br />1.CCLabelAtlas閫熷害蹇紝鏀寔綆鍗曟湁闄愮殑鍑犱釜瀛楃鎴栨暟瀛楅泦鍚?br /><br />2.CCLabelBMFont <br />鎴戜滑鍙互鐢–CLabelBMFont鏉ュ姞杞藉瓧浣撶紪杈戝櫒鐢熸垚鐨?plist鏂囦歡錛屼絾鏄綋鏄劇ず鐨勬枃瀛楀緢澶氭椂錛岃繖縐嶅仛娉曞氨鏈夌偣璐規椂璐瑰姏浜?br />濡傦細鎴戜滑鎯蟲樉紺烘父鎴忎腑鍓ф儏浠嬬粛<br /><br />3.CCLabelTTF<br />鏀寔閫夋嫨涓縐嶅瓧浣撴潵鏄劇ず鏂囧瓧錛屼絾鏄彧鏀寔緋葷粺涓粯璁ゅ瓧浣?br /><div style="padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; width: 1307.3519287109375px; word-break: break-all; ">CCLabelTTF* pLabel = CCLabelTTF::create("Hello World", "Arial", 24);</div><div></div><br /><strong>闂錛氭垜浠湪Android娓告垙涓兂鏄劇ず娓告垙鍓ф儏錛屾兂鐢ㄨ嚜宸辨寚瀹氱殑涓縐嶅瓧浣揼ril.ttf(闈炵郴緇熼粯璁ゅ瓧浣?,鎬庝箞鍔?/strong><br /><br />鍏跺疄cocos2d-x宸茬粡鎻愪緵浜嗗府鎴戜滑瀹炵幇浜?br />鏋勯燙CLabelTTF涓寚瀹氱殑瀛椾綋鍚嶄紶緇欎簡<span style="font-size: 13.333333969116211px; background-color: #eeeeee; ">CCTexture2D </span><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">void</span> CCLabelTTF::updateTexture()<br />{<br />    CCTexture2D *tex;<br />    <span style="color: #0000FF; ">if</span> (m_tDimensions.width == 0 || m_tDimensions.height == 0)<br />    {<br />        tex = <span style="color: #0000FF; ">new</span> CCTexture2D();<br />        tex->initWithString(m_string.c_str(), <strong>m_pFontName</strong>->c_str(), m_fFontSize * CC_CONTENT_SCALE_FACTOR()) ;<br />    }<br />    <span style="color: #0000FF; ">else</span><br />    {<br />        tex = <span style="color: #0000FF; ">new</span> CCTexture2D();<br />        tex->initWithString(m_string.c_str(),<br />                            CC_SIZE_POINTS_TO_PIXELS(m_tDimensions), <br />                            m_hAlignment,<br />                            m_vAlignment,<br />                            m_pFontName->c_str(),<br />                            m_fFontSize * CC_CONTENT_SCALE_FACTOR());<br />    }<br /><br />   <img src="http://www.shnenglu.com/Images/dot.gif" alt="" />.<br />}</div>CCTexture2D鍙堝皢瀛椾綋鍚嶄紶緇欎簡CCImage<br />(PS:榪欓噷璋冪敤鐨勬槸android騫沖彴涓嬬殑CCImage綾?./platform/android/CCImage.h)<br />鑰屼笉鏄痺in32騫沖彴涓嬬殑CCImage綾?./platform/win32/CCImage.h) )<br /><br />android騫沖彴涓嬬殑CCImage<br /><div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">bool</span> CCImage::initWithString(<br />                               <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *    pText, <br />                               <span style="color: #0000FF; ">int</span>             nWidth<span style="color: #008000; ">/*</span><span style="color: #008000; "> = 0</span><span style="color: #008000; ">*/</span>, <br />                               <span style="color: #0000FF; ">int</span>             nHeight<span style="color: #008000; ">/*</span><span style="color: #008000; "> = 0</span><span style="color: #008000; ">*/</span>,<br />                               ETextAlign      eAlignMask<span style="color: #008000; ">/*</span><span style="color: #008000; "> = kAlignCenter</span><span style="color: #008000; ">*/</span>,<br />                               <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *    pFontName<span style="color: #008000; ">/*</span><span style="color: #008000; "> = nil</span><span style="color: #008000; ">*/</span>,<br />                               <span style="color: #0000FF; ">int</span>             nSize<span style="color: #008000; ">/*</span><span style="color: #008000; "> = 0</span><span style="color: #008000; ">*/</span>)<br />{<br />    <span style="color: #0000FF; ">bool</span> bRet = <span style="color: #0000FF; ">false</span>;<br /><br />    <span style="color: #0000FF; ">do</span> <br />    {<br />        CC_BREAK_IF(! pText);<br />        <br />        <strong>BitmapDC </strong>&dc = sharedBitmapDC();<br /><br />        CC_BREAK_IF(! dc.getBitmapFromJava(pText, nWidth, nHeight, eAlignMask, <strong>pFontName</strong>, nSize));<br /><br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> assign the dc.m_pData to m_pData in order to save time</span><span style="color: #008000; "><br /></span>        m_pData = dc.m_pData;<br />        CC_BREAK_IF(! m_pData);<br /><br />        m_nWidth    = (<span style="color: #0000FF; ">short</span>)dc.m_nWidth;<br />        m_nHeight   = (<span style="color: #0000FF; ">short</span>)dc.m_nHeight;<br />        m_bHasAlpha = <span style="color: #0000FF; ">true</span>;<br />        m_bPreMulti = <span style="color: #0000FF; ">true</span>;<br />        m_nBitsPerComponent = 8;<br /><br />        bRet = <span style="color: #0000FF; ">true</span>;<br />    } <span style="color: #0000FF; ">while</span> (0);<br /><br />    <span style="color: #0000FF; ">return</span> bRet;<br />}</div><br />鐒跺悗璋冪敤浜哸ndroid騫沖彴涓嬬殑BitmapDC<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->    <span style="color: #0000FF; ">bool</span> getBitmapFromJava(<span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *text, <span style="color: #0000FF; ">int</span> nWidth, <span style="color: #0000FF; ">int</span> nHeight, CCImage::ETextAlign eAlignMask, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> * pFontName, <span style="color: #0000FF; ">float</span> fontSize)<br />    {<br />        JniMethodInfo methodInfo;<br />        <span style="color: #0000FF; ">if</span> (! JniHelper::getStaticMethodInfo(methodInfo, "<strong>org/cocos2dx/lib/Cocos2dxBitmap</strong>", "<strong>createTextBitmap</strong>", <br />            "(Ljava/lang/String;Ljava/lang/String;IIII)V"))<br />        {<br />            CCLOG("%s %d: error to get methodInfo", __FILE__, __LINE__);<br />            <span style="color: #0000FF; ">return</span> <span style="color: #0000FF; ">false</span>;<br />        }<br /><br />        <img src="http://www.shnenglu.com/Images/dot.gif" alt="" /><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /><br />}</div><br />榪欓噷鏄劇ず浜嗚皟鐢↗AVA浠g爜<strong style="font-size: 13.333333969116211px; ">Cocos2dxBitmap.java</strong>涓嬬殑<strong style="font-size: 13.333333969116211px; ">createTextBitmap</strong>鍑芥暟<br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->    <span style="color: #008000; ">/*</span><span style="color: #008000; "><br />     * @width: the width to draw, it can be 0<br />     * @height: the height to draw, it can be 0<br />     </span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">static</span> <span style="color: #0000FF; ">void</span> createTextBitmap(String content, String fontName, <br />            <span style="color: #0000FF; ">int</span> fontSize, <span style="color: #0000FF; ">int</span> alignment, <span style="color: #0000FF; ">int</span> width, <span style="color: #0000FF; ">int</span> height){<br />        <br />        content = refactorString(content);       <br />        Paint paint = <strong>newPaint</strong>(<strong>fontName</strong>, fontSize, alignment);<br />        <br />        TextProperty textProperty = computeTextProperty(content, paint, width, height);          <br /><br />        <span style="color: #0000FF; ">int</span> bitmapTotalHeight = (height == 0 ? textProperty.totalHeight:height);<br /><br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> Draw text to bitmap</span><span style="color: #008000; "><br /></span>        Bitmap bitmap = Bitmap.createBitmap(textProperty.maxWidth, <br />                bitmapTotalHeight, Bitmap.Config.ARGB_8888);<br />        Canvas canvas = <span style="color: #0000FF; ">new</span> Canvas(bitmap);<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> Draw string</span><span style="color: #008000; "><br /></span>        FontMetricsInt fm = paint.getFontMetricsInt();<br />        <span style="color: #0000FF; ">int</span> x = 0;<br />        <span style="color: #0000FF; ">int</span> y = computeY(fm, height, textProperty.totalHeight, alignment);<br />        String[] lines = textProperty.lines;<br />        <span style="color: #0000FF; ">for</span> (String line : lines){<br />            x = computeX(paint, line, textProperty.maxWidth, alignment);<br />            canvas.drawText(line, x, y, paint);<br />            y += textProperty.heightPerLine;<br />        }<br />        <br />        initNativeObject(bitmap);<br />    }</div><br />鍦?strong style="font-size: 13.333333969116211px; ">newPaint</strong>鍑芥暟涓皟鐢ㄤ簡瀛椾綋鍔犺澆<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">private</span> <span style="color: #0000FF; ">static</span> Paint newPaint(String fontName, <span style="color: #0000FF; ">int</span> fontSize, <span style="color: #0000FF; ">int</span> alignment){<br />        Paint paint = <span style="color: #0000FF; ">new</span> Paint();<br />        paint.setColor(Color.WHITE);<br />        paint.setTextSize(fontSize);      <br />        paint.setAntiAlias(<span style="color: #0000FF; ">true</span>);    <br />        <br />        <span style="color: #008000; ">/*</span><span style="color: #008000; "><br />         * Set type face for paint, now it support .ttf file.<br />         </span><span style="color: #008000; ">*/</span><br />        <span style="color: #0000FF; ">if</span> (fontName.endsWith(<span style="color: red; ">".ttf"</span>)){     <span style="color: red; "> //</span><span style="font-size: 14.44444465637207px; color: red; ">瀛椾綋闇瑕?ttf緇撴潫</span><br />             <span style="color: #0000FF; ">try</span> {<br />                <span style="color: #008000; ">//</span><span style="color: #008000; ">Typeface typeFace = Typeface.createFromAsset(context.getAssets(), fontName);</span><span style="color: #008000; "><br /></span>                 <strong>Typeface typeFace = Cocos2dxTypefaces.<span style="color: #0000FF; ">get</span>(context, fontName);</strong><br />                  <strong>paint.setTypeface(typeFace);</strong><br />             } <span style="color: #0000FF; ">catch</span> (Exception e){<br />                 Log.e("Cocos2dxBitmap", <br />                     "error to create ttf type face: " + fontName);<br />                 <br />                 <span style="color: #008000; ">/*</span><span style="color: #008000; "><br />                  * The file may not find, use system font<br />                  </span><span style="color: #008000; ">*/</span><br />                 paint.setTypeface(Typeface.create(fontName, Typeface.NORMAL));<br />             }<br />        }<br />        <span style="color: #0000FF; ">else</span> {<br />            paint.setTypeface(Typeface.create(fontName, Typeface.NORMAL));<br />        }<br />        <br />        .......<br />        <br />        <span style="color: #0000FF; ">return</span> paint;<br />    }</div><div>錛圥S:Typeface綾誨畾涔夊瓧浣撳拰瀛椾綋鍐呭湪鐨勭被鍨嬨傝繖涓被琚敤鍦ㄧ敾絎擯aint璁劇疆鐨勬椂鍊欙紝姣斿鐢╰extSize,textSkewX鍜宼extScale璁劇疆鏉ユ寚瀹歵ext鍦ㄧ敾鐨勬椂鍊欏浣曟潵鏄劇ず鍜屾祴閲忋?/div>android涓敤Typeface鏉ユ寚瀹氬瓧浣擄級<br /><br />鍙︿竴鐐歸渶瑕佹敞鎰忕殑鏄細瀛椾綋闇瑕?ttf緇撴潫<br /><br /><strong>浣跨敤鏂規硶</strong>錛?br />1.鍦╬roj.android\assets鏂囦歡澶逛腑娣誨姞<span style="color: red; ">girl.ttf</span><br />2.紼嬪簭涓皟鐢ㄥ搴旂殑瀛椾綋灝卞彲浠ヤ簡<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->    CCSize size = CCDirector::sharedDirector()->getWinSize();<br />    CCLabelTTF* label = CCLabelTTF::create("灝戝コHelloWorld", "<span style="color: red; ">girl.ttf</span>", 24);<br />    label->setPosition(ccp(size.width/2, size.height/2));<br />    addChild(label);</div>3.濡傛灉浣犻渶瑕佹樉紺烘眽瀛楋紝鍒欓渶瑕佸皢鍖呭惈鏈夊瓧絎︿覆鐨勬枃浠?濡?cpp)杞崲涓篣TF-8鏍煎紡緙栫爜錛屽惁鍒欎細鏄劇ず涔辯爜<br /><br />IOS鍜寃in32騫沖彴娌℃湁嫻嬭瘯錛岀浉淇$殑宸笉澶?br /><br />闄勪笂嫻嬭瘯鍥劇墖錛?br /><img src="http://www.shnenglu.com/images/cppblog_com/wc250en007/cocos2d-x/Screenshot_2012-10-15-16-55-33.png" alt="" /><br /><br /><br /><br />鍝堝搱 鍙互鍦ㄦ父鎴忎腑鎵撳寘鑷繁鎯寵鐨勫瓧浣撳暒<br /><br /><br /><br /><br /><br /><br /><img src ="http://www.shnenglu.com/wc250en007/aggbug/193320.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-10-15 16:58 <a href="http://www.shnenglu.com/wc250en007/archive/2012/10/15/193320.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos2d-x UI涔嬫妧鑳藉喎鍗存寜閽?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/08/28/188511.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 28 Aug 2012 03:33:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/08/28/188511.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/188511.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/08/28/188511.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/188511.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/188511.html</trackback:ping><description><![CDATA[<div><div>鎶鑳藉喎鍗寸殑鏁堟灉璺熼瓟鍏戒笘鐣屼腑鐨勬妧鑳藉喎鍗寸被浼鹼紝鍔熻兘濡備笅:</div><div></div><div>鎶鑳藉浘鏍囩偣鍑繪椂浼氭湁鎸変笅鏁堟灉錛屾姮璧峰悗寮濮嬪喎鍗磋鏃訛紝鍐峰嵈璁℃椂鎶鏈悗璇ュ浘鏍囨墠鍙互鍐嶆榪涜鐐瑰嚮銆?/div><br />瀵瑰簲鐨勫浘鐗囪祫婧愶細</div><div><span style="color: red; ">    <strong>娉ㄦ剰</strong>:娣誨姞child鏃惰娉ㄦ剰涓婁笅灞?/span></div><div><span style="color: red; ">    鏈涓嬫柟鏄疌CMenuItemImage 鎸夐挳鍥劇墖</span></div><div><span style="color: red; ">    鍏舵鏄ā鐗堝浘鐗?鍗婇忔槑妯$増鍥劇墖</span></div><div><span style="color: red; ">    鏈涓婃柟鏄疌CProgressTimer 鍥劇墖鏄渶涓嬪浘涓緝澶х殑閭d釜鐩劇墝鍥劇墖</span></div><div>榪欐槸浣跨敤鐨勫浘鐗囪祫婧?/div><div>  <img src="http://www.shnenglu.com/images/cppblog_com/wc250en007/cocos2d-x/normal.png" border="0" alt="" width="64" height="64" /> <img src="http://www.shnenglu.com/images/cppblog_com/wc250en007/cocos2d-x/click.png" border="0" alt="" width="64" height="64" /> <img src="http://www.shnenglu.com/images/cppblog_com/wc250en007/cocos2d-x/stencil.png" border="0" alt="" width="64" height="64" /></div><div></div><div><strong>鍔ㄧ敾鍘熺悊</strong>錛?/div><div>闈炲喎鍗寸姸鎬佹椂鍙樉紺篊CMenuItemImage錛屽綋鍐峰嵈寮濮嬭鏃舵椂錛屽皢鎸夐挳璁句負涓嶅彲鐐瑰嚮鐘舵侊紝鍚屽皢鍗婇忔槑妯℃澘鍜岃繘搴︽潯綺劇伒璁劇疆涓哄彲瑙佺姸鎬侊紝騫朵笖榪涘害鏉$簿鐏靛紑濮嬭繘琛屾棆杞姩浣滐紝鏃嬭漿緇撴潫鍚庡湪鍥炶皟鍑芥暟涓皢鍗婇忔槑妯℃澘鍜岃繘搴︽潯綺劇伒璁句負涓嶅彲瑙侊紝鎸夐挳閲嶆柊璁劇疆涓哄彲鐐瑰嚮鐘舵併?br /><br /><strong>浣跨敤鏂規硶</strong>錛?br /><div>鍒涘緩涓涓猄killButton鎸囬拡錛屼慨鏀瑰喎鍗存椂闂達紝鍔ㄧ敾琛ㄧ幇(濡傝挋鏉夸粠鏃嬭漿鏀逛負绔栫洿鏂瑰悜)錛屽茍灝哠killButton娣誨姞鍒發ayer涓婂嵆鍙?br /><br />浼犱釜鏁堟灉鍥?br /><img src="http://www.shnenglu.com/images/cppblog_com/wc250en007/cocos2d-x/SkillButton.png" border="0" alt="" width="636" height="238" /><br /><br /><br /><div>SkillButton.h</div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; ">/*</span><span style="color: #008000; ">* <br />    瀹炵幇鎶鑳藉喎鍗存晥鏋?nbsp;<br /><br />    Notice:娣誨姞child鏃惰娉ㄦ剰涓婁笅灞傚叧緋?br />    鏈涓嬫柟鏄寜閽?nbsp;鍏舵鏄崐閫忔槑鐨勬ā鐗堝浘鐗?nbsp;鏈涓婃柟鏄疌CProgressTimer榪涘害鏉$簿鐏?br /></span><span style="color: #008000; ">*/</span><br />#ifndef _SKILLBUTTON_H_<br /><span style="color: #0000FF; ">#define</span> _SKILLBUTTON_H_<br />#include <cocos2d.h><br /><br /><span style="color: #0000FF; ">class</span> SkillButton : <span style="color: #0000FF; ">public</span> cocos2d::CCNode<br />{<br /><span style="color: #0000FF; ">public</span>:<br />    SkillButton();<br />    <span style="color: #0000FF; ">virtual</span> ~SkillButton();<br /><br />    <span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鍒涘緩涓涓猄killButton瀵硅薄<br />        </span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">static</span> SkillButton* createSkillButton(<span style="color: #0000FF; ">float</span> cdTime,<br />                                        <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* stencil_file_name, <br />                                        <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_normal_name, <br />                                        <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_click_name);<br /><br />    <span style="color: #008000; ">/*</span><span style="color: #008000; ">* CD鏃墮棿璁劇疆<br />        </span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">void</span>    setCDTime(<span style="color: #0000FF; ">float</span> time) { mCDTime = time; }<br />    <span style="color: #0000FF; ">float</span>   getCDTime() <span style="color: #0000FF; ">const</span> { <span style="color: #0000FF; ">return</span> mCDTime; }<br /><br />    <span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鎶鑳芥寜閽偣鍑誨洖璋?nbsp;</span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">void</span>    skillClickCallBack(cocos2d::CCObject* obj);<br /><br />    <span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鎶鑳藉喎鍗村畬姣曞洖璋?/span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">void</span>    skillCoolDownCallBack(cocos2d::CCNode* node);<br /><br /><span style="color: #0000FF; ">private</span>:<br /><br />    <span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鍒濆鍖?nbsp;</span><span style="color: #008000; ">*/</span><br />    <span style="color: #0000FF; ">bool</span>    init(<span style="color: #0000FF; ">float</span> cdTime, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* stencil_file_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_normal_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_click_name);<br /><br /><span style="color: #0000FF; ">private</span>:<br />    cocos2d::CCMenuItemImage*   mItemSkill;     <span style="color: #008000; ">//</span><span style="color: #008000; "> 鎶鑳芥寜閽?/span><span style="color: #008000; "><br /></span>    cocos2d::CCMenu*            mMenuSkill;     <span style="color: #008000; ">//</span><span style="color: #008000; "> 鎶鑳芥寜閽墍鍦╩enu</span><span style="color: #008000; "><br /></span>    cocos2d::CCSprite*          mStencil;       <span style="color: #008000; ">//</span><span style="color: #008000; "> 钂欐澘綺劇伒,榛戣壊鍗婇忔槑(榪欎釜鏄負浜嗘樉紺轟竴涓喎鍗磋鏃舵晥鏋?</span><span style="color: #008000; "><br /></span>    cocos2d::CCProgressTimer*   mProgressTimer; <span style="color: #008000; ">//</span><span style="color: #008000; "> 鏃墮棿榪涘害鏉$簿鐏?360搴︽棆杞?</span><span style="color: #008000; "><br /></span>    <span style="color: #0000FF; ">float</span>                       mCDTime;          <span style="color: #008000; ">//</span><span style="color: #008000; "> CD鏃墮棿</span><span style="color: #008000; "><br /></span>};<br /><br /><br /><span style="color: #0000FF; ">#endif</span></div><br /><br />SkillButton.cpp<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#include "SkillButton.h"<br /><br /><br />USING_NS_CC;<br /><br />SkillButton::SkillButton():<br />    mItemSkill(NULL),<br />    mMenuSkill(NULL),<br />    mStencil(NULL),<br />    mProgressTimer(NULL),<br />    mCDTime(1.f)<br />{<br /><br />}<br /><br />SkillButton::~SkillButton()<br />{<br /><br />}<br /><br />SkillButton* SkillButton::createSkillButton(<span style="color: #0000FF; ">float</span> cdTime, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* stencil_file_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_normal_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_click_name)<br />{<br />    SkillButton* skillButton = <span style="color: #0000FF; ">new</span> SkillButton();<br />    <span style="color: #0000FF; ">if</span> (skillButton && skillButton->init(cdTime, stencil_file_name, button_normal_name, button_click_name))<br />    {<br />        skillButton->autorelease();<br />        <span style="color: #0000FF; ">return</span> skillButton;<br />    }<br />    <span style="color: #0000FF; ">else</span><br />    {<br />        delete skillButton;<br />        skillButton = NULL;<br />    }<br /><br />    <span style="color: #0000FF; ">return</span> NULL;<br />}<br /><br /><span style="color: #0000FF; ">bool</span> SkillButton::init(<span style="color: #0000FF; ">float</span> cdTime, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* stencil_file_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_normal_name, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span>* button_click_name)<br />{<br />    CCAssert(stencil_file_name, "SkillButton::init stencil_file_name != NULL");<br />    CCAssert(button_normal_name, "SkillButton::init button_normal_name != NULL");<br />    CCAssert(button_click_name, "SkillButton::init button_click_name != NULL");<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> Notice:娣誨姞child鏃惰娉ㄦ剰涓婁笅灞?br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 鏈涓嬫柟鏄疌CMenuItemImage 鍏舵鏄ā鐗堝浘鐗?nbsp;鏈涓婃柟鏄疌CProgressTimer<br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 娣誨姞鎶鑳芥寜閽?/span><span style="color: #008000; "><br /></span>    mItemSkill = CCMenuItemImage::create(button_normal_name, button_click_name, <span style="color: #0000FF; ">this</span>, menu_selector(SkillButton::skillClickCallBack));<br />    mItemSkill->setPosition(CCPointZero);<br /><br />    mMenuSkill = CCMenu::create(mItemSkill, NULL);<br />    mMenuSkill->setPosition(CCPointZero);<br />    addChild(mMenuSkill, -100);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 娣誨姞闃村獎妯$増</span><span style="color: #008000; "><br /></span>    mStencil = CCSprite::create(stencil_file_name);<br />    mStencil->setPosition(CCPointZero);<br />    mStencil->setVisible(<span style="color: #0000FF; ">false</span>);<br />    addChild(mStencil);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 娣誨姞鏃嬭漿榪涘害鏉$簿鐏?/span><span style="color: #008000; "><br /></span>    CCSprite* progressSprite = CCSprite::create(button_normal_name);<br />    mProgressTimer = CCProgressTimer::create(progressSprite);<br />    mProgressTimer->setPosition(CCPointZero);<br />    mProgressTimer->setVisible(<span style="color: #0000FF; ">false</span>);<br />    addChild(mProgressTimer, 100);<br /><br />    mCDTime = cdTime;<br />    <span style="color: #0000FF; ">return</span> <span style="color: #0000FF; ">true</span>;<br />}<br /><br /><span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鎶鑳芥寜閽偣鍑誨洖璋?nbsp;</span><span style="color: #008000; ">*/</span><br /><span style="color: #0000FF; ">void</span> SkillButton::skillClickCallBack(cocos2d::CCObject* obj)<br />{<br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍐峰嵈璁℃椂錛屽嵆鏃剁姸鎬佹妧鑳芥寜閽笉鍙偣鍑?/span><span style="color: #008000; "><br /></span>    mItemSkill->setEnabled(<span style="color: #0000FF; ">false</span>);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 妯$増鍙</span><span style="color: #008000; "><br /></span>    mStencil->setVisible(<span style="color: #0000FF; ">true</span>);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 璁劇疆綺劇伒榪涘害鏉′負欏烘椂閽?/span><span style="color: #008000; "><br /></span>    mProgressTimer->setVisible(<span style="color: #0000FF; ">true</span>);<br />    mProgressTimer->setType(kCCProgressTimerTypeRadial);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; ">鍑嗗涓涓?縐掓棆杞?60搴︾殑鍔ㄧ敾(閫愭笎瑕嗙洊鍗婇忔ā鏉垮艦鎴愬喎鍗存晥鏋?榪欓噷榪涜璁℃椂鍐峰嵈鍔ㄧ敾鐨勫疄鐜板拰鏃墮棿鎺у埗)</span><span style="color: #008000; "><br /></span>    CCActionInterval* action_progress_to = CCProgressTo::create(mCDTime, 100);<br />    CCCallFunc* action_callback = CCCallFuncN::create(<span style="color: #0000FF; ">this</span>, callfuncN_selector(SkillButton::skillCoolDownCallBack));<br />    mProgressTimer->runAction(CCSequence::create(action_progress_to, action_callback, NULL));<br />}<br /><br /><span style="color: #008000; ">/*</span><span style="color: #008000; ">* 鎶鑳藉喎鍗村畬鎴愬洖璋?nbsp;</span><span style="color: #008000; ">*/</span><br /><span style="color: #0000FF; ">void</span> SkillButton::skillCoolDownCallBack(CCNode* node)<br />{<br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 璁劇疆钂欐澘涓嶅彲瑙?/span><span style="color: #008000; "><br /></span>    mStencil->setVisible(<span style="color: #0000FF; ">false</span>);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 榪涘害鏉℃妧鑳戒笉鍙</span><span style="color: #008000; "><br /></span>    mProgressTimer->setVisible(<span style="color: #0000FF; ">false</span>);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鎸夐挳緗負鍙敤</span><span style="color: #008000; "><br /></span>    mItemSkill->setEnabled(<span style="color: #0000FF; ">true</span>);<br />}</div><br />嫻嬭瘯浠g爜錛?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->    mSkillButton = SkillButton::createSkillButton(2.f, "stencil.png", "normal.png", "click.png");<br />    mSkillButton->setPosition(ccp(s.width/2, s.height/2));<br />    addChild(mSkillButton);</div><br /><a title="浠g爜涓嬭澆" href="/Files/wc250en007/cocos2d-x/SkillButton.rar">浠g爜涓嬭澆</a><br /><br />鍙傝冨湴鍧錛?br /><a >http://blog.sina.com.cn/s/blog_732784f70100umuj.html</a> <br /><a >http://www.cocos2dev.com/?p=64</a> <br /><br /></div></div><img src ="http://www.shnenglu.com/wc250en007/aggbug/188511.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-08-28 11:33 <a href="http://www.shnenglu.com/wc250en007/archive/2012/08/28/188511.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos2d-x 緇橲prite娣誨姞Mask錛堥伄緗?http://www.shnenglu.com/wc250en007/archive/2012/08/26/188362.htmlLet me see seeLet me see seeSun, 26 Aug 2012 15:06:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/08/26/188362.htmlhttp://www.shnenglu.com/wc250en007/comments/188362.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/08/26/188362.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/188362.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/188362.html闃呰鍏ㄦ枃

]]>
cocos2d-x 璐濆灝旀洸綰夸箣娓告垙搴旂敤http://www.shnenglu.com/wc250en007/archive/2012/08/24/188048.htmlLet me see seeLet me see seeFri, 24 Aug 2012 10:04:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/08/24/188048.htmlhttp://www.shnenglu.com/wc250en007/comments/188048.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/08/24/188048.html#Feedback2http://www.shnenglu.com/wc250en007/comments/commentRss/188048.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/188048.html璐濆灝旀洸綰挎槸搴旂敤浜庝簩緇村浘褰㈠簲鐢ㄧ▼搴忕殑鏁板鏇茬嚎銆傛洸綰跨殑瀹氫箟鏈夊洓涓偣錛氳搗濮嬬偣銆佺粓姝㈢偣錛堜篃縐伴敋鐐癸級浠ュ強涓や釜鐩鎬簰鍒嗙鐨勪腑闂寸偣銆傛粦鍔ㄤ袱涓腑闂寸偣錛岃礉濉炲皵鏇茬嚎鐨勫艦鐘朵細鍙戠敓鍙樺寲 

p0璧風偣錛宲3鏄粓鐐癸紝p1,p2鏄帶鍒剁偣
http://en.wikipedia.org/wiki/B%C3%A9zier_curve 

浜?娓告垙搴旂敤

鎴戜滑鍙兘闇瑕佸湪娓告垙涓ā鎷熷寮規垨綆殑縐誨姩杞ㄨ抗錛岀敤鎵峜ocos2d-x涓嬬殑bezier鍙互杞繪澗鐨勬ā鎷熷嚭鏉?br />cocos2d-x涓嬩負鎴戜滑鎻愪緵浜嗕袱涓猘ction CCBezierBy鍜孋CBezierTo錛屼嬌鐢ㄤ篃寰堢畝鍗曪紝鍙渶瑕佸~鍏呯粨鏋勪綋錛?br />
        ccBezierConfig tr0;    
        tr0.endPosition=ccp(280, 240);
        tr0.controlPoint_1=ccp(40, 400);
        tr0.controlPoint_2=ccp(280, 80);

        CCActionInterval* bezierForward = CCBezierBy::create(1.f, tr0);
鎴戜滑鍙渶瑕佹彁渚涗袱涓帶鍒剁偣鍜屼竴涓粓鐐逛綅緗氨鍙互浜嗭紝榪欓噷瑕佹敞鎰忕殑鏄?br />CCBezier榪欎釜action鏄互褰撳墠浣嶇疆涓鴻搗濮嬬偣鐨勶紝涓や釜鎺у埗鐐瑰拰緇堢偣閮芥槸鐩稿浜庤搗濮嬬偣鐨勫亸縐誨?/span>
濡傦細tr0.endPosition = ccp(280,240); 鏄浉瀵逛簬璧峰鐐圭殑鍋忕Щ

涓? 娓告垙瀹炰緥
鎴戜滑鏉ユā鎷熶竴涓皠綆父鎴忥紝灞忓箷涓績鐐規槸涓涓漢錛岀偣鍑誨睆騫曚換浣曚綅緗紝浼氭湞榪欎釜鐐瑰嚮浣嶇疆灝勪竴鏀錛岀鍒拌揪鎸囧畾鐐瑰悗鎶栧姩涓浼?鎾斁涓涓姈鍔ㄥ姩鐢?,鐒跺悗娑堝け


p0鏄鐨勫彂灝勪綅緗紝p3鏄鐨勭洰鏍囩偣錛宲1,p2鏄帶鍒墮琛岃建榪圭殑鎺у埗鐐癸紝p1p0p3緇勬垚浜嗙鐨勮搴︼紝鍋囪鎴戜滑鏈夊崄鍏釜鏂瑰悜鐨勭錛屽嵆360.f/16= 22.5搴︿竴涓柟鍚?br />



絎竴姝ワ細瀛樿串綆殑椋炶鍔ㄧ敾鍜屾姈鍔ㄥ姩鐢誨埌CCAnimationCatch涓紝鍚庨潰鎾斁鍔ㄧ敾鏃墮氳繃鍚嶅瓧鏉ヨ幏寰楀姩鐢?br />
    // 瀛樿串綆殑椋炶鍔ㄧ敾,綆湁澶氬皯涓柟鍚戯紝灝卞瓨璐灝戜釜鍔ㄧ敾
    for (int i = 0; i < mDirections; ++i)
    {
        // 綆琛屽姩鐢?nbsp;
        CCArray* spriteFramesArray = CCArray::create(flyFrames);

        // 浠庡浘鐗囦腑姣忎竴甯х殑浣嶇疆鏉ョ敓鎴怌CSpriteFrame
        for ( int j = 0; j < flyFrames; ++j )
        {
            CCSpriteFrame* frame = CCSpriteFrame::create(pTexture, 
                CCRectMake(j * frame_width, i * frame_height, frame_width, frame_height));
            spriteFramesArray->addObject(frame);
        }

        //浠ラ敭鍊煎艦寮忓瓨璐姩鐢誨埌CCAnimationCatch涓?/span>
        float frameTime = 1.f / (mSpeed * flyFrames);
        CCAnimation* animation = CCAnimation::create(spriteFramesArray, frameTime);

        String name = getArrowAnimateName(i);
        CCAnimationCache::sharedAnimationCache()->addAnimation(animation, name.c_str());

        spriteFramesArray->removeAllObjects();
        spriteFramesArray->release();
    }

    // 鍚岀悊瀛樿串綆殑鎶栧姩鍔ㄧ敾
    .



絎簩姝ワ細鑾峰緱灝勭鐩爣鐐癸紝鐢ㄨ礉濉炲皵鏇茬嚎妯℃嫙綆殑椋炶杞ㄨ抗
      棣栧厛錛岃姹傚嚭綆殑灝勫嚮鏂瑰悜錛屼粠CCAnimationCatche涓彇鍑哄搴旂殑椋炶鍔ㄧ敾錛屾垜浠湁16涓柟鍚戠殑鍔ㄧ敾錛屼笅闈㈡槸鍐欑殑涓涓畝鍗曠殑姹傚皠綆搴﹀拰鏂瑰悜鐨勫嚱鏁幫細

#define EPSION 0.0001f 
#define IS_EQUAL(val1, val2)  (fabs((val1) - (val2)) <= EPSION)
const int mDirections = 16;

/** 鏇存柊鏂瑰悜,浼犲叆璧峰鐐瑰拰緇堟鐐癸紝鍒╃敤actan鏉ヨ幏寰楀皠綆殑寮у害錛岀劧鍚庤漿鎹負瑙掑害
    
*/
int ArrowDirection::updateDirection(const cocos2d::CCPoint& ptRole, const cocos2d::CCPoint& ptTarget)
{
    CCPoint sub = ccpSub(ptTarget, ptRole);

    if (IS_EQUAL(sub.x, 0.f) && IS_EQUAL(sub.y, 0.f))
        return -1;

    if (IS_EQUAL(sub.y, 0.f) && sub.x > 0)
    {
        mDegree = 90.f;
    }
    else if (IS_EQUAL(sub.y, 0.f) && sub.x < 0)
    {
        mDegree = 180.f;
    }
    else
    {
        // 寮у害杞搴?/span>
        float radians = atanf(sub.x/sub.y);
        mDegree = CC_RADIANS_TO_DEGREES(radians);

        if (sub.x >= 0 && sub.y >= 0 )          // 絎竴璞¢檺
        {

        }
        else if (sub.x >= 0 && sub.y <= 0)      // 絎簩璞¢檺
        {
            mDegree += 180.f;
        }
        else if (sub.x <= 0 && sub.y <= 0)      // 絎笁璞¢檺
        {
            mDegree += 180.f;
        }
        else                                   // 絎洓璞¢檺
        {
            mDegree += 360.f;
        }
    }

    if (mDegree < 0.f)
        mDegree = 0.f;
    if (mDegree > 360.f)
        mDegree = 0.f;

    float single = (float)360 / 16;
    for (int i = 0; i < mDirections; ++i)
    {
        if (mDegree >= i * single && mDegree <= (i+1) * single)
            return mDirections;
    }

    return mDirections - 1;
}


      鏈変簡瑙掑害鍜屽姩鐢誨氨濂藉姙浜嗭紝鎴戜滑宸茬粡鐭ラ亾浜嗙洰鏍囩偣錛屽搱鍝堬紝鍙互璁╃涓杈規挱鏀鵑琛屽姩鐢諱竴杈規部鐫璐濆灝旀洸綰跨Щ鍔ㄥ氨OK浜?br />
    // 鎾斁綆琛屽姩浣?/span>
    String name = getArrowAnimateName(dir);
    cocos2d::CCAnimation* animation = CCAnimationCache::sharedAnimationCache()->animationByName(name.c_str());

    CCAnimate* animate = CCAnimate::actionWithAnimation(animation);
    mSprite->runAction(animate);

    // 濉厖bezier
    ccBezierConfig cfg;
    cfg.controlPoint_1 = ccp(0, control_height);
    cfg.controlPoint_2 = ccp(ptRelativeTarget.x, ptRelativeTarget.y + control_height);
    cfg.endPosition = ptRelativeTarget;

    // 娌跨潃璐濆灝旀洸綰跨Щ鍔?/span>
    CCActionInterval* bezierForward = CCBezierBy::create(2.f, cfg);
    CCActionInterval* seq = (CCActionInterval*)CCSequence::create(bezierForward, 
                                                        CCCallFuncND::create(this, callfuncND_selector(ArrowDirection::arrowFlyOverCallBack), this),
                                                        NULL);

    mSprite->runAction(seq);
鎴戜滑涓篴ction搴忓垪娣誨姞浜嗗洖璋冨嚱鏁?strong style="font-size: 13px; ">ArrowDirection::arrowFlyOverCallBack 綆琛屽畬姣曞悗榪涘叆涓嬩竴闃舵
 

絎笁姝ワ細綆埌杈劇洰鏍囩偣錛屾挱鏀炬姈鍔ㄥ姩鐢?br />
鍦ㄤ笂涓闃舵鐨勫洖璋冨嚱鏁頒腑鍏堝仠姝㈡墍鏈夊姩鐢?br />
sprite->stopAllActions();

鐒跺悗鎾斁鎶栧姩鍔ㄧ敾錛屾姈鍔ㄥ姩鐢誨啀鍔犱竴涓洖璋冨嚱鏁?br />
CCAnimate* animate = CCAnimate::actionWithAnimation(animation);
sprite->runAction(CCRepeatForever::create(animate));

CCActionInterval* delay = CCDelayTime::create(pArrowDir->getArrowShakeTime());
CCActionInterval* seq = (CCActionInterval*)CCSequence::create(delay, 
                                                              CCCallFuncND::create(pArrowDir, callfuncND_selector(ArrowDirection::arrowDisappearedCallBack), pArrowDir),
                                                              NULL);

sprite->runAction(seq);

絎洓姝ワ細鎾斁瀹屾瘯錛屾竻闄ょ
鍦ㄤ笂涓闃舵鍥炶皟涓垹闄よ嚜宸?br />
removeFromParentAndCleanup(true);

-------------------------------------------------------------------------------
璋冭瘯甯姪錛?br />1.鍏夌湅鏄笉澶熺殑錛岃鐪嬬鐨勯琛岃建榪癸紝榪樻槸瑕佺敾鍑烘潵錛屽湪CCNode鐨勬淳鐢熺被涓噸杞絛raw()鍑芥暟錛屽湪閲岄潰鐢昏礉濉炲皵鏇茬嚎
void ArrowDirection::draw()
{
    if (mDrawBezier)
    {
        CCPoint control1 = ccpAdd(mBezierStartPoint, mBezierConfig.controlPoint_1);
        CCPoint control2 = ccpAdd(mBezierStartPoint, mBezierConfig.controlPoint_2);
        CCPoint end = ccpAdd(mBezierStartPoint, mBezierConfig.endPosition);

        // 鐢繪帶鍒剁偣
        ccDrawLine(mBezierStartPoint, control1);
        ccDrawLine(control2, end);

        // 鐢昏礉濉炲皵鏇茬嚎
        ccDrawCubicBezier(mBezierStartPoint, mBezierConfig.controlPoint_1, mBezierConfig.controlPoint_2, mBezierConfig.endPosition, 100);
    }
}
鏇村鐢繪硶鍙傝僣ocos2d-x綺掑瓙DrawPrimitivesTest


]]>
cocos2d-x 闅忔満鏁?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/08/24/188128.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Fri, 24 Aug 2012 06:14:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/08/24/188128.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/188128.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/08/24/188128.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/188128.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/188128.html</trackback:ping><description><![CDATA[ cocos2d-x涓彁渚涗簡CCRANDOM_0_1()瀹?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; ">/*</span><span style="color: #008000; ">* @def CCRANDOM_0_1<br /> returns a random float between 0 and 1<br /> </span><span style="color: #008000; ">*/</span><br /><span style="color: #0000FF; ">#define</span> CCRANDOM_0_1() ((float)rand()/RAND_MAX)</div>鐢熸垚float鑼冨洿鏄痆0.f,1.f]錛屽寘鎷?鍜?<br />鍝堝搱 濡傛灉鎴戜滑闇瑕乕0,100]鐨勯殢鏈烘暟<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">float</span> random = CCRANDOM_0_1() * 100; <span style="color: #008000; ">//</span><span style="color: #008000; ">[0,100]   CCRANDOM_0_1() 鍙栧艱寖鍥存槸[0,1]</span></div><img src ="http://www.shnenglu.com/wc250en007/aggbug/188128.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-08-24 14:14 <a href="http://www.shnenglu.com/wc250en007/archive/2012/08/24/188128.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍙戝竷release鐗堟湰鐨刟pk杞歡http://www.shnenglu.com/wc250en007/archive/2012/08/15/187250.htmlLet me see seeLet me see seeWed, 15 Aug 2012 02:11:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/08/15/187250.htmlhttp://www.shnenglu.com/wc250en007/comments/187250.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/08/15/187250.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/187250.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/187250.htmlSigning in Release Mode

When your application is ready for release to other users, you must:

  1. Obtain a suitable private key
  2. Compile the application in release mode
  3. Sign your application with your private key
  4. Align the final APK package
鍙戝竷release鐗堟湰瑕佹湁4姝?br />瀹樻柟璇存槑錛?nbsp; http://developer.android.com/tools/publishing/app-signing.html#releasecompile 


騫蟲椂閫氳繃Eclipse鐢熸垚鍦╞in鐩綍涓嬬殑apk鏂囦歡錛岄兘鏄痙ebug鐗堢殑錛屽浣曞垱寤簉elease鐗堢殑杞歡鍛紵 
鍏跺疄榪樻槸鎸虹畝鍗曠殑銆?nbsp;

1. 閫氳繃java鑷甫鐨刱eytool宸ュ叿錛屽垱寤簉elease鐗堢殑keystore 

keytool -genkey -v -keystore keystore_name.keystore -alias alias_name -keyalg RSA -validity 10000 


keystore_name.keystore錛氳鍒涘緩鐨剅elease鐗坘eystore鐨勬枃浠跺悕 
alias_name錛氬埆鍚嶏紵鍙栦釜濂借鐐圭殑鍚嶅瓧鍚э紝鍚庨潰榪樿鐢ㄥ埌鐨?錛堝~鍐欓厤緗枃浠?
-keyalg RSA錛氶氳繃RSA綆楁硶鐢熸垚 
-validity 10000錛氭湁鏁堟湡錛屽崟浣嶆槸澶?nbsp;

濡傛灉java鐜閰嶇疆姝e父錛岃緭鍏ュ懡浠ゅ悗浼氬嚭鐜頒笅鍒椾俊鎭?nbsp;
Enter keystore password:錛坘eystore鐨勫瘑鐮侊級 
Re-enter new password:錛堢‘璁eystore鐨勫瘑鐮侊級 
What is your first and last name? 
  [Unknown]:  錛堝鍚嶏紝鐢ㄨ嚜宸卞枩嬈㈢殑鍚嶅瓧鍚э紝涓嶇煡閬撲細鏄劇ず鍦ㄥ摢閲岋級 
What is the name of your organizational unit? 
  [Unknown]:  錛堢粍緇囧崟浣嶏級 
What is the name of your organization? 
  [Unknown]:  錛堢粍緇囷紝涓嶇煡閬撳拰涓婇潰閭d釜鏈変粈涔堝尯鍒級 
What is the name of your City or Locality? 
  [Unknown]:  錛堝煄甯傦級 
What is the name of your State or Province? 
  [Unknown]:  錛堝窞錛岀渷錛屽幙錛?nbsp;
What is the two-letter country code for this unit? 
  [Unknown]:  CN 
Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=CN correct? 
  [no]:  yes 錛堢‘璁よ緭鍏ョ殑淇℃伅錛?nbsp;

Generating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with 
a validity of 10,000 days 
        for: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=CN 
Enter key password for <alias_name> 
        (RETURN if same as keystore password):錛坅lias鐨勫瘑鐮侊紝濡傛灉鍜宬eytore瀵嗙爜涓鑷達紝鐩存帴鍥炶濺錛?nbsp;
Re-enter new password:錛堢‘璁lias鐨勫瘑鐮侊級 
[Storing my-release-key.keystore] 


2.鍙戝竷Release鐗堟湰
Signing in Release Mode


When your application is ready for release to other users, you must:

  1. Obtain a suitable private key
  2. Compile the application in release mode
  3. Sign your application with your private key
  4. Align the final APK package
瀹樻柟鐨勬楠ゆ湁4姝ワ紝緙栬瘧release鐗堟湰鐨勫簲鐢ㄧ▼搴?br />
2.1 Eclipse瀵煎嚭
鍦‥clipse涓紝鍙抽敭瑕佸彂甯冪殑欏圭洰錛屼緷嬈¢夋嫨Android Tool -> Export Signed Application Package... 
鐒跺悗灝辨槸step-by-step浜嗭紝閫夋嫨鍒氭墠鐢熸垚鐨剅elease鐗坘eystore錛岃緭鍏ュ瘑鐮侊紝閫夋嫨alias錛岃緭鍏lias瀵嗙爜錛岀敓鎴恟elease鐗堢殑apk銆?nbsp;

2.2 閲囩敤ANT鍛戒護琛屽艦寮?/strong>

$ ant release

By default, the build script compiles the application APK without signing it. The output file in your project bin/ will be <your_project_name>-unsigned.apk. Because the application APK is still unsigned, you must manually sign it with your private key and then align it using zipalign. 

榛樿緙栬瘧鍑烘潵鐨勭増鏈槸娌℃湁璇佷功鐨?em style="color: #006600; font-family: 'courier new', courier, monospace; font-weight: bold; "><your_project_name>-unsigned.apk 錛岄渶瑕佹墜鍔ㄦ坊鍔犺瘉涔﹀拰瀵歸綈

To specify your keystore and alias, open the project ant.properties file (found in the root of the project directory) and add entries for key.store and key.alias. For example: 

鎴戜滑鍙互鍦?strong>ant.properties
鏂囦歡涓寚瀹氳瘉涔︿綅緗拰瀵歸綈

# This file is used to override default values used by the Ant build system.
#
# This file must be checked into Version Control Systems, as it is
# integral to the build system of your project.

# This file is only used by the Ant script.

# You can use this to override default values such as
#  'source.dir' for the location of your java source folder and
#  'out.dir' for the location of your output folder.

# You can also use it define how the release builds are signed by declaring
# the following properties:
#  'key.store' for the location of your keystore and
#  'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.

#鎴戠殑璇佷功鍦ㄤ笂涓綰х洰褰曚笅
#alias鏄垱寤鴻瘉涔︽椂濉啓鐨刟lias_name

key.store=../keystore_name.keystore 
key.alias=alias_name

鎺ヤ笅鏉ョ殑姝ラ寰坋asy浜?br />

Save your changes. Now you can build a signed .apk in release mode:

  1. Open a command-line and navigate to the root of your project directory.
  2. Use Ant to compile your project in release mode:
    ant release
  3. When prompted, enter you keystore and alias passwords.

    Caution: As described above, your password will be visible on the screen.

This creates your Android application .apk file inside the project bin/ directory, named<your_project_name>-release.apk. This .apk file has been signed with the private key specified inant.properties and aligned with zipalign. It's ready for installation and distribution.

ant release鍚庝細鐢熸垚涓涓?em style="color: #006600; font-family: 'courier new', courier, monospace; font-weight: bold; background-color: #f9f9f9; "><your_project_name>-release.apk鐨勭増鏈?br />
鍟婏紝涓栫晫娓呴潤浜唦~~ 

鏈鍚庡氨鏄畨瑁呬簡銆?nbsp;
鐢變簬浣跨敤浜嗘柊鐨勭鍚嶏紝蹇呴』鍏堝嵏杞藉師鏉ュ畨瑁呯殑紼嬪簭鎵嶅彲浠ュ畨瑁呫?/span> 


/////////////////////////////////////////////////////////////////////////////////////////////////////////////

甯歌闂錛?br />鐢熸垚鐨刣ebug鍜宺elease鏈変粈涔堝尯鍒?澶у皬宸笉澶?br />
Support for a true debug build. Developers no longer need to add the android:debuggable attribute to the tag in the manifest — the build tools add the attribute automatically. In Eclipse/ADT, all incremental builds are assumed to be debug builds, so the tools insert android:debuggable="true". When exporting a signed release build, the tools do not add the attribute. In Ant, a ant debug command automatically inserts the android:debuggable="true" attribute, while ant release does not. If android:debuggable="true" is manually set, then ant release will actually do a debug build, rather than a release build. 






























]]>
Android Push Notification瀹炵幇淇℃伅鎺ㄩ佷嬌鐢?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/08/08/186668.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Wed, 08 Aug 2012 10:38:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/08/08/186668.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/186668.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/08/08/186668.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/186668.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/186668.html</trackback:ping><description><![CDATA[<p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">鏈枃浠嬬粛AndroidPn欏圭洰瀹炵幇鎺ㄩ佺殑浣跨敤榪囩▼銆?/strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">涓婁釜鍗氭枃涓彁鍒板湪Android涓疄鐜頒俊鎭帹閫侊紝鍏朵腑涓涓瘮杈冩垚鐔熺殑瑙e喅鏂規渚挎槸浣跨敤XMPP鍗忚瀹炵幇銆傝孉ndroidPn欏圭洰灝辨槸浣跨敤XMPP鍗忚瀹炵幇淇℃伅鎺ㄩ佺殑涓涓紑婧愰」鐩傚湪榪欓噷緇欏ぇ瀹朵粙緇嶅叾浣跨敤榪囩▼銆?span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; padding-top: 0px" id="more-558"></span></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">Apndroid Push Notification鐨勭壒鐐癸細 </strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">蹇熼泦鎴?鎻愪緵涓縐嶆瘮C2DM鏇村姞蹇嵎鐨勪嬌鐢ㄦ柟寮?閬垮厤鍚勭闄愬埗.</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鏃犻渶鏋惰鏈嶅姟鍣?閫氳繃浣跨敤"浜戞湇鍔?,鍑忓皯棰濆鏈嶅姟鍣ㄨ礋鎷?</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鍙互鍚屾椂鎺ㄩ佹秷鎭埌緗戠珯欏甸潰,android 鎵嬫満</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鑰楃數灝?鍗犵敤嫻侀噺灝?</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">鍏蜂綋閰嶇疆榪囩▼錛?nbsp;</strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">棣栧厛錛?鎴戜滑闇瑕佷笅杞絘ndroidpn-client-0.5.0.zip鍜宎ndroidpn-server-0.5.0-bin.zip銆?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">涓嬭澆鍦板潃錛?a style="border-bottom: rgb(104,153,23) 1px dotted; padding-bottom: 1px; border-right-width: 0px; padding-left: 2px; padding-right: 2px; border-top-width: 0px; color: rgb(103,166,17); border-left-width: 0px; text-decoration: none; padding-top: 1px; -webkit-transition: color 0.3s linear" >http://sourceforge.net/projects/androidpn/</a></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">瑙e帇涓や釜鍖咃紝Eclipse瀵煎叆client錛岄厤緗ソ鐩爣騫沖彴錛屾墦寮raw/androidpn.properties鏂囦歡錛岄厤緗鎴風紼嬪簭銆?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">1. 濡傛灉鏄ā鎷熷櫒鏉ヨ繍琛屽鎴風紼嬪簭,鎶妜mppHost閰嶇疆鎴?0.0.2.2[妯℃嫙鍣ㄦ妸10.0.2.2璁や負鏄墍鍦ㄤ富鏈虹殑鍦板潃錛?27.0.0.1鏄ā鎷熷櫒鏈韓鐨勫洖鐜湴鍧錛?0.0.2.1琛ㄧず緗戝叧鍦板潃錛?0.0.2.3琛ㄧずDNS鍦板潃錛?0.0.2.15琛ㄧず鐩爣璁懼鐨勭綉緇滃湴鍧]錛屽叧浜庢ā鎷熷櫒鐨勮緇嗕俊鎭紝澶у鍙弬闃呯浉鍏寵祫鏂欙紝榪欓噷涓嶅啀璇﹁堪.</p> <div style="padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); vertical-align: baseline; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">xmppPort=5222 鏄湇鍔″櫒鐨剎mpp鏈嶅姟鐩戝惉绔彛</div> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <div style="padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); vertical-align: baseline; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">榪愯androidpn-server-0.5.0\bin\run.bat鍚姩鏈嶅姟鍣紝浠庢祻瑙堝櫒璁塊棶http://127.0.0.1:7070/index.do (androidPN Server鏈変釜杞婚噺綰х殑web鏈嶅姟鍣紝鍦?070绔彛鐩戝惉璇鋒眰錛屾帴鍙楃敤鎴瘋緭鍏ョ殑鏂囨湰娑堟伅)</div> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <div style="padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); vertical-align: baseline; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">榪愯瀹㈡埛绔紝瀹㈡埛绔細鍚戞湇鍔″櫒鍙戣搗榪炴帴璇鋒眰錛屾敞鍐屾垚鍔熷悗錛屾湇鍔″櫒鑳借瘑鍒鎴風錛屽茍緇存姢鍜屽鎴風鐨処P闀胯繛鎺ャ?/div> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">2. 濡傛灉鏄湪鍚屼竴涓眬鍩熺綉鍐呯殑鍏朵粬鏈哄櫒鐨勬ā鎷熷櫒嫻嬭瘯(鎴栬呬嬌鐢ㄥ悓涓鏃犵嚎璺敱鍣╳ifi涓婄綉鐨勭湡鏈? 錛屽垯闇瑕佹妸榪欎釜鍊艱緗負鏈嶅姟鍣ㄦ満鍣ㄧ殑灞鍩熺綉ip.   </strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">渚嬪 浣犵殑鐢佃剳鍜宎ndroid鎵嬫満 閮介氳繃鍚屼竴涓棤綰胯礬鐢卞櫒wifi涓婄綉, 鐢佃剳鐨刬p鍦板潃涓?192.168.1.2 鑰?鎵嬫満鐨刬p鍦板潃涓?192.168.1.3, 榪欎釜鏃跺?闇瑕佹妸榪欎釜鍊間慨鏀逛負 xmppHost=192.168.1.1 鎴栨槸鐢佃剳鐨処P鍦板潃錛屽氨鍙互鍦ㄦ墜鏈轟笂浣跨敤浜? </strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">3. 濡傛灉鏄笉鍦ㄥ悓涓涓眬鍩熺綉鐨勭湡鏈烘祴璇曪紝鎴戜滑闇瑕佸皢榪欎釜鍊艱緗負鏈嶅姟鍣ㄧ殑IP鍦板潃銆?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">鍏蜂綋閰嶇疆濡備笅鍥炬墍紺猴細</strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/2012-03-16_081017.png" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">鎴戠殑鐢佃剳IP鏄細192.168.8.107 </strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鏈嶅姟鍣ㄨ繍琛屼富鐣岄潰錛?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/2012-03-16_074350.png" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/2012-03-16_074433.png" width="797" height="310" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/2012-03-16_074420.png" width="797" height="306" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鎺ㄩ佷俊鎭細</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/2012-03-16_074154.png" width="798" height="481" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">嫻嬭瘯緇撴灉濡備笅鍥撅細</p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/SC20120316-074221.png" width="480" height="800" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><img style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline-block; max-width: 610px; height: auto; vertical-align: text-bottom; border-top: 0px; border-right: 0px; padding-top: 0px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/hanyonglu/SC20120316-074227.png" /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">妯℃嫙鍣ㄥ拰鐪熸満嫻嬭瘯閫氳繃銆?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; vertical-align: baseline; font-weight: bold; padding-top: 0px">鍏朵粬浣跨敤榪囩▼浠嬬粛錛?/strong></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">褰撶劧浜嗭紝浠ヤ笂鏄湪鑷繁鐨勬湇鍔″櫒涓婇厤緗茍瀹炵幇淇℃伅鎺ㄩ侊紝濡傛灉澶у鎯崇渷浜嬬殑璇濓紝鍦ㄨ繖閲岀粰澶у鎺ㄨ崘涓綉鍧錛?nbsp;鍙互鏇磋交鏉懼湴瀹炵幇鎺ㄩ侊紝緙虹偣鏄渶瑕侀氳繃鍒漢鐨勬湇鍔″櫒錛屽叧浜庤繖鐐癸紝浣犳噦鐨勩?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">緗戝潃錛?nbsp;<a style="border-bottom: rgb(104,153,23) 1px dotted; padding-bottom: 1px; border-right-width: 0px; padding-left: 2px; padding-right: 2px; border-top-width: 0px; color: rgb(103,166,17); border-left-width: 0px; text-decoration: none; padding-top: 1px; -webkit-transition: color 0.3s linear" >http://www.push-notification.org/</a></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鍙渶鐢寵涓狝PI鍗沖彲浣跨敤銆?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"> </p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鑷充簬鍏朵粬鐨勬帹閫佹柟妗堜細鍦ㄤ互鍚庣殑鍗氭枃涓粙緇嶃?/p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">瀹屾瘯銆?br />鍘熸枃鍦板潃錛?a >http://www.cnblogs.com/hanyonglu/archive/2012/03/16/2399655.html</a><br />////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br /><span style="color: red">鏂版墜甯歌闂錛?/span><br />瑙e帇涓や釜鍖咃紝Eclipse瀵煎叆client錛岄厤緗ソ鐩爣騫沖彴緙栬瘧錛屽嚭鐜伴棶棰?/p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">E</span><span style="color: #000000">/</span><span style="color: #000000">AndroidRuntime(</span><span style="color: #000000">13171</span><span style="color: #000000">): FATAL EXCEPTION: main<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />E</span><span style="color: #000000">/</span><span style="color: #000000">AndroidRuntime(</span><span style="color: #000000">13678</span><span style="color: #000000">): java.lang.NoClassDefFoundError:<br />  ....</span></div> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px">鍑虹幇涓婅堪璋冭瘯淇℃伅錛屽茍涓旂湡鏈轟笂鍑虹幇閿欒錛屽湪铏氭嫙鏈轟笂涔熷嚭鐜伴敊璇?br />鍘熷洜錛氫唬鐮佷緷璧栦簬鍏朵粬搴?br />瑙e喅鍔炴硶錛氳鍦ㄥ叿浣損roject涓婂彸閿睘鎬э紝鍦╦ava build path閲岀殑order and export閲屾妸瑕佺紪璇戠殑鍖呮枃浠跺墠鎵撳嬀銆傜劧鍚庡啀clean璇ュ伐紼嬶紝鍒鋒柊鍐嶈繍琛屽氨鍙互浜嗐?br /></p> <p style="widows: 2; text-transform: none; background-color: rgb(240,240,240); text-indent: 0px; margin: 10px 0px; font: 300 13px/26px 'Century Gothic', 'Microsoft YaHei', 'Trebuchet MS', Arial, Verdana, Tahoma, 'DejaVu Sans', 'Liberation sans', 'Bitstream Vera Sans', sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(34,34,34); word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px"><br /> </p><img src ="http://www.shnenglu.com/wc250en007/aggbug/186668.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-08-08 18:38 <a href="http://www.shnenglu.com/wc250en007/archive/2012/08/08/186668.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>45搴︽枩瑙掑湴鍥捐彵褰㈠潗鏍囪漿鎹?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/07/20/184285.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Fri, 20 Jul 2012 00:12:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/07/20/184285.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/184285.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/07/20/184285.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/184285.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/184285.html</trackback:ping><description><![CDATA[<span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鎴戜滑瑕佸仛涓涓?5搴︽父鎴忓湴鍥句腑錛岄偅涔堝浣曞垽鏂紶鏍囩偣涓簡鍝竴涓鐗囧憿錛燂紵濡傚浘錛?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><ignore_js_op style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span id="lrrxj1x" class="Apple-converted-space"> <img style="width: 189px; height: 117px" border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/1.jpg" width="189" height="117" /></span></ignore_js_op><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涔熻浣犳兂鍒伴氳繃瑙d袱涓洿綰挎柟紼嬶紙鐐規枩寮忥級錛?br /></span><img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/2.jpg" /><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><ignore_js_op style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span id="rvjt7f3" class="Apple-converted-space"> </span></ignore_js_op><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涓嶈繃榪欐槸涓鍔炴硶錛岄偅涔堟湁鏇寸畝鍗曠殑鍔炴硶鍚楋紵</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">寮闂ㄨ灞憋細</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">***********************************</span><font style="widows: 2; text-transform: none; background-color: rgb(255,255,255); font-variant: normal; font-style: normal; text-indent: 0px; font-family: Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); font-weight: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" size="3"><br style="word-wrap: break-word" />N=int(x/TileW - y/TileH)<br style="word-wrap: break-word" />M=int(x/TileW + y/TileH)</font><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">***********************************</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">N,M鏄鐗囩殑绱㈠紩錛屼粠0寮濮嬨?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">TileW,TileH鏄鐗囩殑闀垮銆?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">x,y鏄紶鏍囧潗鏍囷紝浣嗘槸娉ㄦ剰鍧愭爣緋誨師鐐廣?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">浠ヤ笂榪囩▼濡備笅鍥炬紨紺猴細</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><ignore_js_op style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span id="nxf77n7" class="Apple-converted-space"> <img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/3.jpg" width="347" height="302" /></span></ignore_js_op><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">閭d箞錛屾槸浠涔堝師鐞嗗憿錛?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鎴戜滑寤虹珛涓涓柊鐨勫潗鏍囩郴銆備互鑺變綋瀛楃殑u,v涓烘柊鐨勫熀鍚戦噺銆?br /><img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/4.jpg" width="499" height="347" /></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><ignore_js_op style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span id="prlfptv" class="Apple-converted-space"> </span></ignore_js_op><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鐒跺悗鎶婇紶鏍囧潗鏍囷紙娉ㄦ剰鍘熺偣錛侊級(x,y)杞崲鎴愬熀浜庢柊鐨勫熀闆唗={u,v}鐨勫睍寮寮忥細</span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><ignore_js_op style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span id="x9ln3n7" class="Apple-converted-space"> </span></ignore_js_op><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"></span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/5.jpg" width="499" height="347" /><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">浣跨敤鐨勬椂鍊欏緢綆鍗?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鍏紡鏄?/span><br style="widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(68,68,68); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /> <div style="background-image: url(http://www.webgamei.com/club/static/image/common/codebg.gif); border-bottom: rgb(204,204,204) 1px solid; border-left: rgb(204,204,204) 1px solid; padding-bottom: 5px; widows: 2; text-transform: none; background-color: rgb(247,247,247); text-indent: 0px; margin: 10px 0px; padding-left: 10px; padding-right: 0px; zoom: 1; font: 14px/21px Tahoma, 'Microsoft Yahei', Simsun; word-wrap: break-word; white-space: normal; background-position: 0px 0px; orphans: 2; letter-spacing: normal; color: rgb(102,102,102); overflow: hidden; border-top: rgb(204,204,204) 1px solid; border-right: rgb(204,204,204) 1px solid; word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="blockcode"> <div style="word-wrap: break-word" id="code_OMZ"> <ol style="padding-bottom: 0px !important; margin: 0px 0px 0px 10px; padding-left: 0px !important; padding-right: 0px !important; word-wrap: break-word; padding-top: 0px !important"><li style="padding-bottom: 0px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin: 0px 0px 0px 2em; padding-left: 10px; padding-right: 0px; font-family: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; word-wrap: break-word; font-size: 12px; padding-top: 0px">N=int(x/TileW - y/TileH)<br style="word-wrap: break-word" /></li><li style="padding-bottom: 0px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin: 0px 0px 0px 2em; padding-left: 10px; padding-right: 0px; font-family: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; word-wrap: break-word; font-size: 12px; padding-top: 0px">M=int(x/TileW + y/TileH)</li></ol></div></div><br /><br />------------------------------------------------------------------------------------------------------------<br />涓嬮潰璇寸殑鏄?5搴﹀湴鍥撅紝鍦板浘鍧愭爣緋誨湪欏剁鐨勬牸瀛愯綆楁柟娉?br /> <p>鍏充簬45搴﹁鍦板浘涓儚绱犲潗鏍囧拰鍦板浘鍧愭爣涔嬮棿鐨勮漿鎹紝緗戜笂鏈夊悇縐嶆柟娉曪紝鍏跺疄鍧愭爣杞崲灝辨槸璁$畻tite瀹藉拰tile楂樺湪鍍忕礌鍧愭爣涓殑鍋忕Щ鍊鹼紝鏈柟娉曟槸閽堝 tite鍧楀師鐐瑰潗鏍囧湪鑿卞艦鐨勯《鐐圭殑浣嶇疆鐨勫潗鏍囪漿鎹紝鍦?5搴﹁鍦板浘涓紝鏂瑰潡褰㈢姸涓鴻彵褰紝浣犲彲浠ョ敤flash cs宸ュ叿鎴栧叾浠栫粯鍥懼伐鍏峰緢蹇殑鍒涘緩鍑鴻繖縐嶈彵褰㈡柟鍧楋紝鎸変互涓?涓楠ゅ氨鍙互浜嗭細<br />1銆?緇樺埗涓涓換鎰忓ぇ灝忕殑姝f柟褰紱<br />2銆?鎶婅繖涓鏂瑰艦鏃嬭漿45搴︼紱<br />3銆?鎶婃棆杞殑姝f柟褰㈢殑楂樺害緙╂斁涓哄師鏉ョ殑50%銆?br />榪樻湁涓鐐瑰氨鏄柟鍧楀昂瀵哥殑闂錛岃彵褰㈡柟鍧楃殑瀹藉害鏄珮搴︾殑2鍊嶏紝鍏舵鏂瑰潡灝哄姣斾緥搴旇鏄?錛?銆備緥濡?4鍍忕礌X 32鍍忕礌鎴?00鍍忕礌 X 50鍍忕礌絳夛紝榪欐牱鐨勫昂瀵稿垰濂借兘浣挎柟鍧楀湪鍦板浘閾鴻鐨勬椂鍊欏緢濂藉湴鎺掑垪鍦ㄥ睆騫曚笂銆?br />鑷充簬鍧愭爣闂寸殑杞崲鍏跺疄澶у鐪嬪浘灝卞ソ鐞嗚В浜嗭細</p> <p><img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/wc250en007/D3D/6.jpg" width="401" height="221" /><br />鍥句腑鏄竴涓互綰㈣壊(0,0)浣嶇疆涓哄師鐐癸紝綰㈢偣姣忓悜鍦板浘鍧愭爣緋籑杞翠笂縐誨姩涓涓崟浣嶏紝鍘熺偣鐩稿鍍忕礌鍧愭爣緋籜涓殑鍋忕Щ鍊間負:鏂瑰潡瀹藉害/2<br />鑿卞艦鏂瑰潡瀹?var tileW :Number;<br />鑿卞艦鏂瑰潡楂?var tileH :Number;<br />鍦板浘鐨勮鏁?var row :int;<br />鍦板浘鐨勫垪鏁?var col :int;<br />綰㈣壊鍘熺偣鍧愭爣(鍍忕礌鍧愭爣緋? var originP : Point;<br />閭d箞綰㈣壊鐨勫師鐐瑰潗鏍囧湪鍦板浘鍧愭爣緋諱腑鐨勪綅緗負錛?br />originP.x = row * tileW /2;<br />originP.y = 0;<br />鍘熺偣鍧愭爣鍑烘潵浜嗭紝閭d箞鍏跺畠鐐圭殑鍧愭爣鍛紵<br />鎬濊礬鏄厛姹傚嚭鍦ㄥ湴鍥懼潗鏍囩郴涓?M鏂瑰悜鎴朜鏂瑰悜)姣忕Щ鍔ㄤ竴涓崟浣嶇殑鍍忕礌鍧愭爣緋籜杞村拰鍍忕礌鍧愭爣緋籝杞寸殑鍍忕礌鍋忕Щ鍊箋?br />濡傜孩鑹插師鐐圭Щ鍔ㄥ埌榛戣壊鐐圭殑浣嶇疆錛?br />M鍦ㄥ儚绱犲潗鏍囩郴X杞寸殑鍋忕Щ鍍忕礌 = tileW /2;錛堝悜鍙沖亸縐伙級<br />M鍦ㄥ儚绱犲潗鏍囩郴Y杞寸殑鍋忕Щ鍍忕礌 = tileH /2; 錛堝悜涓嬪亸縐伙級<br />N鍦ㄥ儚绱犲潗鏍囩郴X杞寸殑鍋忕Щ鍍忕礌 = - tileW /2;錛堝悜宸﹀亸縐伙級<br />N鍦ㄥ儚绱犲潗鏍囩郴Y杞寸殑鍋忕Щ鍍忕礌 = tileH /2; 錛堝悜涓嬪亸縐伙級<br />鍋囧鏈変釜鍦板浘鍧愭爣鐐癸紙M錛孨錛夛紝閭d箞瀹冨搴旂殑鍍忕礌鍧愭爣緋葷殑鐐逛負var p:Point<br />p.x = 鍘熺偣鍧愭爣X + M鍦ㄥ儚绱犲潗鏍囩郴X杞寸殑鍋忕Щ鍍忕礌 × M + N鍦ㄥ儚绱犲潗鏍囩郴X杞寸殑鍋忕Щ鍍忕礌 × N = originP.x + tileW /2 × M + 錛?tileW/2錛?× N = originP.x + (M – N) × tileW/2錛?br />p.y = 鍘熺偣鍧愭爣Y + M鍦ㄥ儚绱犲潗鏍囩郴Y杞寸殑鍋忕Щ鍍忕礌 × M + N鍦ㄥ儚绱犲潗鏍囩郴Y杞寸殑鍋忕Щ鍍忕礌 × N = originP.y + tileH/2 × M + tileH/2 × N = originP.y + (M + N) × tileH/2;<br /><br />鍘熸枃鍦板潃錛?a >http://blog.sina.com.cn/s/blog_6807f539010103ce.html</a></p><img src ="http://www.shnenglu.com/wc250en007/aggbug/184285.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-07-20 08:12 <a href="http://www.shnenglu.com/wc250en007/archive/2012/07/20/184285.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos2d-x瀛︿範璧勬枡姹囨?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183002.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Thu, 12 Jul 2012 07:35:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183002.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/183002.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183002.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/183002.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/183002.html</trackback:ping><description><![CDATA[<p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="1" data-scayt_word="鎴戜箣鍓嶄竴鐩村涔燾錛嬶紜鐨勶紝絎竴嬈℃帴瑙ocos2d鏄痮c鐗堢殑錛岃櫧鐒跺緢濂界敤錛屼絾鏄紝鎴戣繕鏄c錛嬶紜鎯呮湁鐙挓錛屽啀鍔犱箣cocos2d-x鐢辮嚜宸變漢涓誨錛屾洿搴旇鎷ユ姳濂癸紝鐑埍濂癸紝鎶婂ス鍙戞壃鍏夊ぇ銆備箣鍚庯紝鎴戝皢浼氬叏闈㈡姇鍏ocos2d-x鐨勬鎶憋紝嬈㈣繋澶у鍜屾垜浜ゆ祦錛屼竴璧峰涔犮?>鎴戜箣鍓嶄竴鐩村涔燾錛嬶紜鐨勶紝絎竴嬈℃帴瑙ocos2d鏄痮c鐗堢殑錛岃櫧鐒跺緢濂界敤錛屼絾鏄紝鎴戣繕鏄c錛嬶紜鎯呮湁鐙挓錛屽啀鍔犱箣cocos2d-x鐢辮嚜宸變漢涓誨錛屾洿搴旇鎷ユ姳濂癸紝鐑埍濂癸紝鎶婂ス鍙戞壃鍏夊ぇ銆備箣鍚庯紝鎴戝皢浼氬叏闈㈡姇鍏ocos2d-x鐨勬鎶憋紝嬈㈣繋澶у鍜屾垜浜ゆ祦錛屼竴璧峰涔犮?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="2" data-scayt_word="琛ュ厖涓鐐癸細鎴戦夋嫨cocos2d-x鍐充笉鏄畝鍗曞湴鏀寔鍥戒駭榪欎箞綆鍗曪紝cocos2d-x鐪熺殑寰堝己澶с傚叧浜庢父鎴忓紩鎿庡浣曢夋嫨鐨勯棶棰橈紝璇峰ぇ瀹剁湅榪欎釜甯栧瓙銆?>琛ュ厖涓鐐癸細鎴戦夋嫨cocos2d-x鍐充笉鏄畝鍗曞湴鏀寔鍥戒駭榪欎箞綆鍗曪紝cocos2d-x鐪熺殑寰堝己澶с傚叧浜庢父鎴忓紩鎿庡浣曢夋嫨鐨勯棶棰橈紝璇峰ぇ瀹剁湅<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">榪欎釜甯栧瓙</a>銆?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="3" data-scayt_word="涓嬮潰鍒楀嚭鐨勯摼鎺ユ帓鍚嶄笉鍒嗗厛鍚庯紝鍛靛懙錛屼笉涓瀹氳鎸夐『搴忚銆傚叿浣撳浣曡錛屼互鍚庢懜鐔熸倝浜嗗啀璺熷ぇ瀹跺垎浜?>涓嬮潰鍒楀嚭鐨勯摼鎺ユ帓鍚嶄笉鍒嗗厛鍚庯紝鍛靛懙錛屼笉涓瀹氳鎸夐『搴忚銆傚叿浣撳浣曡錛屼互鍚庢懜鐔熸倝浜嗗啀璺熷ぇ瀹跺垎浜?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="4" data-scayt_word="ps錛氳繖浜涢摼鎺ョ殑鏉ユ簮鏄痝oogle錛嬪洓涓兢閲岄潰鐨勫紑鍙戣呰礎鐚紝鐢辨垜鏁寸悊鑰屾垚錛屽鏋滄湁閬楁紡鐨勫湴鏂癸紝嬈㈣繋澶у琛ュ厖鍟娿?>ps錛氳繖浜涢摼鎺ョ殑鏉ユ簮鏄痝oogle錛嬪洓涓兢閲岄潰鐨勫紑鍙戣呰礎鐚紝鐢辨垜鏁寸悊鑰屾垚錛屽鏋滄湁閬楁紡鐨勫湴鏂癸紝嬈㈣繋澶у琛ュ厖鍟娿?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="5" data-scayt_word="榪樻湁錛屽笇鏈涙湁瀛︿範鎴栬呮鍦ㄤ嬌鐢╟ocos2d-x鐨勬湅鍙嬶紝濡傛灉浣犱滑鏈夊崥瀹紝涔熻鍦ㄨ瘎璁洪噷闈㈢暀涓嬩綘浠殑鑴氬嵃錛岀浉浜掑涔狅紝鍏卞悓榪涙錛岃阿鍟︺?>榪樻湁錛屽笇鏈涙湁瀛︿範鎴栬呮鍦ㄤ嬌鐢╟ocos2d-x鐨勬湅鍙嬶紝濡傛灉浣犱滑鏈夊崥瀹紝涔熻鍦ㄨ瘎璁洪噷闈㈢暀涓嬩綘浠殑鑴氬嵃錛岀浉浜掑涔狅紝鍏卞悓榪涙錛岃阿鍟︺?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">0.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">http://www.supersuraccoon-cocos2d.com/<span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="6" data-scayt_word="zh">zh</span>/2012/02/11/<span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="7" data-scayt_word="sticky-ios-cocos2d-develop-recommended-blog-list-keep-updating">sticky-ios-cocos2d-develop-recommended-blog-list-keep-updating</span>/</a>(It's amazing!Thank you <a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank"><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="8" data-scayt_word="supersuraccoon">supersuraccoon</span></a>!)</p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">1.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">csdn鐨刢ocos2d-x寮鍙戜笓鏍?/a>銆?/p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">2.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">csdn鐨刢ocos2d-x鍏ラ棬涓撴爮銆?/a></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">3.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">himi鐨刢ocos2d-x娓告垙寮鍙?/a><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="9" data-scayt_word="錛堣繖涓摼鎺ユ槸csdn鐨勶紝澶у鍙互鍘誨叧娉╤imi鐨勬柊涓漢涓婚〉錛?>錛堣繖涓摼鎺ユ槸csdn鐨勶紝澶у鍙互鍘誨叧娉╤imi鐨勬柊涓漢涓婚〉錛?/span></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">4.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">鑰丟鐨刡log</a></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">5.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">cocoaChina涓婇潰鐨勬眹鎬誨笘</a>錛堣繖涓眹鎬誨笘娑電洊浜哸pi銆亀iki銆佺浉鍏蟲枃妗e拰涓浜涘紑鍙戣呭崥瀹€傚煎緱鏀惰棌錛?/p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">6.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">鎼緩cocos2d-x-android鐜 Windows<span id="lxnhrll" class="Apple-converted-space"> </span><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="10" data-scayt_word="XP3">XP3</span><span id="rjvxzjp" class="Apple-converted-space"> </span>+ Eclipse +<span id="ztbrjbj" class="Apple-converted-space"> </span><span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="11" data-scayt_word="NDKR7">NDKR7</span>+<span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="12" data-scayt_word="COCOS2DX">COCOS2DX</span>(<span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px" data-scaytid="13" data-scayt_word="娌℃湁鐢ㄥ埌cygwin鍜宮inigw">娌℃湁鐢ㄥ埌cygwin鍜宮inigw</span>)</a></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">7.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">cocos2d-x 緙栬瘧 Anroid鐗堟湰閬囧埌鐨勯棶棰樹互鍙婅В鍐沖姙娉?/a></p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">8.<span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px"> </span><a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">cocos2d-x娣誨姞騫垮憡鏉★紙BADA鐗堟湰錛?/a>錛堜笂闈㈠啓浜嗗緢澶氬叧浜巐ua鐨勬枃绔狅級</p> <p style="padding-bottom: 10px; widows: 2; text-transform: none; background-color: rgb(249,249,249); text-indent: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font: 14px/25px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 10px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">9.<a style="padding-bottom: 0px; font-style: normal; margin: 0px; padding-left: 0px; padding-right: 0px; letter-spacing: normal; color: rgb(41,113,167); font-size: 14px; cursor: pointer; text-decoration: none; padding-top: 0px" target="_blank">http://blog.plicatibu.com/category/cocos2d/</a></p><img src ="http://www.shnenglu.com/wc250en007/aggbug/183002.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-07-12 15:35 <a href="http://www.shnenglu.com/wc250en007/archive/2012/07/12/183002.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos2d box2d 鍩虹 鐭ヨ瘑 鍒涘緩浜虹墿銆侀噾甯併佺鎾?媯嫻?/title><link>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183001.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Thu, 12 Jul 2012 07:33:00 GMT</pubDate><guid>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183001.html</guid><wfw:comment>http://www.shnenglu.com/wc250en007/comments/183001.html</wfw:comment><comments>http://www.shnenglu.com/wc250en007/archive/2012/07/12/183001.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wc250en007/comments/commentRss/183001.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wc250en007/services/trackbacks/183001.html</trackback:ping><description><![CDATA[     鎽樿: 鍘熸枃鍦板潃錛歨ttp://blog.csdn.net/a8467562/article/details/7580443 1 錛?棣栧厛 鏄?鏋勫緩 涓栫晫 錛屽嵆b2World 浣犱篃鍙兘鐢ㄥ埌 debug 璋冭瘯錛欸LESDebugDraw   b2Vec2 gravity; gravity.Set(0.0f, -9.8f); _world = new ...  <a href='http://www.shnenglu.com/wc250en007/archive/2012/07/12/183001.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wc250en007/aggbug/183001.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2012-07-12 15:33 <a href="http://www.shnenglu.com/wc250en007/archive/2012/07/12/183001.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos2d-x宸ュ叿闆嗗悎http://www.shnenglu.com/wc250en007/archive/2012/07/12/182996.htmlLet me see seeLet me see seeThu, 12 Jul 2012 06:56:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/07/12/182996.htmlhttp://www.shnenglu.com/wc250en007/comments/182996.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/07/12/182996.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/182996.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/182996.htmlEditors for cocos2d-x Texture,Tilemap,Particle,Action,Level etc

鎺ㄨ崘鍦板潃錛?a >http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Editors_for_cocos2d-x_TextureTilemapParticleActionLevel_etc

Action Editor

Map Editor

SpriteSheet Editor

Particle Editor

Font editor:

Texture atlas editor:

Physics object editor:

Font editor:



]]>
cocos2d-x 浣跨敤box2d鏉ュ仛紕版挒媯嫻嬶紙涓斾粎鐢ㄦ潵鍋氱鎾炴嫻嬶級(涓)http://www.shnenglu.com/wc250en007/archive/2012/07/11/182858.htmlLet me see seeLet me see seeWed, 11 Jul 2012 09:10:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/07/11/182858.htmlhttp://www.shnenglu.com/wc250en007/comments/182858.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/07/11/182858.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/182858.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/182858.html闃呰鍏ㄦ枃

]]>
cocos2d-x鐜閰嶇疆http://www.shnenglu.com/wc250en007/archive/2012/07/06/181613.htmlLet me see seeLet me see seeFri, 06 Jul 2012 02:21:00 GMThttp://www.shnenglu.com/wc250en007/archive/2012/07/06/181613.htmlhttp://www.shnenglu.com/wc250en007/comments/181613.htmlhttp://www.shnenglu.com/wc250en007/archive/2012/07/06/181613.html#Feedback0http://www.shnenglu.com/wc250en007/comments/commentRss/181613.htmlhttp://www.shnenglu.com/wc250en007/services/trackbacks/181613.html闃呰鍏ㄦ枃

]]>
思思久久好好热精品国产| 国产激情久久久久久熟女老人| 久久婷婷五月综合色高清| 亚洲中文字幕无码久久综合网| 国产精品久久久久久久久久免费| 久久久久这里只有精品| 国内精品久久久久影院老司| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 国内精品久久久久久久久| 久久人人爽人爽人人爽av| 国产A三级久久精品| 一级a性色生活片久久无少妇一级婬片免费放| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 亚洲乱亚洲乱淫久久| 国产精品亚洲美女久久久| 99久久国产热无码精品免费| 久久www免费人成精品香蕉| 青青青青久久精品国产 | 2021国内精品久久久久久影院| 色婷婷久久久SWAG精品| 麻豆亚洲AV永久无码精品久久| 亚洲国产精品无码久久一区二区 | 久久综合久久综合久久综合| 青青草原综合久久大伊人精品| 国产精品免费久久久久影院 | 一本久久免费视频| 久久精品中文字幕一区| 久久无码一区二区三区少妇| 国产精品嫩草影院久久| 久久强奷乱码老熟女网站| 亚洲欧美日韩精品久久亚洲区 | 久久亚洲私人国产精品| 亚洲AV成人无码久久精品老人| 久久精品国产亚洲AV高清热| 99久久香蕉国产线看观香| 久久精品国产免费观看三人同眠| 久久一日本道色综合久久| 夜夜亚洲天天久久| 国产69精品久久久久APP下载| 性高湖久久久久久久久| 精品国产91久久久久久久a|