登录
  • 欢迎访问 Sharezer Blog

在cocos2d-x中解密通过TexturePacker加密图片

Cocos sharezer 3946次浏览 已收录 0个评论
// My Example 图片加密测试,images.pvr.ccz,images.plist 
//88558730 4af885af f4539888 8ed3b5aa

ZipUtils::ccSetPvrEncryptionKey(0x88558730 , 0x4af885af , 0xf4539888 , 0x8ed3b5aa);
CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("test.plist");
CCSprite* sprite = CCSprite::createWithSpriteFrameName("grossini_dance_10.png");
sprite->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2 , CCDirector::sharedDirector()->getWinSize().height / 2));
this->addChild(sprite, 3);


Sharezer , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明在cocos2d-x中解密通过TexturePacker加密图片
喜欢 (2)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址