cocos2d使用的plist结构
来源:互联网 发布:淘宝小米f码是真的吗 编辑:程序博客网 时间:2024/05/19 10:15
<key>grossini-arm-l.png</key> <dict> <key>frame</key> <string>{{2,64},{28,26}}</string> <key>offset</key> <string>{2,-2}</string> <key>rotated</key> <false/> <key>sourceColorRect</key> <string>{{4,5},{28,26}}</string> <key>sourceSize</key> <string>{32,32}</string> </dict>
http://gamedev.stackexchange.com/questions/18758/in-cocos2ds-plist-output-what-are-offset-colorsourcerect-and-these-other
frame
The sprite location within the sprite-sheet as position and size values.
offset
Most of the current texture packing tools remove transparent areas of the image before they pack it. Imagine you got a sprite with the size of 100x100, but on the left and right there are 4 columns of totally transparent pixels. The packing tool will remove these to save space, but store offset
andsourceSize
, so that your sprite will be 100x100 pixels in your game. Note that the offset is always relative to the center of the sprite (comparing the center of the cropped and the center of the original sprite).
rotated
Whether or not the sprite has been rotated within the sprite-sheet (if this is true, the sprite is rotated 90 degrees clockwise).
sourceColorRect
The rectangle with actual color information inside your source sprite. If you take the 100x100 image described above (with 4px transparent pixels on the left and on the right), the sourceColorRect
will be {{4,0},{92,100}}
sourceSize
This is the size of the original sprite (beware that some texture-packers can add padding to this if you chose to).
C++解析plist文件
- cocos2d使用的plist结构
- cocos2d中.plist文件的使用
- 【cocos2d-x 3】关于plist和TexturePacker的简单使用
- 【cocos2d 3.x】粒子plist的简单使用
- cocos2d生成plist的工具
- cocos2d-x的plist文件
- cocos2d-x中使用plist文件总结
- cocos2d-x 3.0 使用.plist图片集方法
- cocos2d 使用TexturePacker制作plist文件
- cocos2d-js使用plist执行自身动作
- cocos2d-x使用TexturePacker打包图片及使用生成的plist文件创建精灵动画
- cocos2d-x使用TexturePacker打包图片及使用生成的plist文件创建精灵动画
- plist使用的若干问题
- 【iOS】plist的使用
- plist的使用
- Cocos2d-x 3.x游戏开发之旅---《plist文件的使用》
- CCArray,plist的使用问题
- plist的使用和读取
- exit()函数详解与Exit() 和 Return() 的区别
- VitualBox安装CENTOS图文教程(4)——SSH、Xmanager远程连接设置
- hadoop shell命令远程提交
- javaee Httpsession
- Java之美[从菜鸟到高手演变]之字符串
- cocos2d使用的plist结构
- 企业随笔之裁员
- 软件测试流程
- 编写一个JavaScript函数 parseQueryString,把URL参数解析为一个对象
- Analyzing Twitter Data with Hadoop, Part 2: Gathering Data with Flume
- 【算法】老鼠走迷宫问题的解答
- Matlab直线拟合的原理和代码
- java操作Excel的神奇之路
- html 捕捉回车键 且同时屏蔽掉该回车键