plist使用
為什么80%的碼農都做不了架構師?>>> ??
??? ??? ????.
?
<IMG style="BORDER-BOTTOM: rgb(0,0,0); BORDER-LEFT: rgb(0,0,0); BORDER-TOP: rgb(0,0,0); CURSOR: pointer; BORDER-RIGHT: rgb(0,0,0)" id=20130528_6/dlehddus84_13697504426271cgcD_PNG/7.png class=_photoImage οnclick="popview(this, '90000003_0000000000000004B34B4E52')" alt="" src="http://postfiles7.naver.net/20130528_6/dlehddus84_13697504426271cgcD_PNG/7.png?type=w2" width=740 height=503>
?
??? ?????.
?
?
<IMG style="BORDER-BOTTOM: rgb(0,0,0); BORDER-LEFT: rgb(0,0,0); BORDER-TOP: rgb(0,0,0); CURSOR: pointer; BORDER-RIGHT: rgb(0,0,0)" id=20130528_58/dlehddus84_1369750935629YVsGr_PNG/8.png class=_photoImage οnclick="popview(this, '90000003_0000000000000004B34B4E52')" alt="" src="http://postfiles11.naver.net/20130528_58/dlehddus84_1369750935629YVsGr_PNG/8.png?type=w2" width=740 height=503>
?
?? ? ??? cocos2d-x ????? ???? ?????.
<IMG style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; CURSOR: pointer; BORDER-RIGHT: medium none" id=20130528_163/dlehddus84_1369750935905W8ivG_PNG/11.png class=_photoImage οnclick="popview(this, '90000003_0000000000000004B34B4E52')" alt="" src="http://postfiles4.naver.net/20130528_163/dlehddus84_1369750935905W8ivG_PNG/11.png?type=w2" width=740 height=444>
?
plist ??? ??????.
?
?
?? ??? ??? ?? ?????.
?
? CCSpriteFrameCache *Cache = CCSpriteFrameCache::sharedSpriteFrameCache();
??Cache->addSpriteFramesWithFile("w_bear.plist");
??CCSprite *w_bear = CCSprite::createWithSpriteFrameName("w_bear01.png");
??w_bear->setPosition(ccp(100, 100));
?
??CCSpriteFrame *frame1 = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("w_bear01.png");
??CCSpriteFrame *frame2 = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("w_bear02.png");
??CCSpriteFrame *frame3 = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("w_bear03.png");
??CCSpriteFrame *frame4 = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("w_bear04.png");
?
??CCArray *frame = new CCArray;
??frame->addObject(frame1);
??frame->addObject(frame2);
??frame->addObject(frame3);
??frame->addObject(frame4);
??CCAnimation *animation = CCAnimation::createWithSpriteFrames(frame, 0.3);
??CCAnimate *animate = CCAnimate::create(animation);
??CCAction *action = CCRepeatForever::create(animate);
??w_bear->runAction(action);
??this->addChild(w_bear);?
?
?????? ??????.
?
<IMG style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; CURSOR: pointer; BORDER-RIGHT: medium none" id=20130528_206/dlehddus84_1369752717583n1cKC_GIF/1.gif class=_photoImage οnclick="popview(this, '90000003_0000000000000004B34B4E52')" alt="" src="http://postfiles15.naver.net/20130528_206/dlehddus84_1369752717583n1cKC_GIF/1.gif?type=w2" width=496 height=358>
?
??? ?????.
?
?
??? ???? ?? ??? ? ? ????.
?
[??]?Texture packer ???? / ???|????????????
轉載于:https://my.oschina.net/u/1777508/blog/489723
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
- 上一篇: Codeforces Gym 10028
- 下一篇: 编程语言的概念