.plist 中各个key的含义

 <key>scorIcon.png</key>
            <dict>
                <key>frame</key>
                <string>{{937,2},{56,63}}</string>
                <key>offset</key>
                <string>{0,0}</string>
                <key>rotated</key>
                <true/>
                <key>sourceColorRect</key>
                <string>{{0,0},{56,63}}</string>
                <key>sourceSize</key>
                <string>{56,63}</string>
            </dict>

例如上面的一个key


frame:在大图中的坐标已经宽度,程序会根据这个来做剪辑。

offset:在合成大图的过程中texture-package会吧原图透明的部分删除,这张新的图片与原图它们的中心点之间的向量。

rotated:如果值为true,图片顺时针旋转90度

sourceColorRect:截取原图透明部分的坐标已经大小。

sourceSize:原图的大小。也是sprite的大小

你可能感兴趣的:(.plist)