{"id":3407,"date":"2025-06-07T18:00:26","date_gmt":"2025-06-07T10:00:26","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"modified":"2025-06-07T18:00:26","modified_gmt":"2025-06-07T10:00:26","slug":"%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","title":{"rendered":"\u5c04\u51fb\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views atom-one-dark\" id=\"content_views\">\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u672c\u6587\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e2a\u6a2a\u5411\u6eda\u5c4f\u7684\u5c04\u51fb\u7c7b\u6e38\u620f<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   1.\u5728\u4ee3\u7801\u4e2d\u91cd\u5efa\u80cc\u666f<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u6211\u4eec\u5728\u9879\u76ee\u4e2d\u65b0\u5efa\u4e00\u4e2a\u8282\u70b9ParallaxBackground\uff0c\u5934\u6587\u4ef6\u5f88\u7b80\u5355<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/*<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   * ParallaxBackground.h<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0 Created on: 2012-9-18<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0\u00a0\u00a0\u00a0\u00a0 Author: Panda<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #ifndef PARALLAXBACKGROUND_H_<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #define PARALLAXBACKGROUND_H_<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #include &#8220;cocos2d.h&#8221;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   USING_NS_CC;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   class ParallaxBackground :public CCNode{<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   public:<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   virtual ~ParallaxBackground();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSpriteBatchNode *batchnode;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u7ec4\u6210\u80cc\u666f\u7684\u7cbe\u7075\u6570<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   int numSprites;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u79fb\u52a8\u901f\u5ea6<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   float scrollSpeed;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   virtual bool init();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   void update(ccTime time);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CREATE_FUNC(ParallaxBackground);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   };<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #endif \/* PARALLAXBACKGROUND_H_ *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u6211\u5728\u8fd9\u91cc\u8bbe\u7f6e\u4e86\u5bf9CCSpriteBatchNode\u8282\u70b9\u7684\u5f15\u7528\u3002\u6211\u4eec\u5c06\u5728\u4ee3\u7801\u91cc\u7ecf\u5e38\u8c03\u7528\u8fd9\u4e2a\u8282\u70b9\u3002\u8c03\u7528\u4e00\u4e2a\u4fdd\u5b58\u5728\u6210\u5458\u53d8\u91cf\u91cc\u7684\u8282\u70b9\u6bd4\u901a\u8fc7getNodeByTag\u65b9\u6cd5\u6765\u8c03\u7528\u8981\u6765\u7684\u5feb\u3002\u5982\u679c\u4f60\u5728\u6bcf\u4e00\u5e27\u4e2d\u90fd\u8fd9\u6837\u505a\u7684\u8bdd\uff0c\u4f60\u5c31\u53ef\u4ee5\u7701\u4e0b\u51e0\u4e2aCPU\u5904\u7406\u5468\u671f\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u9700\u8981\u4fdd\u5b58\u51e0\u5341\u751a\u81f3\u4e0a\u767e\u4e2a\u8fd9\u6837\u7684\u6210\u5458\u53d8\u91cf\u7684\u8bdd\uff0c\u90a3\u5c31\u4e0d\u503c\u5f97\u8fd9\u6837\u505a\u4e86\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/*<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   * ParallaxBackground.cpp<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0 Created on: 2012-9-18<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0\u00a0\u00a0\u00a0\u00a0 Author: Panda<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #include &#8220;ParallaxBackground.h&#8221;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground::ParallaxBackground() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/ TODO Auto-generated constructor stub<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground::~ParallaxBackground() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/ TODO Auto-generated destructor stub<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool ParallaxBackground::init() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool bRet = false;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   do {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSize size = CCDirector::sharedDirector()-&gt;getWinSize();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u83b7\u5f97\u7eb9\u7406\u8d34\u56fe\u96c6\u76842d\u8d34\u56fe<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCTexture2D* tt2d = CCTextureCache::sharedTextureCache()-&gt;addImage(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   &#8220;game-art.png&#8221;);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   batchnode = CCSpriteBatchNode::createWithTexture(tt2d);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   this-&gt;addChild(batchnode);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   numSprites = 7;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u5c067\u4e2a\u4e0d\u540c\u7684\u6761\u7eb9\u56fe\u7247\u6dfb\u52a0\u5230\u6279\u5904\u7406\u7cbe\u7075\u5bf9\u8c61\u4e2d<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   for (int i = 0; i &lt; numSprites; i++) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCString *file = CCString::createWithFormat(&#8220;bg%i.png&#8221;, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = CCSprite::createWithSpriteFrameName(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   file-&gt;getCString());<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(CCPointMake(size.width\/2,size.height\/2));<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   batchnode-&gt;addChild(sprite, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   scrollSpeed = 1.0f;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   this-&gt;scheduleUpdate();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bRet = true;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   } while (0);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   return bRet;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   void ParallaxBackground::update(ccTime time) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCObject *object=NULL;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCARRAY_FOREACH(batchnode-&gt;getChildren(),object)<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite=(CCSprite *)object;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCPoint point = sprite-&gt;getPosition();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   point.x -= (scrollSpeed + sprite-&gt;getZOrder()) * (time * 20);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(point);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u9996\u5148\uff0c\u6211\u628agame-art.png\u8fd9\u5f20\u7eb9\u7406\u8d34\u56fe\u96c6\u52a0\u5230CCTextureCache\u4e2d\u3002\u5b9e\u9645\u4e0a\uff0c\u6211\u5df2\u7ecf\u5728GameScene\u7c7b\u4e2d\u52a0\u8f7d\u4e86\u8fd9\u5f20\u7eb9\u7406\u8d34\u56fe\u96c6\uff0c\u4e3a\u4ec0\u4e48\u8fd8\u8981\u518d\u52a0\u8f7d\u4e00\u904d\u5462\uff1f\u539f\u56e0\u662f\u6211\u9700\u8981\u7528\u5230CCTexture2D\u5bf9\u8c61\u4ee5\u751f\u6210CCSpriteBatchNode\uff0c\u800c\u628a\u76f8\u540c\u4e00\u5f20\u8d34\u56fe\u518d\u6b21\u6dfb\u52a0\u5230CCTextureCache\u4e2d\u662f\u552f\u4e00\u4e00\u4e2a\u83b7\u53d6\u5df2\u88ab\u7f13\u5b58\u7684\u8d34\u56fe\u7684\u65b9\u6cd5\u3002\u8fd9\u4e2a\u64cd\u4f5c\u4e0d\u4f1a\u5c06\u8d34\u56fe\u518d\u6b21\u52a0\u8f7d\uff1bCCTextureCache\u8fd9\u4e2a\u5355\u4f8b\u77e5\u9053\u8fd9\u4e2a\u8d34\u56fe\u5df2\u88ab\u52a0\u8f7d\u8fc7\uff0c\u4f1a\u76f4\u63a5\u8c03\u7528\u5df2\u88ab\u7f13\u5b58\u7684\u7248\u672c\uff0c\u8fd9\u4e2a\u64cd\u4f5c\u901f\u5ea6\u5f88\u5feb\u3002\u4f60\u53ef\u80fd\u4f1a\u89c9\u5f97\u5947\u602a\uff0c\u4e3a\u4ec0\u4e48\u6ca1\u6709\u4e00\u4e2a\u50cfgetTextureByName\u8fd9\u6837\u7684\u65b9\u6cd5\u6765\u8c03\u7528\u5df2\u7ecf\u88ab\u7f13\u5b58\u7684\u8d34\u56fe\u3002\u4e0d\u8fc7\u73b0\u5728\u786e\u5b9e\u662f\u6ca1\u6709\u8fd9\u6837\u7684\u65b9\u6cd5\u53ef\u7528\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u521b\u5efa\u548c\u8bbe\u7f6e\u5b8cCCSpriteBatchNode\u4ee5\u540e\uff0c\u63a5\u4e0b\u53bb\u7684\u6b65\u9aa4\u662f\u628a7\u4e2a\u5355\u72ec\u7684\u80cc\u666f\u56fe\u7247\u52a0\u8f7d\u8fdb\u6765.<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u52a8\u6001\u751f\u6210\u6587\u4ef6\u540d<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCString *file = CCString::createWithFormat(&#8220;bg%i.png&#8221;, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u901a\u8fc7\u4f7f\u7528\u7cbe\u7075\u7684frameName\uff0c\u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u666e\u901a\u7684CCSprite\uff0c\u7136\u540e\u628a\u5b83\u653e\u5728\u5c4f\u5e55\u7684\u4e2d\u592e<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = CCSprite::createWithSpriteFrameName(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   file-&gt;getCString());<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(CCPointMake(size.width\/2,size.height\/2));<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u63a5\u4e0b\u6765\u8bb2\u89e3\u79fb\u52a8\u80cc\u666f\u6761\u7eb9 \u4e5f\u5c31\u662fvoid ParallaxBackground::update(ccTime time)\u4e2d\u7684\u4ee3\u7801<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u6bcf\u4e00\u4e2a\u6761\u7eb9\u80cc\u666f\u56fe\u7247\u7684X\u8f74\u4f4d\u7f6e\u7684\u503c\u5728\u6bcf\u4e00\u5e27\u8c03\u7528\u66f4\u65b0\u65b9\u6cd5\u65f6\u90fd\u4f1a\u88ab\u51cf\u53bb\u4e00\u4e9b\uff0c\u4f7f\u5b83\u4eec\u4ece\u53f3\u5411\u5de6\u79fb\u52a8\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u79fb\u52a8\u7684\u591a\u5c11\u53d6\u51b3\u4e8e\u9884\u5148\u5b9a\u4e49\u7684scrollSpeed\uff08\u6eda\u52a8\u901f\u5ea6\uff09\u53d8\u91cf\u52a0\u4e0a\u7cbe\u7075\u7684zOrder\u5c5e\u6027\u503c,\u4e58\u4e0adelta\u8fd9\u4e2a\u503c\u53ef\u4ee5\u8ba9\u6eda\u52a8\u7684\u901f\u5ea6\u72ec\u7acb\u4e8e\u5e27\u7387\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u56e0\u4e3adelta\u53ea\u662f\u4e24\u6b21\u8c03\u7528\u66f4\u65b0\u65b9\u6cd5\u4e4b\u95f4\u6240\u7ecf\u8fc7\u7684\u65f6\u95f4\uff0c\u6bd4\u5982\u5f53\u524d\u7684\u5e27\u7387\u662f60\u5e27\u6bcf\u79d2\uff0c\u90a3\u4e48delta\u5c31\u7b49\u4e8e1\/60\u79d2\uff0c\u4e5f\u5c31\u662f0.167\u79d2\uff0c\u4e58\u4e0a\u8fd9\u6837\u7684\u503c\u56fe\u7247\u5c31\u4f1a\u8fd0\u52a8\u7684\u5f88\u6162\uff0c\u6240\u4ee5\u6211\u53c8\u4e58\u4e0a20\u8ba9\u79fb\u52a8\u7684\u901f\u5ea6\u53d8\u5f97\u5feb\u4e00\u4e9b\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u9760\u8fd1\u5c4f\u5e55\u7684\u56fe\u7247\u4f1a\u6eda\u52a8\u5730\u5feb\u4e00\u4e9b\uff0c\u56e0\u4e3azOrder\u7684\u503c\u8d8a\u9760\u8fd1\u5c4f\u5e55\u8d8a\u5927\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u56e0\u4e3aParallaxBackground\u8fd9\u4e2a\u7c7b\u7ee7\u627f\u81eaCCNode\uff0c\u6240\u4ee5\u6211\u53ea\u9700\u8981\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5c06ParallaxBackground\u6dfb\u52a0\u5230MainScene\u5c42\u5f53\u4e2d\u53bb<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   MainScene.cpp\u7684\u4ee3\u7801<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool MainScene::init() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool bRet = false;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   do {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSpriteFrameCache *cache=CCSpriteFrameCache::sharedSpriteFrameCache();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   cache-&gt;addSpriteFramesWithFile(&#8220;game-art.plist&#8221;);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground *bg=ParallaxBackground::create();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   this-&gt;addChild(bg,-1);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u00a0\u00a0\u00a0\u00a0\u00a0 this-&gt;scheduleUpdate();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bRet = true;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   } while (0);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   return bRet;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u5f71\u54cd\u89c6\u5dee\u901f\u5ea6\u7684\u56e0\u7d20<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u5728\u6211\u4eec\u7684\u6e38\u620f\u4e2d\uff0c\u76f8\u540c\u989c\u8272\u7684\u6761\u7eb9\u9700\u8981\u7528\u76f8\u540c\u7684\u901f\u5ea6\u79fb\u52a8\uff0c\u5e76\u4e14\u6761\u7eb9\u5e94\u8be5\u91cd\u590d\u51fa\u73b0\u4ee5\u9632\u6b62\u51fa\u73b0\u540e\u9762\u7684\u7eaf\u8272\u80cc\u666f<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u7b2c\u4e00\u4e2a\u6539\u53d8\u662f\u4e0e\u6eda\u52a8\u901f\u5ea6\u6709\u5173\u7684,\u6211\u4f7f\u7528\u4e86Vector\u6765\u5b58\u50a8\u5404\u4e2a\u6761\u7eb9\u56fe\u7247\u7684\u79fb\u52a8\u901f\u5ea6\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground\u5934\u6587\u4ef6<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/*<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   * ParallaxBackground.h<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0 Created on: 2012-9-18<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0\u00a0\u00a0\u00a0\u00a0 Author: Panda<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #ifndef PARALLAXBACKGROUND_H_<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #define PARALLAXBACKGROUND_H_<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #include &#8220;cocos2d.h&#8221;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #include\u00a0 &#8220;vector&#8221;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   using namespace std;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   USING_NS_CC;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   class ParallaxBackground: public CCNode {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   public:<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   virtual ~ParallaxBackground();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSpriteBatchNode *batchnode;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u7ec4\u6210\u80cc\u666f\u7684\u7cbe\u7075\u6570<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   int numSprites;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u79fb\u52a8\u901f\u5ea6<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   float scrollSpeed;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u5404\u4e2a\u6761\u7eb9\u56fe\u7247\u7684\u79fb\u52a8\u901f\u5ea6]<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   vector&lt;float&gt; speedFactors;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   virtual bool init();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   void update(ccTime time);CREATE_FUNC(ParallaxBackground)<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   };<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #endif \/* PARALLAXBACKGROUND_H_ *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/*<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   * ParallaxBackground.cpp<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0 Created on: 2012-9-18<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\u00a0\u00a0\u00a0\u00a0\u00a0 Author: Panda<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   *\/<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   #include &#8220;ParallaxBackground.h&#8221;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground::ParallaxBackground() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/ TODO Auto-generated constructor stub<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   ParallaxBackground::~ParallaxBackground() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/ TODO Auto-generated destructor stub<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool ParallaxBackground::init() {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bool bRet = false;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   do {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSize size = CCDirector::sharedDirector()-&gt;getWinSize();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u83b7\u5f97\u7eb9\u7406\u8d34\u56fe\u96c6\u76842d\u8d34\u56fe<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCTexture2D* tt2d = CCTextureCache::sharedTextureCache()-&gt;addImage(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   &#8220;game-art.png&#8221;);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   batchnode = CCSpriteBatchNode::createWithTexture(tt2d);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   this-&gt;addChild(batchnode);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   numSprites = 7;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(0.3f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(0.5f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(0.5f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(0.8f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(0.8f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(1.2f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   speedFactors.push_back(1.2f);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   for (int i = 0; i &lt; numSprites; i++) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCString *file = CCString::createWithFormat(&#8220;bg%i.png&#8221;, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCLog(&#8220;file\u4e3a%s&#8221;, file-&gt;getCString());<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = CCSprite::createWithSpriteFrameName(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   file-&gt;getCString());<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCLog(&#8220;sprite\u7684\u957f\u4e3a%f,\u5bbd\u4e3a%f&#8221;, sprite-&gt;getContentSize().width,<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;getContentSize().height);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(CCPointMake(size.width\/2,size.height\/2));<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   batchnode-&gt;addChild(sprite, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   scrollSpeed = 1.0f;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   this-&gt;scheduleUpdate();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   bRet = true;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   } while (0);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   return bRet;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   void ParallaxBackground::update(ccTime time) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCObject *object = NULL;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCARRAY_FOREACH(batchnode-&gt;getChildren(),object) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = (CCSprite *) object;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCPoint point = sprite-&gt;getPosition();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   point.x -= (scrollSpeed + speedFactors.at(sprite-&gt;getZOrder())) * (time * 20);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(point);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u4ee3\u7801\u5b8c\u6210\u00a0 \u4e0d\u591a\u89e3\u91ca\u00a0 \u5f88\u5bb9\u6613\u770b\u61c2<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u8bbe\u7f6e\u80cc\u666f\u7684\u65e0\u9650\u6eda\u52a8<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \u6211\u5728CCSpriteBatchNodo\u4e2d\u53c8\u6dfb\u52a0\u4e86\u4e00\u7ec47\u4e2a\u80cc\u666f\u6761\u7eb9\u56fe\u7247\uff0c\u5f53\u7136\uff0c\u4ed6\u4eec\u7684\u8bbe\u7f6e\u548c\u4e4b\u524d\u4e0d\u540c<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   for (int i = 0; i &lt; numSprites; i++) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCString *file = CCString::createWithFormat(&#8220;bg%i.png&#8221;, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = CCSprite::createWithSpriteFrameName(<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   file-&gt;getCString());<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setAnchorPoint(CCPointMake(0,0));<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/ \u5c06\u65b0\u7684\u80cc\u666f\u56fe\u7247\u653e\u7f6e\u5728\u5c4f\u5e55\u7684\u53f3\u7aef -1\u662f\u4e3a\u4e86\u65b9\u5f0f\u51fa\u73b0\u63a5\u5408\u5904\u51fa\u73b0\u9ed1\u7ebf<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(CCPointMake(size.width-1,0));<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u5c06\u7cbe\u7075\u5e73\u884c\u7ffb\u8f6c\u8fc7\u6765\u4e0e\u7b2c\u4e00\u7ec4\u56fe\u7247\u76f8\u8fde\u63a5<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setFlipX(true);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   batchnode-&gt;addChild(sprite, i);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   void ParallaxBackground::update(ccTime time) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSize size = CCDirector::sharedDirector()-&gt;getWinSize();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCObject *object = NULL;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCARRAY_FOREACH(batchnode-&gt;getChildren(),object) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCSprite *sprite = (CCSprite *) object;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   CCPoint point = sprite-&gt;getPosition();<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   point.x -= (scrollSpeed + speedFactors.at(sprite-&gt;getZOrder()))<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   * (time * 20);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   if (point.x &lt; -size.width) {<br \/>\n   <!-- --><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 -2\u662f\u4e3a\u4e86\u65b9\u5f0f\u51fa\u73b0\u63a5\u5408\u5904\u51fa\u73b0\u9ed1\u7ebf \u4e3a\u4ec0\u4e48\u8981\u518d\u5411\u5de6\u79fb\u52a82\u4e2a\u50cf\u7d20\u5462\uff1f<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u56e0\u4e3a\u539f\u5148\u88ab\u6c34\u5e73\u7ffb\u8f6c\u8fc7\u7684\u80cc\u666f\u56fe\u7247\u5df2\u7ecf\u5411\u5de6\u79fb<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u52a8\u4e861\u4e2a\u50cf\u7d20\uff0c\u6bcf\u6b21\u91cd\u65b0\u653e\u7f6e\u80cc\u666f\u56fe\u7247\u4ee5\u540e\u6211\u4eec\u9700\u8981\u5c06\u5b83\u5411\u5de6\u79fb\u52a82\u4e2a\u50cf\u7d20\u624d\u80fd<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   \/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u548c\u5de6\u8fb9\u7684\u80cc\u666f\u56fe\u7247\u4fdd\u63011\u4e2a\u50cf\u7d20\u7684\u91cd\u53e0\u3002<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   point.x += size.width*2-2;<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   sprite-&gt;setPosition(point);<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n  <\/span><br \/>\n  <br style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"\/><br \/>\n  <span style=\"color:rgb(51,51,51); font-family:\u5b8b\u4f53; font-size:14px; line-height:28px\"><br \/>\n   }<br \/>\n  <\/span>\n <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e2a\u6a2a\u5411\u6eda\u5c4f\u7684\u5c04\u51fb\u7c7b\u6e38\u620f 1.\u5728\u4ee3\u7801\u4e2d\u91cd\u5efa\u80cc\u666f \u6211\u4eec\u5728\u9879\u76ee\u4e2d\u65b0\u5efa\u4e00\u4e2a\u8282\u70b9Paralla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-3407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e2a\u6a2a\u5411\u6eda\u5c4f\u7684\u5c04\u51fb\u7c7b\u6e38\u620f 1.\u5728\u4ee3\u7801\u4e2d\u91cd\u5efa\u80cc\u666f \u6211\u4eec\u5728\u9879\u76ee\u4e2d\u65b0\u5efa\u4e00\u4e2a\u8282\u70b9Paralla [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-07T10:00:26+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u5c04\u51fb\u6e38\u620f\",\"datePublished\":\"2025-06-07T10:00:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"wordCount\":626,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"name\":\"\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-06-07T10:00:26+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c04\u51fb\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u5c04\u51fb\u6e38\u620f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u672c\u6587\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e2a\u6a2a\u5411\u6eda\u5c4f\u7684\u5c04\u51fb\u7c7b\u6e38\u620f 1.\u5728\u4ee3\u7801\u4e2d\u91cd\u5efa\u80cc\u666f \u6211\u4eec\u5728\u9879\u76ee\u4e2d\u65b0\u5efa\u4e00\u4e2a\u8282\u70b9Paralla [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/\u5c04\u51fb\u6e38\u620f\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-06-07T10:00:26+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u5c04\u51fb\u6e38\u620f","datePublished":"2025-06-07T10:00:26+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"wordCount":626,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","name":"\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-06-07T10:00:26+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/06\/07\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u5c04\u51fb\u6e38\u620f"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=3407"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=3407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=3407"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=3407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}