2013-01-12 38 views
1

它能夠使用ShoeBox的cocos2d動畫? 只是我喜歡這個應用程序,它很容易使用和免費。cocos2d動畫的鞋盒

只是bfore我使用texturePacker這給的我的plist格式,鞋盒給予的XML看起來像

<TextureAtlas imagePath="sheet.png"> 
    <SubTexture name="W1001.png" x="81" y="360" width="73" height="106"/> 
    <SubTexture name="W1002.png" x="83" y="130" width="76" height="106"/> 
    <SubTexture name="W1003.png" x="233" y="0" width="90" height="106"/> 
    <SubTexture name="W1004.png" x="0" y="136" width="81" height="106"/> 
    <SubTexture name="W1005.png" x="157" y="347" width="69" height="106"/> 
    <SubTexture name="W1006.png" x="0" y="360" width="78" height="105"/> 
    <SubTexture name="W1007.png" x="0" y="244" width="73" height="114"/> 
    <SubTexture name="W1008.png" x="401" y="0" width="75" height="117"/> 
    <SubTexture name="W1009.png" x="157" y="0" width="74" height="124"/> 
    <SubTexture name="W1010.png" x="81" y="0" width="74" height="127"/> 
    <SubTexture name="W1011.png" x="0" y="0" width="79" height="134"/> 
    <SubTexture name="W1012.png" x="325" y="0" width="74" height="122"/> 
    <SubTexture name="W1013.png" x="75" y="244" width="68" height="114"/> 
    <SubTexture name="W1014.png" x="161" y="126" width="77" height="105"/> 
    <SubTexture name="W1015.png" x="145" y="239" width="71" height="106"/> 
    <SubTexture name="W1016.png" x="228" y="233" width="68" height="106"/> 
</TextureAtlas> 

換句話說,如何使用這個XML進行了cocos2d動畫?

+0

寫一個轉換器。不應該那麼難,cocos2d紋理地圖集plist格式使用相同的參數(以及一些額外的參數,您可能忽略/設置爲0)。 – LearnCocos2D

+0

是的..也許以後我會在Mac OS上做到這一點。目前我開始使用Zwoptex。 –

回答

1

ShoeBox 3.1.0添加了一個cocos2d pList格式導出添加到「雪碧表」工具。

截圖: http://farm9.staticflickr.com/8382/8457718272_315955c6fa_o.jpg

這不是大張旗鼓地宣佈,因爲我還沒有能夠測試或證實其出口的正確性自己。但我相當確信作物x,y ...值是正確的。 如果你可以給這個旋轉,讓我知道它是否適合你,這將是很好的。

+0

thx,在新版本中增加了..我沒有嘗試去做,因爲我使用Zwopex,但在第一次空閒時我肯定會嘗試它。 Thx爲您的答案。 –