{"id":1585,"date":"2015-01-13T11:31:33","date_gmt":"2015-01-13T03:31:33","guid":{"rendered":"\/wp\/?p=1585"},"modified":"2015-01-13T11:31:33","modified_gmt":"2015-01-13T03:31:33","slug":"cocos2dx-%e7%89%b9%e6%95%88","status":"publish","type":"post","link":"https:\/\/tixbay.net\/?p=1585","title":{"rendered":"cocos2dx  \u7279\u6548"},"content":{"rendered":"<p>\/\/3D\u6643\u52a8\u7684\u7279\u6548<br \/>\n\/\/    CCActionInterval* shaky3D = CCShaky3D::create(5, CCSize(10, 10), 15, false);<br \/>\n\/\/    sp->runAction(shaky3D);<br \/>\n\/\/\u4f5c\u7528\uff1a\u521b\u5efa\u4e00\u4e2a3d\u6643\u52a8\u7684\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u6643\u52a8\u7684\u8303\u56f4<br \/>\n\/\/    \u53c2\u65702\uff1a\u662f\u5426\u6709z\u8f74\u6643\u52a8<br \/>\n\/\/    \u53c2\u65703\uff1a  \u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/3D\u74f7\u7816\u6643\u52a8\u7279\u6548<br \/>\n\/\/    CCActionInterval* shakyTiles3D = CCShakyTiles3D::create(5, CCSize(10, 10), 5, false);<br \/>\n\/\/    sp->runAction(shakyTiles3D);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u521b\u5efa\u4e00\u4e2a3d\u74f7\u7816\u6643\u52a8\u7684\u7279\u6548<br \/>\n    \/\/    \u53c2\u65701\uff1a\u6643\u52a8\u7684\u8303\u56f4<br \/>\n    \/\/    \u53c2\u65702\uff1a\u662f\u5426\u6709z\u8f74\u6643\u52a8<br \/>\n    \/\/    \u53c2\u65703\uff1a  \u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u6ce2\u52a8\u7279\u6548<br \/>\n\/\/    CCActionInterval* waves = CCWaves::create(5, CCSize(10, 10), 10, 20, true, true);<br \/>\n\/\/    sp->runAction(waves);  <\/p>\n<p>\/\/    \u521b\u5efa\u4e00\u4e2a\u6ce2\u52a8\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u6ce2\u52a8\u7684\u901f\u7387<br \/>\n\/\/    \u53c2\u65702\uff1a\u632f\u5e45<br \/>\n\/\/    \u53c2\u65703:\u6c34\u5e73\u6ce2\u52a8<br \/>\n\/\/    \u53c2\u65704\uff1a\u5782\u76f4\u6ce2\u52a8<br \/>\n\/\/    \u53c2\u65705\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65706\uff1a\u7279\u6548\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/3D\u6ce2\u52a8\u7279\u6548<br \/>\n\/\/    CCActionInterval* waves3D = CCWaves3D::create(5, CCSize(10, 10), 10, 20);<br \/>\n\/\/    sp->runAction(waves3D);  <\/p>\n<p>  \/\/    \u521b\u5efa\u4e00\u4e2a3D\u6ce2\u52a8\u7279\u6548<br \/>\n    \/\/    \u53c2\u65701\uff1a\u6ce2\u52a8\u7684\u901f\u7387<br \/>\n    \/\/    \u53c2\u65702\uff1a\u632f\u5e45<br \/>\n    \/\/    \u53c2\u65703\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/3D\u74f7\u7816\u6ce2\u52a8\u7279\u6548<br \/>\n\/\/    CCActionInterval* wavesTiles3D = CCWavesTiles3D::create(5, CCSize(10, 10), 10, 20);<br \/>\n\/\/    sp->runAction(wavesTiles3D);<br \/>\n   \/\/    \u521b\u5efa\u4e00\u4e2a3D\u74f7\u7816\u6ce2\u52a8\u7279\u6548<br \/>\n    \/\/    \u53c2\u65701\uff1a\u6ce2\u52a8\u7684\u901f\u7387<br \/>\n    \/\/    \u53c2\u65702\uff1a\u632f\u5e45<br \/>\n    \/\/    \u53c2\u65703\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/X\u8f74 3D\u53cd\u8f6c\u7279\u6548<br \/>\n\/\/    CCActionInterval* filpX = CCFlipX3D::create(5);<br \/>\n\/\/    sp->runAction(filpX);  <\/p>\n<p>\/\/    \u4f5c\u7528\uff1ax\u8f743D\u53cd\u8f6c\u7279\u6548<br \/>\n\/\/    \u53c2\u6570\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/Y\u8f743D\u53cd\u8f6c\u7279\u6548<br \/>\n\/\/    CCActionInterval* filpY = CCFlipY3D::create(5);<br \/>\n\/\/    sp->runAction(filpY);<br \/>\n\/\/    CCActionInterval * flipY3D = CCFlipY3D::create(4);<br \/>\n\/\/    sp->runAction(flipY3D);<\/p>\n<p>    \/\/\u51f8\u900f\u955c\u7279\u6548<br \/>\n\/\/    CCActionInterval* lens = CCLens3D::create(2, CCSize(10, 10),CCPointMake(240, 160), 240);<br \/>\n\/\/    sp->runAction(lens);<br \/>\n\/\/    \u4f5c\u7528\uff1a  \u51f8\u955c\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u51f8\u955c\u4e2d\u5fc3\u70b9<br \/>\n\/\/    \u53c2\u65702\uff1a\u51f8\u955c\u534a\u5f84<br \/>\n\/\/    \u53c2\u65703\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65704\uff1a\u7f51\u683c\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/\u6c34\u6ce2\u7eb9\u7279\u6548<br \/>\n\/\/    CCActionInterval* ripple = CCRipple3D::create(5, CCSize(10, 10), CCPointMake(240, 160), 240, 4, 160);<br \/>\n\/\/    sp->runAction(ripple);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u6c34\u6ce2\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u8d77\u59cb\u4f4d\u5b50<br \/>\n\/\/    \u53c2\u65702\uff1a\u534a\u5f84<br \/>\n\/\/    \u53c2\u65703\uff1a\u901f\u7387<br \/>\n\/\/    \u53c2\u65704\uff1a\u632f\u5e45<br \/>\n\/\/    \u53c2\u65705\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65706\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u6db2\u4f53\u7279\u6548<br \/>\n\/\/    CCActionInterval* liquid = CCLiquid::create(5, CCSize(10, 10), 4, 20);<br \/>\n\/\/    sp->runAction(liquid);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u6db2\u4f53\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u901f\u7387<br \/>\n\/\/    \u53c2\u65702\uff1a\u632f\u5e45<br \/>\n\/\/    \u53c2\u65703\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/\u626d\u66f2\u65cb\u8f6c\u7279\u6548<br \/>\n\/\/    CCActionInterval* twirl = CCTwirl::create(50, CCSize(10, 10), CCPointMake(240, 160), 2, 2.5);<br \/>\n\/\/    sp->runAction(twirl);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u626d\u66f2\u65cb\u8f6c\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u626d\u66f2\u65cb\u8f6c\u4e2d\u5fc3\u70b9<br \/>\n\/\/    \u53c2\u65702\uff1a\u626d\u66f2\u65cb\u8f6c\u7684\u6b21\u6570<br \/>\n\/\/    \u53c2\u65703\uff1a\u632f\u5e45<br \/>\n\/\/    \u53c2\u65704\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65705\uff1a\u7279\u6548\u6301\u7eed\u65f6\u95f4<\/p>\n<p>    \/\/\u7834\u788e\u76843D\u74f7\u7816\u7279\u6548<br \/>\n\/\/    CCActionInterval* shatteredTiles = CCShatteredTiles3D::create(15, CCSize(10, 10), 50, true);<br \/>\n\/\/    sp->runAction(shatteredTiles);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u7834\u788e\u76843D\u74f7\u7816\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u8303\u56f4<br \/>\n\/\/    \u53c2\u65702\uff1a\u662f\u5426\u5f00\u542fz\u8f74<br \/>\n\/\/    \u53c2\u65703\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65704\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u74f7\u7816\u6d17\u724c\u7279\u6548<br \/>\n\/\/    CCActionInterval* shuffle = CCShuffleTiles::create(5, CCSize(50, 50), 50);<br \/>\n\/\/    sp->runAction(shuffle);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u74f7\u7816\u7684\u6d17\u724c\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u968f\u673a\u6570<br \/>\n\/\/    \u53c2\u65702\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65703\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u90e8\u843d\u683c\u6548\u679c,\u4ece\u5de6\u4e0b\u89d2\u5230\u53f3\u4e0a\u89d2<br \/>\n\/\/    CCActionInterval* fadeOutTRTiles = CCFadeOutTRTiles::create(5, CCSize(50, 50));<br \/>\n\/\/    sp->runAction(fadeOutTRTiles);  <\/p>\n<p>\/\/    \u4f5c\u7528\uff1a\u90e8\u843d\u683c\u6548\u679c \uff0c \u4ece\u5de6\u4e0b\u89d2\u5230\u53f3\u4e0b\u89d2<br \/>\n\/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u90e8\u843d\u683c\u6548\u679c\uff0c\u4ece\u53f3\u4e0a\u89d2\u5230\u5de6\u4e0b\u89d2<br \/>\n\/\/    CCActionInterval* fadeOutBLTiles  = CCFadeOutBLTiles::create(5, CCSize(50, 50));<br \/>\n\/\/    sp->runAction(fadeOutBLTiles);<br \/>\n  \/\/    \u4f5c\u7528\uff1a\u90e8\u843d\u683c\u6548\u679c \uff0c \u4ece\u53f3\u4e0b\u89d2\u5230\u5de6\u4e0b\u89d2<br \/>\n    \/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u6298\u53e0\u6548\u679c \u4ece\u4e0b\u5230\u4e0a<br \/>\n\/\/    CCActionInterval* fadeOutUpTiles = CCFadeOutUpTiles::create(5, CCSize(10, 10));<br \/>\n\/\/    sp->runAction(fadeOutUpTiles);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u6298\u53e0\u6548\u679c \u4ece\u4e0b\u5230\u4e0a<br \/>\n    \/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u6298\u53e0\u6548\u679c\uff0c\u4ece\u4e0a\u5230\u4e0b<br \/>\n\/\/    CCActionInterval* fadeOutDownTiles = CCFadeOutDownTiles::create(4, CCSize(20, 50));<br \/>\n\/\/    sp->runAction(fadeOutDownTiles);  <\/p>\n<p>  \/\/    \u4f5c\u7528\uff1a\u6298\u53e0\u6548\u679c \u4ece\u4e0a\u5230\u4e0b<br \/>\n    \/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u65b9\u5757\u6d88\u5931\u7279\u6548<br \/>\n\/\/    CCActionInterval* turnOffFiels = CCTurnOffTiles::create(4, CCSize(50, 50));<br \/>\n\/\/    sp->runAction(turnOffFiels);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u65b9\u5757\u6d88\u5931\u7279\u6548<br \/>\n    \/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n    \/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u8df3\u52a8\u7684\u65b9\u5757\u7279\u6548<br \/>\n\/\/    CCActionInterval* jumpTiles = CCJumpTiles3D::create(5, CCSize(20, 20), 5, 20);<br \/>\n\/\/    sp->runAction(jumpTiles);<br \/>\n\/\/    \u4f5c\u7528\uff1a\u8df3\u52a8\u7684\u65b9\u683c\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u8df3\u52a8\u7684\u6b21\u6570<br \/>\n\/\/    \u53c2\u65702\uff1a\u7f51\u683c\u7684\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65703\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u5206\u591a\u884c\u6d88\u5931\u7279\u6548<br \/>\n\/\/    CCActionInterval* splitCols = CCSplitCols::create(5, 50);<br \/>\n\/\/    sp->runAction(splitCols);<br \/>\n    \/\/    \u4f5c\u7528\uff1a\u5206\u591a\u5217\u6d88\u5931\u7279\u6548<br \/>\n    \/\/    \u53c2\u65701\uff1a\u5217\u6570<br \/>\n    \/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/\u5206\u591a\u5217\u6d88\u5931\u7279\u6548<br \/>\n\/\/    CCActionInterval* splitRows = CCSplitRows::create(5, 50);<br \/>\n\/\/    sp->runAction(splitRows);  <\/p>\n<p>\/\/    \u4f5c\u7528\uff1a\u5206\u591a\u884c\u6d88\u5931\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u884c\u6570<br \/>\n\/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n<p>    \/\/3D\u7ffb\u9875\u7279\u6548<br \/>\n    CCActionInterval* pageTurn3D = CCPageTurn3D::create(4, CCSize(20, 20));<br \/>\n    sp->runAction(pageTurn3D);<br \/>\n\/\/    \u4f5c\u7528\uff1a3D\u7ffb\u9875\u7279\u6548<br \/>\n\/\/    \u53c2\u65701\uff1a\u7f51\u683c\u5927\u5c0f<br \/>\n\/\/    \u53c2\u65702\uff1a\u7279\u6548\u6301\u7eed\u7684\u65f6\u95f4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/3D\u6643\u52a8\u7684\u7279\u6548 \/\/ CCActionInterval* shaky3D = &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/tixbay.net\/?p=1585\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1585","post","type-post","status-publish","format-standard","hentry","category-moo"],"_links":{"self":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1585"}],"version-history":[{"count":1,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1585\/revisions"}],"predecessor-version":[{"id":1586,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1585\/revisions\/1586"}],"wp:attachment":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}